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x87cILx6fDVePvU5lW2DdhlCDUdwjuzDb/WO/c/qMWjOPqRG4q8XvB7nhuORMMgdpDXWVH4LXPmFez1iIBCKNk04l6Se7wiEOQjaBnTDiBDYlWD78r6RdiAU5eIxpq+lKBDTcET0vegwcA/WE4YOlYBbOrgtHrgwWqG/pXxUu77aapDOmfjtDrgim6XP5kEnytg5gCaN9iLvIpT8b1wD/1Z+LoNSZg6m9gkcC2yTRI0apOBa2G8lz silas@pro.local
|
|
|
|
write_files:
|
|
- path: /root/overrides.list
|
|
permission: '0644'
|
|
content: |
|
|
REALM={{ realm }}
|
|
TOKEN={{ token }}
|
|
SERVER=wss://{{ manager_hostname }}
|
|
{% if logentries_token -%}
|
|
LOGENTRIES_TOKEN={{ logentries_token }}
|
|
{%- endif %}
|
|
|
|
coreos:
|
|
update:
|
|
reboot-strategy: off
|
|
group: {{ coreos_channel }}
|
|
|
|
units:
|
|
- 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
|
|
{{ 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) }}
|
|
{% 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',
|
|
flattened=True,
|
|
after_units=['quay-builder.service']
|
|
) | indent(4) }}
|
|
{%- endif %}
|
|
- 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
|
|
ExecStart=/usr/bin/truncate --size=42G /var/lib/docker.btrfs
|
|
ExecStart=/usr/sbin/mkfs.btrfs /var/lib/docker.btrfs
|
|
- name: var-lib-docker.mount
|
|
enable: true
|
|
content: |
|
|
[Unit]
|
|
Before=docker.service
|
|
After=format-var-lib-docker.service
|
|
Requires=format-var-lib-docker.service
|
|
[Install]
|
|
RequiredBy=docker.service
|
|
[Mount]
|
|
What=/var/lib/docker.btrfs
|
|
Where=/var/lib/docker
|
|
Type=btrfs
|
|
Options=loop,discard
|