Page MenuHomeMiraheze
Paste P220

puppet install script
ActivePublic

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: https://meta.miraheze.org/wiki/Tech:Puppet
# This should be stretch or buster!
OSCODENAME=buster
apt-get update
apt-get install ca-certificates sudo lsb-release dirmngr -y
gpg --keyserver keyserver.ubuntu.com --recv-key 7F438280EF8D349F
wget https://apt.puppetlabs.com/puppet6-release-"$OSCODENAME".deb
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