forked from 0k/0k-charms
Browse Source
new: [host/install] shorewall version is forced to be at least 5.0.6 for docker support.
postgres
new: [host/install] shorewall version is forced to be at least 5.0.6 for docker support.
postgres
Valentin Lab
9 years ago
7 changed files with 212 additions and 3 deletions
-
9precise/host/hooks/install.d/40-btrfs.sh
-
7precise/host/hooks/install.d/60-docker.sh
-
122precise/host/hooks/install.d/70-0k.sh
-
30precise/host/hooks/install.d/90-shorewall.sh
-
30precise/host/hooks/install.d/92-mail.sh
-
5precise/host/hooks/install.d/95-checks.sh
-
10precise/host/hooks/install.d/96-backup-lxc.sh
@ -0,0 +1,7 @@ |
|||
#!/bin/bash |
|||
|
|||
|
|||
if ! type -p docker; then |
|||
echo "Installing docker..." |
|||
curl -sSL https://get.docker.io | sh |
|||
fi |
@ -0,0 +1,30 @@ |
|||
#!/bin/bash |
|||
|
|||
set -eux # -x for verbose logging to juju debug-log |
|||
|
|||
|
|||
MAIL_NAME=${MAIL_NAME:-localhost} |
|||
MAIL_DOMAINNAME=${MAIL_DOMAINNAME:-"localdomain"} |
|||
MAIL_SATTELITE_RELAYHOST=${MAIL_SATTELITE_RELAYHOST:-} |
|||
|
|||
## |
|||
## Mail facilities (install working 'mail' command) |
|||
## |
|||
|
|||
( |
|||
debconf-set-selections <<< "postfix postfix/mailname string ${MAIL_NAME}.${MAIL_DOMAINNAME}" && |
|||
debconf-set-selections <<< "postfix postfix/main_mailer_type select 'Local only'" && |
|||
|
|||
apt-get install -y postfix mailutils && |
|||
|
|||
postconf inet_interfaces=loopback-only && |
|||
|
|||
[ -z "$MAIL_SATTELITE_RELAYHOST" ] && postconf relayhost="$MAIL_SATTELITE_RELAYHOST" |
|||
postfix reload |
|||
) |
|||
|
|||
|
|||
## |
|||
## Test: |
|||
## |
|||
# echo "test" | mail vaab@kal.fr |
@ -0,0 +1,5 @@ |
|||
#!/bin/bash |
|||
|
|||
## REQUIRES: 0k-manage mail |
|||
|
|||
ln -sf /opt/apps/0k-manage/src/etc/cron.hourly/check-* /etc/cron.hourly/ |
@ -0,0 +1,10 @@ |
|||
#!/bin/bash |
|||
|
|||
## REQUIRES lxc-scripts, lxc |
|||
|
|||
## |
|||
## Backup lxc |
|||
## |
|||
|
|||
ln -sf /opt/apps/lxc-scripts/etc/cron.hourly/* /etc/cron.hourly/ |
|||
ln -sf /opt/apps/lxc-scripts/etc/cron.daily/* /etc/cron.daily/ |
Write
Preview
Loading…
Cancel
Save
Reference in new issue