2014-12-16 18:41:30 +00:00
#cloud-config
2015-01-29 23:40:17 +00:00
ssh_authorized_keys :
2016-05-24 18:05:39 +00:00
- ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCC0m+hVmyR3vn/xoxJe9+atRWBxSK+YXgyufNVDMcb7H00Jfnc341QH3kDVYZamUbhVh/nyc2RP7YbnZR5zORFtgOaNSdkMYrPozzBvxjnvSUokkCCWbLqXDHvIKiR12r+UTSijPJE/Yk702Mb2ejAFuae1C3Ec+qKAoOCagDjpQ3THyb5oaKE7VPHdwCWjWIQLRhC+plu77ObhoXIFJLD13gCi01L/rp4mYVCxIc2lX5A8rkK+bZHnIZwWUQ4t8SIjWxIaUo0FE7oZ83nKuNkYj5ngmLHQLY23Nx2WhE9H6NBthUpik9SmqQPtVYbhIG+bISPoH9Xs8CLrFb0VRjz Joey Schorr
- ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCo6FhAP7mFFOAzM91gtaKW7saahtaN4lur42FMMztz6aqUycIltCmvxo+3FmrXgCG30maMNU36Vm1+9QRtVQEd+eRuoIWP28t+8MT01Fh4zPuE2Wca3pOHSNo3X81FfWJLzmwEHiQKs9HPQqUhezR9PcVWVkbMyAzw85c0UycGmHGFNb0UiRd9HFY6XbgbxhZv/mvKLZ99xE3xkOzS1PNsdSNvjUKwZR7pSUPqNS5S/1NXyR4GhFTU24VPH/bTATOv2ATH+PSzsZ7Qyz9UHj38tKC+ALJHEDJ4HXGzobyOUP78cHGZOfCB5FYubq0zmOudAjKIAhwI8XTFvJ2DX1P3 Jimmy Zelinskie
- ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDNvw8qo9m8np7yQ/Smv/oklM8bo8VyNRZriGYBDuolWDL/mZpYCQnZJXphQo7RFdNABYistikjJlBuuwUohLf2uSq0iKoFa2TgwI43wViWzvuzU4nA02/ITD5BZdmWAFNyIoqeB50Ol4qUgDwLAZ+7Kv7uCi6chcgr9gTi99jY3GHyZjrMiXMHGVGi+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Sh+jM8mAxD7V2ZLnanIDqmpYamT3ZlICz1k4bwYj35gnpSFpijAXeF9LXOEUfDtzNBjeaCvyniYlQyKzpKr8x+oIHumPlxwkFOzGhBMRGrCQ1Kzija8vVZQ6/Tjvxl19jwfgcNT0Zd9vLbHNowJPWQZhLYXdGIb3NxEfAqkGPvGCsaLfsfETYhcFwxr2g+zvf4xvyKgK35PHA/5t7TQryDSKDrQ1qTDUp3dAjzwsBFwEoQ0x68shGC661n/+APMNtj8qR5M9ueIH5WEqdRW10kKzlEm/ESvjyjEVRhXiwWyKkPch/OIUPKexKaEeOBdKocSnNx1+5ntk8OXWRQgjfwtQvm1NE/qD7fViBVUlTRk0c1SVpZaybIZkiMWmA1hzsdUbDP2mzPek1ydsVffw0I8z/dRo5gXQSPq06WfNIKpsiQF8LqP+KU+462A2tbHxFzq9VozI9PeFV+xO59wlJogv6q2yA0Jfv9BFgVgNzItIsUMvStrfkUBTYgaG9djp/vAm+SwMdnLSXILJtMO/3eRQ== Evan Cordell
2015-01-29 23:40:17 +00:00
2014-12-16 18:41:30 +00:00
write_files :
- path : /root/overrides.list
permission : '0644'
content : |
REALM={{ realm }}
TOKEN={{ token }}
2014-12-31 16:33:56 +00:00
SERVER=wss://{{ manager_hostname }}
2015-03-27 19:28:08 +00:00
{% if logentries_token -%}
LOGENTRIES_TOKEN={{ logentries_token }}
{%- endif %}
2014-12-16 18:41:30 +00:00
coreos :
update :
reboot-strategy : off
group : {{ coreos_channel }}
units :
2015-03-27 20:31:35 +00:00
- name : systemd-journal-gatewayd.socket
command : start
enable : yes
content : |
[ Unit]
Description=Journal Gateway Service Socket
[ Socket]
ListenStream=/var/run/journald.sock
Service=systemd-journal-gatewayd.service
[ Install]
WantedBy=sockets.target
2015-02-10 20:43:01 +00:00
{{ dockersystemd('quay-builder',
'quay.io/coreos/registry-build-worker' ,
quay_username,
quay_password,
worker_tag,
extra_args='--net=host --privileged --env-file /root/overrides.list -v /var/run/docker.sock:/var/run/docker.sock -v /usr/share/ca-certificates:/etc/ssl/certs',
exec_stop_post=['/bin/sh -xc "/bin/sleep 120; /usr/bin/systemctl --no-block poweroff"'],
flattened=True,
restart_policy='no'
) | indent(4) }}
2015-03-27 19:28:08 +00:00
{% if logentries_token -%}
{{ dockersystemd('builder-logs',
'quay.io/kelseyhightower/journal-2-logentries' ,
extra_args='--env-file /root/overrides.list -v /run/journald.sock:/run/journald.sock',
2015-05-20 20:34:16 +00:00
flattened=True,
2015-03-27 20:31:35 +00:00
after_units=['quay-builder.service']
2015-03-27 19:28:08 +00:00
) | indent(4) }}
{%- endif %}
2015-05-11 23:05:00 +00:00
- name : format-var-lib-docker.service
command : start
content : |
[ Unit]
Before=docker.service var-lib-docker.mount
ConditionPathExists=!/var/lib/docker.btrfs
[ Service]
Type=oneshot
2016-06-06 15:23:55 +00:00
ExecStart=/usr/bin/truncate --size={{ volume_size }} /var/lib/docker.btrfs
2015-05-11 23:05:00 +00:00
ExecStart=/usr/sbin/mkfs.btrfs /var/lib/docker.btrfs
- name : var-lib-docker.mount
2015-05-13 21:40:35 +00:00
enable : true
2015-05-11 23:05:00 +00:00
content : |
[ Unit]
Before=docker.service
After=format-var-lib-docker.service
Requires=format-var-lib-docker.service
2015-05-13 21:40:35 +00:00
[ Install]
RequiredBy=docker.service
2015-05-11 23:05:00 +00:00
[ Mount]
What=/var/lib/docker.btrfs
Where=/var/lib/docker
Type=btrfs
Options=loop,discard