diff options
Diffstat (limited to 'utils/infra_setup/user_data/p-agent-user-data')
-rw-r--r-- | utils/infra_setup/user_data/p-agent-user-data | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/utils/infra_setup/user_data/p-agent-user-data b/utils/infra_setup/user_data/p-agent-user-data new file mode 100644 index 00000000..2641c900 --- /dev/null +++ b/utils/infra_setup/user_data/p-agent-user-data @@ -0,0 +1,14 @@ +#cloud-config + +runcmd: + - wget https://apt.puppetlabs.com/puppetlabs-release-trusty.deb + - sudo dpkg -i puppetlabs-release-trusty.deb + - sudo apt-get update + - sudo apt-get -y install puppet + - sed -i '/^factpath/a basemodulepath=\/etc\/puppet\/modules' /etc/puppet/puppet.conf + - sed -i '/^factpath/a server=REPLACED_PUPPET_MASTER_SERVER' /etc/puppet/puppet.conf + - sed -i '/^factpath/a runinterval=1d' /etc/puppet/puppet.conf + - sed -i '/^templatedir/d' /etc/puppet/puppet.conf + - sed -i 's/START=no/START=yes/g' /etc/default/puppet + +final_message: "The system with puppet is finally up, after $UPTIME seconds." |