From 811e59fb9523dbc4d09d1cf6f8c068447a7a1232 Mon Sep 17 00:00:00 2001 From: Julien Escario Date: Tue, 21 Jul 2020 14:28:08 +0200 Subject: [PATCH] Initial release --- foreman/README.md | 9 +++++++++ foreman/altinea_puppet_install.sh | 11 +++++++++++ 2 files changed, 20 insertions(+) create mode 100644 foreman/README.md create mode 100644 foreman/altinea_puppet_install.sh diff --git a/foreman/README.md b/foreman/README.md new file mode 100644 index 0000000..93a6360 --- /dev/null +++ b/foreman/README.md @@ -0,0 +1,9 @@ +# Quick howto + +With curl : + + curl -s https://gitlab.altinea.fr/altinea/install-scripts/raw/branch/master/foreman/altinea_puppet_install.sh |/bin/bash + +With wget : + + wget -q -O - https://gitlab.altinea.fr/altinea/install-scripts/raw/branch/master/foreman/altinea_puppet_install.sh |/bin/bash diff --git a/foreman/altinea_puppet_install.sh b/foreman/altinea_puppet_install.sh new file mode 100644 index 0000000..05d04a9 --- /dev/null +++ b/foreman/altinea_puppet_install.sh @@ -0,0 +1,11 @@ +#!/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 = 180 + environment = production + listen = false + pluginsync = true + report = true"> /etc/puppetlabs/puppet/puppet.conf +/opt/puppetlabs/bin/puppet resource service puppet ensure=running enable=true