#!/bin/sh apt install -y lsb-release curl && curl -sL -o /var/cache/apt/archives/puppet6-release-`lsb_release -c -s`.deb https://apt.puppet.com/puppet6-release-`lsb_release -c -s`.deb && dpkg -i /var/cache/apt/archives/puppet6-release-`lsb_release -c -s`.deb && apt update && apt install -y puppet-agent && apt clean echo "[agent] server = foreman.altinea.fr runinterval = 600 environment = production listen = false pluginsync = true report = true"> /etc/puppetlabs/puppet/puppet.conf /opt/puppetlabs/bin/puppet resource service puppet ensure=running enable=true