From 7588119f979f15532a7b511bc6e669105daf1ca0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20Schl=C3=BCter?= Date: Fri, 26 Jan 2018 17:27:38 +0100 Subject: Made part-scripts available for testing. --- install-itzks-workstation-puppet-only | 38 +++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 install-itzks-workstation-puppet-only (limited to 'install-itzks-workstation-puppet-only') 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 .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 -- cgit v1.2.3