switch dockers|vcp images to local repos

Change-Id: I52f4d868e779335f51f70dd33d83c99481edbeb0
diff --git a/init.yml b/init.yml
index 223848d..43ce183 100644
--- a/init.yml
+++ b/init.yml
@@ -45,6 +45,16 @@
     aptly_server_secure: true
     docker_stack_aptly_public_replicas: 1
     docker_registry_http_secret: 'Thoh0unuaeSeeT9i'
+    # Upstream mirrors:
+    #docker_artifactory_mirror: 'docker-prod-local.artifactory.mirantis.com'
+    #vcp_images_mirror: 'http://images.mirantis.com/'
+    vcp_images_mirror: 'http://ci.mcp.mirantis.net:8085/images/'
+    docker_artifactory_mirror: 'docker-prod-local.docker.mirantis.net'
+    docker_image_aptly:
+      api: ${_param:docker_artifactory_mirror}/mirantis/cicd/aptly-api:${_param:apt_mk_version}
+      base: ${_param:docker_artifactory_mirror}/mirantis/cicd/aptly:${_param:apt_mk_version}
+      public: ${_param:docker_artifactory_mirror}/mirantis/cicd/aptly-public:${_param:apt_mk_version}
+      publisher: ${_param:docker_artifactory_mirror}/mirantis/cicd/aptly-publisher:${_param:apt_mk_version}
     aptly_gpg_private_key: |
       -----BEGIN PGP PRIVATE KEY BLOCK-----
       Version: GnuPG v1
@@ -312,107 +322,107 @@
       registry:
         target_registry: apt:5000
         image:
-          - registry: docker-prod-local.docker.mirantis.net/mirantis/external
+          - registry: ${_param:docker_artifactory_mirror}/mirantis/external
             name: registry:${_param:apt_mk_version}
-          - registry: docker-prod-local.docker.mirantis.net/mirantis/external
+          - registry: ${_param:docker_artifactory_mirror}/mirantis/external
             name: compose:${_param:apt_mk_version}
-          - registry: docker-prod-local.docker.mirantis.net/mirantis/external
+          - registry: ${_param:docker_artifactory_mirror}/mirantis/external
             name: openldap:${_param:apt_mk_version}
-          - registry: docker-prod-local.docker.mirantis.net/mirantis/cicd
+          - registry: ${_param:docker_artifactory_mirror}/mirantis/cicd
             name: aptly:${_param:apt_mk_version}
-          - registry: docker-prod-local.docker.mirantis.net/mirantis/cicd
+          - registry: ${_param:docker_artifactory_mirror}/mirantis/cicd
             name: aptly-public:${_param:apt_mk_version}
-          - registry: docker-prod-local.docker.mirantis.net/mirantis/cicd
+          - registry: ${_param:docker_artifactory_mirror}/mirantis/cicd
             name: aptly-api:${_param:apt_mk_version}
-          - registry: docker-prod-local.docker.mirantis.net/mirantis/cicd
+          - registry: ${_param:docker_artifactory_mirror}/mirantis/cicd
             name: aptly-publisher:${_param:apt_mk_version}
-          - registry: docker-prod-local.docker.mirantis.net/mirantis/cicd
+          - registry: ${_param:docker_artifactory_mirror}/mirantis/cicd
             name: jnlp-slave:${_param:apt_mk_version}
-          - registry: docker-prod-local.docker.mirantis.net/mirantis/cicd
+          - registry: ${_param:docker_artifactory_mirror}/mirantis/cicd
             name: phpldapadmin:${_param:apt_mk_version}
-          - registry: docker-prod-local.docker.mirantis.net/mirantis/cicd
+          - registry: ${_param:docker_artifactory_mirror}/mirantis/cicd
             name: jenkins:${_param:apt_mk_version}
-          - registry: docker-prod-local.docker.mirantis.net/mirantis/cicd
+          - registry: ${_param:docker_artifactory_mirror}/mirantis/cicd
             name: gerrit:${_param:apt_mk_version}
-          - registry: docker-prod-local.docker.mirantis.net/mirantis/cicd
+          - registry: ${_param:docker_artifactory_mirror}/mirantis/cicd
             name: mysql:${_param:apt_mk_version}
-          - registry: docker-prod-local.docker.mirantis.net/mirantis/external
+          - registry: ${_param:docker_artifactory_mirror}/mirantis/external
             name: grafana:${_param:apt_mk_version}
-          - registry: docker-prod-local.docker.mirantis.net/mirantis/external
+          - registry: ${_param:docker_artifactory_mirror}/mirantis/external
             name: visualizer:${_param:apt_mk_version}
-          - registry: docker-prod-local.docker.mirantis.net/mirantis/external
+          - registry: ${_param:docker_artifactory_mirror}/mirantis/external
             name: elasticsearch:${_param:apt_mk_version}
-          - registry: docker-prod-local.docker.mirantis.net/mirantis/external
+          - registry: ${_param:docker_artifactory_mirror}/mirantis/external
             name: mongo:${_param:apt_mk_version}
