Replace deprecated dockerng Salt states

Change-Id: I99028dc6fcc8ee126cf1deb7f28c607e1970d0fa
diff --git a/etcd/server/service.sls b/etcd/server/service.sls
index 240b293..e49f453 100644
--- a/etcd/server/service.sls
+++ b/etcd/server/service.sls
@@ -62,11 +62,19 @@
       - group: root
 
 pull-etcd-image:
+  {%- if grains['saltversioninfo'] < [2017, 7] %}
   dockerng.image_present:
+  {%- else %}
+  docker_image.present:
+  {%- endif %}
     - name: {{ server.get('image', 'quay.io/coreos/etcd:latest') }}
 
 copy-etcd-binaries:
+  {%- if grains['saltversioninfo'] < [2017, 7] %}
   dockerng.running:
+  {%- else %}
+  docker_container.running:
+  {%- endif %}
     - image: {{ server.get('image', 'quay.io/coreos/etcd:latest') }}
     - entrypoint: cp
     - command: -vr /usr/local/bin/ /tmp/etcd/
@@ -75,7 +83,11 @@
     - force: True
     - require:
       - file: /tmp/etcd
+      {%- if grains['saltversioninfo'] < [2017, 7] %}
       - dockerng: pull-etcd-image
+      {%- else %}
+      - docker_image: pull-etcd-image
+      {%- endif %}
 
 {%- for filename in ['etcd', 'etcdctl'] %}
 
@@ -86,7 +98,11 @@
     - user: root
     - group: root
     - require:
+      {%- if grains['saltversioninfo'] < [2017, 7] %}
       - dockerng: copy-etcd-binaries
+      {%- else %}
+      - docker_container: copy-etcd-binaries
+      {%- endif %}
     - watch_in:
       - service: etcd