diff options
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 |