-          - registry: docker-prod-local.docker.mirantis.net/mirantis/external
+          - registry: ${_param:docker_artifactory_mirror}/mirantis/external
             name: postgres:${_param:apt_mk_version}
-          - registry: docker-prod-local.docker.mirantis.net/openstack-docker
+          - registry: ${_param:docker_artifactory_mirror}/openstack-docker
             name: heka:${_param:apt_mk_version}
-          - registry: docker-prod-local.docker.mirantis.net/mirantis/oss
+          - registry: ${_param:docker_artifactory_mirror}/mirantis/oss
             name: security-monkey-api:${_param:apt_mk_version}
-          - registry: docker-prod-local.docker.mirantis.net/mirantis/oss
+          - registry: ${_param:docker_artifactory_mirror}/mirantis/oss
             name: security-monkey-scheduler:${_param:apt_mk_version}
-          - registry: docker-prod-local.docker.mirantis.net/mirantis/oss
+          - registry: ${_param:docker_artifactory_mirror}/mirantis/oss
             name: janitor-monkey:${_param:apt_mk_version}
-          - registry: docker-prod-local.docker.mirantis.net/mirantis/oss
+          - registry: ${_param:docker_artifactory_mirror}/mirantis/oss
             name: rundeck:${_param:apt_mk_version}
-          - registry: docker-prod-local.docker.mirantis.net/mirantis/oss
+          - registry: ${_param:docker_artifactory_mirror}/mirantis/oss
             name: devops-portal:${_param:apt_mk_version}
-          - registry: docker-prod-local.docker.mirantis.net/mirantis/oss
+          - registry: ${_param:docker_artifactory_mirror}/mirantis/oss
             name: pushkin:${_param:apt_mk_version}
-          - registry: docker-prod-local.docker.mirantis.net/openstack-docker
+          - registry: ${_param:docker_artifactory_mirror}/openstack-docker
             name: alertmanager:${_param:apt_mk_version}
-          - registry: docker-prod-local.docker.mirantis.net/openstack-docker
+          - registry: ${_param:docker_artifactory_mirror}/openstack-docker
             name: pushgateway:${_param:apt_mk_version}
-          - registry: docker-prod-local.docker.mirantis.net/openstack-docker
+          - registry: ${_param:docker_artifactory_mirror}/openstack-docker
             name: prometheus:${_param:apt_mk_version}
-          - registry: docker-prod-local.docker.mirantis.net/openstack-docker
+          - registry: ${_param:docker_artifactory_mirror}/openstack-docker
             name: telegraf:${_param:apt_mk_version}
-          - registry: docker-prod-local.docker.mirantis.net/openstack-docker
+          - registry: ${_param:docker_artifactory_mirror}/openstack-docker
             name: remote_storage_adapter:${_param:apt_mk_version}
-          - registry: docker-prod-local.docker.mirantis.net/openstack-docker
+          - registry: ${_param:docker_artifactory_mirror}/openstack-docker
             name: prometheus_relay:${_param:apt_mk_version}
-          - registry: docker-prod-local.docker.mirantis.net/mirantis/kubernetes/contrail-integration
+          - registry: ${_param:docker_artifactory_mirror}/mirantis/kubernetes/contrail-integration
             name: contrail-cni:${_param:apt_mk_version}
-          - registry: docker-prod-local.docker.mirantis.net/mirantis/kubernetes/contrail-integration
+          - registry: ${_param:docker_artifactory_mirror}/mirantis/kubernetes/contrail-integration
             name: contrail-network-controller:${_param:apt_mk_version}
-          - registry: docker-prod-local.docker.mirantis.net/mirantis/kubernetes
+          - registry: ${_param:docker_artifactory_mirror}/mirantis/kubernetes
             name: hyperkube-amd64:${_param:apt_mk_version}
-          - registry: docker-prod-local.docker.mirantis.net/mirantis/external
+          - registry: ${_param:docker_artifactory_mirror}/mirantis/external
             name: pause:${_param:apt_mk_version}
-          - registry: docker-prod-local.docker.mirantis.net/mirantis/kubernetes
+          - registry: ${_param:docker_artifactory_mirror}/mirantis/kubernetes
             name: virtlet:${_param:apt_mk_version}
-          - registry: docker-prod-local.docker.mirantis.net/mirantis/external
+          - registry: ${_param:docker_artifactory_mirror}/mirantis/external
             name: kubernetes-dashboard-amd64:${_param:apt_mk_version}
-          - registry: docker-prod-local.docker.mirantis.net/mirantis/external
+          - registry: ${_param:docker_artifactory_mirror}/mirantis/external
             name: k8s-dns-kube-dns-amd64:${_param:apt_mk_version}
-          - registry: docker-prod-local.docker.mirantis.net/mirantis/external
+          - registry: ${_param:docker_artifactory_mirror}/mirantis/external
             name: k8s-dns-dnsmasq-amd64:${_param:apt_mk_version}
