diff options
author | Benjamin Schlüter <bschlueter@posteo.de> | 2018-01-26 17:27:38 +0100 |
---|---|---|
committer | Benjamin Schlüter <bschlueter@posteo.de> | 2018-01-26 17:27:38 +0100 |
commit | 7588119f979f15532a7b511bc6e669105daf1ca0 (patch) | |
tree | 061fe462fe99da7cc1b256407e1a2a0b3674a948 /install-itzks-workstation-puppet-only | |
parent | 1933c2af54561ce1169afe6b47e4617fa19ed3ac (diff) | |
download | itzks-install-script-7588119f979f15532a7b511bc6e669105daf1ca0.tar.gz itzks-install-script-7588119f979f15532a7b511bc6e669105daf1ca0.tar.bz2 itzks-install-script-7588119f979f15532a7b511bc6e669105daf1ca0.zip |
Made part-scripts available for testing.
Diffstat (limited to 'install-itzks-workstation-puppet-only')
-rw-r--r-- | install-itzks-workstation-puppet-only | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/install-itzks-workstation-puppet-only b/install-itzks-workstation-puppet-only new file mode 100644 index 0000000..48d9ae2 --- /dev/null +++ b/install-itzks-workstation-puppet-only @@ -0,0 +1,38 @@ +#!/bin/bash +# script for installing a Debian Edu Workstation with ITZkS modifications + +set -e + +# Install puppet-agent +echo '! Puppet-Agent installieren' +read -p '''Bevor der Puppet-Agent installiert werden kann, +muss der Hostname geändert werden. Es darf kein "lan" im +Namen auftauchen, z.B. statt mw101-lan.intern muss +es mw101.intern heißen. [ENTER] ''' + +# Set hostname +read -p 'Wie lautet der Hostname (ohne Domain)? ' myhost +hostnamectl set-hostname $myhost + +# To be sure restart the following services +invoke-rc.d rsyslog restart +invoke-rc.d cron restart +invoke-rc.d puppet restart + +# Install and enable puppet-agent on client +echo '! Puppet-Agent wird installiert... ' +apt-get install puppet +puppet agent --test +puppet agent --enable +read -p '''Nun mit ssh auf den tjener wechseln und dort +mit puppet cert --list die am Master angemeldeten +Clients auflisten. + +Anschließend mit puppet cert --sign <myhost>.intern +den Puppet-Agent des Clients authorisieren. [ENTER] ''' +ssh tjener +echo '''! FERTIG +Die Installation + - des Basissystems mit ITZKS-Anpassungen + - des Puppet-Agents +ist abgeschlossen.'''
\ No newline at end of file |