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

Event Timeline

Paladox created this paste.Aug 17 2019, 14:57
Paladox edited the content of this paste. (Show Details)Oct 23 2019, 14:38
Paladox edited the content of this paste. (Show Details)
Southparkfan edited the content of this paste. (Show Details)Oct 23 2019, 14:50
Southparkfan edited the content of this paste. (Show Details)Oct 23 2019, 14:56
Paladox edited the content of this paste. (Show Details)Feb 9 2020, 15:13
Paladox edited the content of this paste. (Show Details)Feb 18 2020, 22:45
Southparkfan edited the content of this paste. (Show Details)Tue, Jul 14, 22:10