pavlo/heatit

View on GitHub
fixtures/engine/complete/etcd-env-generator.service

Summary

Maintainability
Test Coverage
[Unit]
Description=Creates an EnvironmentFile with etcd2 setup on private network to be injected into etcd2 service
Documentation=https://github.com/pavlo/coreos-utils/etcd-env-generator
Requires=network.target
After=network.target
[Service]
ExecStartPre=-/usr/bin/mkdir -p /opt/bin
ExecStartPre=/usr/bin/wget -N -P /opt/bin https://raw.githubusercontent.com/pavlo/coreos-utils/master/etcd-env-generator/etcd-env-generator.sh
ExecStartPre=/usr/bin/chmod +x /opt/bin/etcd-env-generator.sh
ExecStart=/opt/bin/etcd-env-generator.sh @param:network-interface @param:coreos-token
RemainAfterExit=yes
Type=oneshot