-
-
Save brianredbeard/ab9449c1c86868f53d5c to your computer and use it in GitHub Desktop.
Cloud config to deploy fleet api
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 | |
coreos: | |
units: | |
- name: etcd.service | |
enabled: true | |
command: start | |
- name: fleet.service | |
enabled: true | |
command: start | |
- name: fleet.socket | |
command: start | |
content: | | |
[Socket] | |
# This port should be chosen at random from the range 49152-65535 | |
ListenStream=55000 | |
Service=fleet.service | |
[Install] | |
WantedBy=sockets.target | |
- name: tmp.mount | |
command: restart | |
enabled: true | |
content: | | |
[Unit] | |
Description=Temporary Directory | |
Documentation=man:hier(7) | |
Documentation=http://www.freedesktop.org/wiki/Software/systemd/APIFileSystems | |
DefaultDependencies=no | |
Conflicts=umount.target | |
Before=local-fs.target umount.target | |
[Mount] | |
What=/var/tmp | |
Where=/tmp | |
Options=bind | |
[Install] | |
WantedBy=multi-user.target | |
etcd: | |
discovery: $ETCDKEY | |
addr: \$private_ipv4:4001 | |
peer-addr: \$private_ipv4:7001 | |
fleet: | |
autostart: yes | |
ssh_authorized_keys: | |
- ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAqbf2wz0O0yC3QlV8OknLwp/y/SCD7V4Ij8B7e1T6y3fOK83BvY+NeQA0Lx5VL25NcPcKAA/Erp9/gWSFoR\ | |
zoeFBGmlLaop5Y317Cs1nnyHbZQsfJR2Hglzmwoku3/a67INh4K/hfGnre+O3XuIjnl2TNxoE0M0JRthSkApNvA3zuoqRO7KQEklOBwvJsJvuCxW7RR1v7GRpA\ | |
x1OT9/3xEC588DDYDNkvxtow89IcuqakkgL6zwSkztBTxZup6GV0RhBci8juIGZSaq0eY4JsVbdc91WOvz4IFfgongblAr2fLNJGC6QxDyJvwUz81vdcFONn0I\ | |
VwSrTkVsZbbXNCRw== jenkins | |
users: | |
- name: jenkins | |
groups: | |
- adm | |
- docker | |
- sudo | |
ssh-authorized-keys: | |
- ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAqbf2wz0O0yC3QlV8OknLwp/y/SCD7V4Ij8B7e1T6y3fOK83BvY+NeQA0Lx5VL25NcPcKAA/Erp9/gWSFoR\ | |
zoeFBGmlLaop5Y317Cs1nnyHbZQsfJR2Hglzmwoku3/a67INh4K/hfGnre+O3XuIjnl2TNxoE0M0JRthSkApNvA3zuoqRO7KQEklOBwvJsJvuCxW7RR1v7GRpA\ | |
x1OT9/3xEC588DDYDNkvxtow89IcuqakkgL6zwSkztBTxZup6GV0RhBci8juIGZSaq0eY4JsVbdc91WOvz4IFfgongblAr2fLNJGC6QxDyJvwUz81vdcFONn0I\ | |
VwSrTkVsZbbXNCRw== jenkins | |
write_files: | |
- path: /tmp/testfile | |
permissions: 0644 | |
content: | | |
verbosity=1 | |
randomtest | |
- path: /etc/fleet/fleet.conf | |
permissions: 0644 | |
content: | | |
verbosity=2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment