diff options
author | Tom Barrett <tom@tombarrett.xyz> | 2020-03-20 04:43:01 -0500 |
---|---|---|
committer | Tom Barrett <tom@tombarrett.xyz> | 2020-03-20 04:43:01 -0500 |
commit | c146a0ea62b03d9650bdb43986acb0afdf2ecba0 (patch) | |
tree | 2aa44962f79db4f1443c2679028cc81ce2225dda | |
parent | eab5eca5bda076aae57e6cc82b6e08dbd5025ff3 (diff) |
-rwxr-xr-x | create | 6 | ||||
-rwxr-xr-x | scripts/krb | 2 | ||||
-rwxr-xr-x | scripts/ldap | 2 | ||||
-rwxr-xr-x | scripts/nfs | 2 | ||||
-rwxr-xr-x | scripts/roll (renamed from scripts/debian_roll) | 3 |
5 files changed, 7 insertions, 8 deletions
@@ -1,11 +1,11 @@ #!/bin/bash set -e -scripts/krb > logs/krb +scripts/krb > logs/krb 2>logs/krb_err lxc-info krb -scripts/nfs > logs/nfs +scripts/nfs > logs/nfs 2>logs/nfs_err lxc-info nfs -scripts/ldap > logs/ldap +scripts/ldap > logs/ldap 2>logs/ldap_err lxc-info ldap diff --git a/scripts/krb b/scripts/krb index 4df7fef..d5c15a8 100755 --- a/scripts/krb +++ b/scripts/krb @@ -7,7 +7,7 @@ KRB5_ADMIN_PASS=pass USER_PASS=tommie IP="$(grep krb configs/hosts | cut -d ' ' -f 1)" -scripts/debian_roll krb +scripts/roll krb lxc-attach krb -v DEBIAN_FRONTEND=noninteractive -- apt-get -y install krb5-admin-server scp configs/krb/krb5.conf root@$IP:/etc/ diff --git a/scripts/ldap b/scripts/ldap index 594f37b..c545825 100755 --- a/scripts/ldap +++ b/scripts/ldap @@ -1,5 +1,5 @@ #!/bin/bash set -e -scripts/debian_roll ldap +scripts/roll ldap #lxc-attach ldap -v DEBIAN_FRONTEND=noninteractive -- apt-get -y install slapd ldap-utils ldapscripts diff --git a/scripts/nfs b/scripts/nfs index 4439eba..8ab7ef4 100755 --- a/scripts/nfs +++ b/scripts/nfs @@ -1,4 +1,4 @@ #!/bin/bash set -e -scripts/debian_roll nfs +scripts/roll nfs diff --git a/scripts/debian_roll b/scripts/roll index caf652c..d8deb61 100755 --- a/scripts/debian_roll +++ b/scripts/roll @@ -15,8 +15,7 @@ sleep 15 # install basics lxc-attach $NAME -- apt-get update lxc-attach $NAME -- apt-get dist-upgrade -lxc-attach $NAME -- apt-get install -y apt-utils -lxc-attach $NAME -- apt-get install -y sudo openssh-server x11-xserver-utils +lxc-attach $NAME -- apt-get install -y sudo openssh-server x11-xserver-utils apt-utils # setup users lxc-attach $NAME -- bash -c 'echo -e "'$ROOT_PASS'\n'$ROOT_PASS'" | passwd' |