Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
#cloud-config
# Set up the package repository to get Rudder.
# We use the "latest" pseudo-version name to always get an up-to-date agent.
# Key from http://www.rudder-project.org/packages.gpg.key
apt_sources:
- source: "deb http://www.rudder-project.org/apt-latest/ $RELEASE main"
key: |
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: GnuPG v1.4.10 (GNU/Linux)
mQINBE7qUnkBEACsst5S9xuFr6cfv6cTwnFa6m5Eliqw87R+36m7jf6dtRJ7heyi
oE1+AM7hsnhW4ZfEd7lYZf0g5DCg14C207MkHfCXbNoWfkv/e+GfJULSL30rbBY/
vVM3QTgzi2LR44RmYp0V75Bgux3NGZR1TeR0eQbyaKZDNEoT0nE71MdtZCnuIezu
PNWrSFlTN00MLuj0cA7ppqkh++/CG/jXcsM9cPprw/AunRNmUy01MOv2YvTCSKYi
Vx8g7McReqcgwIhXVxwWnP0jgcOnpR8uXpyPCHvsiJ0lhpvtC+SDiGgK9SiuyTrb
AwhMKrpzEMXmcx6xjho4RGJBav5pOXyC56RXhTg+UBE7TSNR5rrhE5evOeTBmjDC
/DqUh90V6nOUF5AFa2/bRewN6DeSC7f9QHFMY62t30n1GJMRDxbGSWur+VbyGHLH
6N9OvI6PjU7CbE5HJsvP5lNEWfuMEpVVIqsFEHjfYB1afO387+vkBYd2GvkJUc4S
pHVjUf08s8rzdgV7y4JmdoxlsMZTp3eg66gIbBFDW/0ntsCtKT9AWlN+UzRNMrIM
JrlRKxrw97Yod6W9oPBTVE7AQ54sCgQOd4p3oKomcosvkgcdRmyKKXU2o6OMmX+S
ZY/HnHbqhJQEJtRcBfKrnCSF6ZP7p6LMP2tQw2t+BF0ZM+5vpEPDvh42nwARAQAB
tDpSdWRkZXIgUHJvamVjdCAocmVsZWFzZSBrZXkpIDxzZWN1cml0eUBydWRkZXIt
cHJvamVjdC5vcmc+iQI2BBMBCAAhBQJO6lJ5AhsDBQsJCAcDBRUKCQgLBRYCAwEA
Ah4BAheAAAoJE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t+8ZnQ0w6vKR8RLbdoojmGpKGaQ=
=Wgii
-----END PGP PUBLIC KEY BLOCK-----
# Install the agent itself
packages:
- rudder-agent
# Tell the agent which server to contact
write-files:
- path: /var/rudder/cfengine-community/policy_server.dat
content: rudder.my-company.com
owner: root:root
permissions: '0640'
# Fire it up the first time so it's ready to roll!
runcmd:
- rudder agent run
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment