Last active
January 18, 2024 16:06
-
-
Save juhnny5/44a4035cd9d7bed748678e93ef91541d to your computer and use it in GitHub Desktop.
Deploy Rudder Agent with Cloud-Init on Ubuntu Server 22.04
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#cloud-config | |
# Upgrade system | |
package_update: true | |
package_upgrade: true | |
apt: | |
sources: | |
rudder: | |
source: "deb [arch=amd64] https://repository.rudder.io/apt/latest/ $RELEASE main" | |
key: | | |
-----BEGIN PGP PUBLIC KEY BLOCK----- | |
Version: SKS 1.1.5 | |
Comment: Hostname: keyserver.ubuntu.com | |
mQINBE7qUnkBEACsst5S9xuFr6cfv6cTwnFa6m5Eliqw87R+36m7jf6dtRJ7heyioE1+AM7h | |
snhW4ZfEd7lYZf0g5DCg14C207MkHfCXbNoWfkv/e+GfJULSL30rbBY/vVM3QTgzi2LR44Rm | |
Yp0V75Bgux3NGZR1TeR0eQbyaKZDNEoT0nE71MdtZCnuIezuPNWrSFlTN00MLuj0cA7ppqkh | |
++/CG/jXcsM9cPprw/AunRNmUy01MOv2YvTCSKYiVx8g7McReqcgwIhXVxwWnP0jgcOnpR8u | |
XpyPCHvsiJ0lhpvtC+SDiGgK9SiuyTrbAwhMKrpzEMXmcx6xjho4RGJBav5pOXyC56RXhTg+ | |
UBE7TSNR5rrhE5evOeTBmjDC/DqUh90V6nOUF5AFa2/bRewN6DeSC7f9QHFMY62t30n1GJMR | |
DxbGSWur+VbyGHLH6N9OvI6PjU7CbE5HJsvP5lNEWfuMEpVVIqsFEHjfYB1afO387+vkBYd2 | |
GvkJUc4SpHVjUf08s8rzdgV7y4JmdoxlsMZTp3eg66gIbBFDW/0ntsCtKT9AWlN+UzRNMrIM | |
JrlRKxrw97Yod6W9oPBTVE7AQ54sCgQOd4p3oKomcosvkgcdRmyKKXU2o6OMmX+SZY/HnHbq | |
hJQEJtRcBfKrnCSF6ZP7p6LMP2tQw2t+BF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EGytVYcnbfB | |
53ezTxDZKReOhHcD2YC5/YR852djEM+yNNXSEARMu2Em8wsLWMrakbyab0GnRADO05QKEXin | |
tc5QTKOvs6cm6y0CRqmXax3q15Dc62ZhajFngh0OGKRTqjVvUa6EYiqsbMQJatksVKjQ6vPF | |
mUivxrfW2Q7iZZVlSLykEDfX2lKbkaB4c1wNMsnxiyaUssI3UMWg7lidrnk4IuzEP8mJHcok | |
biDoh1jNRfVo1JQmorwmrpfwoFrvv0JgqjojfhpmUV/YO0ue8to3N3XHRXcZfW0/T6qyxZRp | |
y9vxmIzvP2iZBME2gRaHt+8ZnQ0w6vKR8RLbdoojmGpKGaQ= | |
=akEY | |
-----END PGP PUBLIC KEY BLOCK----- | |
# Install packages | |
packages: | |
- rudder-agent | |
# Tell the agent which server to contact | |
write_files: | |
- path: /var/rudder/cfengine-community/policy_server.dat | |
content: rudder.example.org | |
owner: root:root | |
permissions: '0640' | |
# Run Rudder agent | |
runcmd: | |
- rudder agent run |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Replace
rudder.example.org
by your Rudder Server FQDN or IP address.