lib/kontena/machine/upcloud/cloudinit.yml in kontena-plugin-upcloud-0.2.5 vs lib/kontena/machine/upcloud/cloudinit.yml in kontena-plugin-upcloud-0.3.0
- old
+ new
@@ -25,14 +25,29 @@
nameserver 172.17.43.1
nameserver 8.8.8.8
nameserver 8.8.4.4
coreos:
units:
+ - name: update-on-boot.service
+ command: start
+ enable: true
+ content: |
+ [Unit]
+ Description=Trigger OS update on boot
+ After=update_engine.service
+ ConditionPathExists=!/etc/update-on-boot.lock
+ [Service]
+ Type=oneshot
+ TimeoutStartSec=0
+ ExecStart=/usr/bin/update_engine_client -update
+ ExecStart=/bin/touch /etc/update-on-boot.lock
+ ExecStartPost=/usr/sbin/reboot
- name: etcd2.service
command: start
enable: true
content: |
+ [Unit]
Description=etcd 2.0
After=docker.service
[Service]
Restart=always
RestartSec=5
@@ -80,5 +95,6 @@
-e KONTENA_PEER_INTERFACE=${KONTENA_PEER_INTERFACE} \
-v=/var/run/docker.sock:/var/run/docker.sock \
-v=/etc/kontena-agent.env:/etc/kontena.env \
--net=host \
kontena/agent:${KONTENA_VERSION}
+ ExecStop=/usr/bin/docker stop kontena-agent
\ No newline at end of file