-          - registry: docker-prod-local.docker.mirantis.net/mirantis/external
+          - registry: ${_param:docker_artifactory_mirror}/mirantis/external
             name: k8s-dns-sidecar-amd64:${_param:apt_mk_version}
-          - registry: docker-prod-local.docker.mirantis.net/mirantis/external
+          - registry: ${_param:docker_artifactory_mirror}/mirantis/external
             name: cluster-proportional-autoscaler-amd64:${_param:apt_mk_version}
-          - registry: docker-prod-local.docker.mirantis.net/mirantis/kubernetes
+          - registry: ${_param:docker_artifactory_mirror}/mirantis/kubernetes
             name: k8s-netchecker-agent:${_param:apt_mk_version}
-          - registry: docker-prod-local.docker.mirantis.net/mirantis/kubernetes
+          - registry: ${_param:docker_artifactory_mirror}/mirantis/kubernetes
             name: k8s-netchecker-server:${_param:apt_mk_version}
-          - registry: docker-prod-local.docker.mirantis.net/mirantis/external
+          - registry: ${_param:docker_artifactory_mirror}/mirantis/external
             name: etcd:${_param:apt_mk_version}
-          - registry: docker-prod-local.docker.mirantis.net/mirantis/external
+          - registry: ${_param:docker_artifactory_mirror}/mirantis/external
             name: etcd-operator:${_param:apt_mk_version}
-          - registry: docker-prod-local.docker.mirantis.net/mirantis/external
+          - registry: ${_param:docker_artifactory_mirror}/mirantis/external
             name: tiller:${_param:apt_mk_version}
-          - registry: docker-prod-local.docker.mirantis.net/mirantis/projectcalico/calico
+          - registry: ${_param:docker_artifactory_mirror}/mirantis/projectcalico/calico
             name: ctl:${_param:apt_mk_version}
-          - registry: docker-prod-local.docker.mirantis.net/mirantis/projectcalico/calico
+          - registry: ${_param:docker_artifactory_mirror}/mirantis/projectcalico/calico
             name: node:${_param:apt_mk_version}
-          - registry: docker-prod-local.docker.mirantis.net/mirantis/projectcalico/calico
+          - registry: ${_param:docker_artifactory_mirror}/mirantis/projectcalico/calico
             name: cni:${_param:apt_mk_version}
-          - registry: docker-prod-local.docker.mirantis.net/mirantis/external
+          - registry: ${_param:docker_artifactory_mirror}/mirantis/external
             name: kube-policy-controller:${_param:apt_mk_version}
-          - registry: docker-prod-local.docker.mirantis.net/mirantis/external
+          - registry: ${_param:docker_artifactory_mirror}/mirantis/external
             name: external-dns:${_param:apt_mk_version}
-          - registry: docker-prod-local.docker.mirantis.net/mirantis/oss
+          - registry: ${_param:docker_artifactory_mirror}/mirantis/oss
             name: qa-tools:${_param:apt_mk_version}
   git:
     server:
@@ -481,16 +491,16 @@
       file:
         ubuntu-16-04-x64.qcow2:
           name: /srv/http/images/ubuntu-16-04-x64-mcp${_param:apt_mk_version}.qcow2
-          source: http://ci.mcp.mirantis.net:8085/images/ubuntu-16-04-x64-mcp${_param:apt_mk_version}.qcow2
+          source: ${_param:vcp_images_mirror}/ubuntu-16-04-x64-mcp${_param:apt_mk_version}.qcow2
         ubuntu-16-04-x64.qcow2.md5:
           name: /srv/http/images/ubuntu-16-04-x64-mcp${_param:apt_mk_version}.qcow2.md5
-          source: http://ci.mcp.mirantis.net:8085/images/ubuntu-16-04-x64-mcp${_param:apt_mk_version}.qcow2.md5
+          source: ${_param:vcp_images_mirror}/ubuntu-16-04-x64-mcp${_param:apt_mk_version}.qcow2.md5
         ubuntu-14-04-x64.qcow2:
           name: /srv/http/images/ubuntu-14-04-x64-mcp${_param:apt_mk_version}.qcow2
-          source: http://ci.mcp.mirantis.net:8085/images/ubuntu-14-04-x64-mcp${_param:apt_mk_version}.qcow2
+          source: ${_param:vcp_images_mirror}/ubuntu-14-04-x64-mcp${_param:apt_mk_version}.qcow2
         ubuntu-14-04-x64.qcow2.md5:
           name: /srv/http/images/ubuntu-14-04-x64-mcp${_param:apt_mk_version}.qcow2.md5
-          source: http://ci.mcp.mirantis.net:8085/images/ubuntu-14-04-x64-mcp${_param:apt_mk_version}.qcow2.md5
+          source: ${_param:vcp_images_mirror}/ubuntu-14-04-x64-mcp${_param:apt_mk_version}.qcow2.md5
       profile:
         locales: |
           export LC_ALL=C