pull image before copy
Change-Id: I3303c25359a4e2add28085f6655e6d6488047a34
diff --git a/etcd/server/service.sls b/etcd/server/service.sls
index e43f2a0..1524715 100644
--- a/etcd/server/service.sls
+++ b/etcd/server/service.sls
@@ -61,6 +61,10 @@
- user: root
- group: root
+pull-etcd-image:
+ dockerng.image_present:
+ - image: {{ server.get('image', 'quay.io/coreos/etcd:latest') }}
+
copy-etcd-binaries:
dockerng.running:
- image: {{ server.get('image', 'quay.io/coreos/etcd:latest') }}
@@ -71,6 +75,7 @@
- force: True
- require:
- file: /tmp/etcd
+ - dockerng: pull-etcd-image
{%- for filename in ['etcd', 'etcdctl'] %}