You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
1.0 KiB

  1. [Unit]
  2. Description=etcd rkt wrapper
  3. Documentation=https://github.com/coreos/etcd
  4. Wants=network.target
  5. [Service]
  6. Restart=on-failure
  7. RestartSec=10s
  8. TimeoutStartSec=0
  9. LimitNOFILE=40000
  10. ExecStart=/usr/bin/rkt run \
  11. --uuid-file-save=/var/run/etcd.uuid \
  12. --volume hosts,kind=host,source=/etc/hosts,readOnly=true \
  13. --mount volume=hosts,target=/etc/hosts \
  14. --volume=etc-ssl-certs,kind=host,source=/etc/ssl/certs,readOnly=true \
  15. --mount=volume=etc-ssl-certs,target=/etc/ssl/certs \
  16. --volume=etcd-cert-dir,kind=host,source={{ etcd_cert_dir }},readOnly=true \
  17. --mount=volume=etcd-cert-dir,target={{ etcd_cert_dir }} \
  18. --volume=etcd-data-dir,kind=host,source={{ etcd_data_dir }},readOnly=false \
  19. --mount=volume=etcd-data-dir,target={{ etcd_data_dir }} \
  20. --set-env-file=/etc/etcd.env \
  21. --stage1-from-dir=stage1-fly.aci \
  22. {{ etcd_image_repo }}:{{ etcd_image_tag }} \
  23. --name={{ etcd_member_name | default("etcd") }}
  24. ExecStartPre=-/usr/bin/rkt rm --uuid-file=/var/run/etcd.uuid
  25. ExecStop=-/usr/bin/rkt stop --uuid-file=/var/run/etcd.uuid
  26. [Install]
  27. WantedBy=multi-user.target