You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

11 lines
577 B

4 years ago
4 years ago
  1. #!/bin/sh
  2. 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
  3. echo "[agent]
  4. server = foreman.altinea.fr
  5. runinterval = 600
  6. environment = production
  7. listen = false
  8. pluginsync = true
  9. report = true"> /etc/puppetlabs/puppet/puppet.conf
  10. /opt/puppetlabs/bin/puppet resource service puppet ensure=running enable=true