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.

29 lines
948 B

  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=etc-ssl-certs,kind=host,source=/etc/ssl/certs,readOnly=true \
  13. --mount=volume=etc-ssl-certs,target=/etc/ssl/certs \
  14. --volume=etcd-cert-dir,kind=host,source={{ etcd_cert_dir }},readOnly=true \
  15. --mount=volume=etcd-cert-dir,target={{ etcd_cert_dir }} \
  16. --volume=var-lib-etcd,kind=host,source=/var/lib/etcd,readOnly=false \
  17. --mount=volume=var-lib-etcd,target=/var/lib/etcd \
  18. --set-env-file=/etc/etcd.env \
  19. --stage1-from-dir=stage1-fly.aci \
  20. {{ etcd_image_repo }}:{{ etcd_image_tag }} \
  21. --name={{ etcd_member_name | default("etcd") }}
  22. ExecStartPre=-/usr/bin/rkt rm --uuid-file=/var/run/etcd.uuid
  23. ExecStop=-/usr/bin/rkt stop --uuid-file=/var/run/etcd.uuid
  24. [Install]
  25. WantedBy=multi-user.target