<div dir="ltr">Greetings,<div><br></div><div>I'm working on an update to the etcd snap so we can make the Kubernetes etcd2 -> etcd3 migration simple, transactional, and hopefully more bullet proof in iterations to come. I've got a question regarding the SystemD Daemon unitfile. </div><div><br></div><div>You can declare to snapcraft, that a bin should be treated as a daemon with very straightforward syntax</div><div><br></div><div><div>apps:</div><div>  etcd:</div><div>    command: bin/etcd</div><div>    plugs:</div><div>        - network</div><div>    daemon: simple</div><div>    restart-condition: on-abnormal</div></div><div><br></div><div>This was -almost magical-. I have need of customizing this output unit file based on conditions coming from Juju, such as TLS certificate paths will need to be passed as ENV, as well as peer connection strings. </div><div><br></div><div>I can template this in Juju and overwrite the systemd unit file, but I feel like this will be a continual issue as the snap upgrades, I can only presume the systemd unit file is upgraded along the way. Please correct me if my assumption is incorrect here. Is there a way I can declare ENV or template the systemd file with the snap? </div><div><br></div><div>Thanks and all the best,</div><div><br></div><div><div><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div><br></div><div>Charles Butler <<a href="mailto:charles.butler@canonical.com" target="_blank">charles.butler@canonical.com</a>> - Juju Charmer</div><div><span style="font-size:small">Come see the future of modeling your datacenter: </span><a href="http://jujucharms.com/" style="color:rgb(17,85,204);font-size:small" target="_blank">http://jujucharms.com</a><br></div><div>Conjure up Kubernetes: `conjure-up kubernetes-core` on any ubuntu install with Conjure and Juju.</div></div></div></div></div></div></div></div></div></div></div>
</div></div>