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.

12 lines
552 B

5 years ago
5 years ago
5 years ago
  1. #!/bin/sh
  2. apt -qqq install lsb-release curl
  3. curl -sL -o /var/cache/apt/archives/puppet7-release-`lsb_release -c -s`.deb https://apt.puppet.com/puppet7-release-`lsb_release -c -s`.deb && dpkg -i /var/cache/apt/archives/puppet7-release-`lsb_release -c -s`.deb
  4. apt -qq update && apt -qqq install puppet-agent && apt clean
  5. echo "[agent]
  6. server = foreman.altinea.fr
  7. runinterval = 600
  8. listen = false
  9. pluginsync = true
  10. report = true"> /etc/puppetlabs/puppet/puppet.conf
  11. /opt/puppetlabs/bin/puppet resource service puppet ensure=running enable=true