Page MenuHomeMiraheze
Paste P220

puppet install script

Authored by Paladox on Aug 17 2019, 14:57.
#! /bin/bash
# Miraheze server installation script. This script installs the mandatory
# software to behave as a puppet agent.
# See:
# This should be stretch or buster!
apt-get update
apt-get install ca-certificates sudo lsb-release dirmngr -y
gpg --keyserver --recv-key 7F438280EF8D349F
dpkg -i puppet6-release-"$OSCODENAME".deb
apt-get update
apt-get install puppet-agent -y
# chmod and userdel are specific for Scaleway.
chmod 0755 /etc
userdel -r debian
ln -s /opt/puppetlabs/bin/facter /usr/bin/facter
ln -s /opt/puppetlabs/bin/hiera /usr/bin/hiera
ln -s /opt/puppetlabs/bin/puppet /usr/bin/puppet
apt-get --purge remove puppet6-release -y