Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
post-fix-cludge things for packet.net
#cloud-config
# I'm very unhappy to end up with this scriptlike solution but there was some bugs (i.e. things not being run)
# that seem to be in their cloud-config version
runcmd:
- apt-get -y install wget --force-yes
- wget --quiet -O- "https://www.rudder-project.org/apt-repos/rudder_apt_key.pub" | apt-key add -
- echo "deb http://www.rudder-project.org/apt-4.1/ $(lsb_release -cs) main" > /etc/apt/sources.list.d/rudder.list
- apt-get update
- DEBIAN_FRONTEND=noninteractive apt-get -y install rudder-agent --force-yes
- echo "10.80.60.133" > /var/rudder/cfengine-community/policy_server.dat
- unlink /etc/motd
- DEBIAN_FRONTEND=noninteractive apt-get install -y debian-keyring debian-archive-keyring --force-yes
- DEBIAN_FRONTEND=noninteractive apt-get -y dist-upgrade --force-yes
- systemctl restart rsyslog
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment