Allow common role to pull images
Change-Id: I3de01770eca6b7e681b7964a6d6e15564065aaea Partially-Implements: blueprint pre-pull-images
This commit is contained in:
parent
58daa10ae3
commit
462e8a3b6e
4
ansible/roles/common/tasks/deploy.yml
Normal file
4
ansible/roles/common/tasks/deploy.yml
Normal file
@ -0,0 +1,4 @@
|
||||
---
|
||||
- include: config.yml
|
||||
|
||||
- include: start.yml
|
@ -1,4 +1,2 @@
|
||||
---
|
||||
- include: config.yml
|
||||
|
||||
- include: start.yml
|
||||
- include: "{{ action }}.yml"
|
||||
|
12
ansible/roles/common/tasks/pull.yml
Normal file
12
ansible/roles/common/tasks/pull.yml
Normal file
@ -0,0 +1,12 @@
|
||||
---
|
||||
- name: Pulling rsyslog image
|
||||
kolla_docker:
|
||||
action: "pull_image"
|
||||
common_options: "{{ docker_common_options }}"
|
||||
image: "{{ rsyslog_image_full }}"
|
||||
|
||||
- name: Pulling kolla-ansible image
|
||||
kolla_docker:
|
||||
action: "pull_image"
|
||||
common_options: "{{ docker_common_options }}"
|
||||
image: "{{ ansible_image_full }}"
|
@ -34,6 +34,7 @@ Options:
|
||||
|
||||
Commands:
|
||||
deploy Deploy and start all kolla containers
|
||||
pull Pull all images for containers (only pulls, no runnnig container changes)
|
||||
EOF
|
||||
}
|
||||
|
||||
@ -79,8 +80,12 @@ done
|
||||
case "$1" in
|
||||
|
||||
(deploy)
|
||||
ACTION="Deploying Playbook"
|
||||
CMD="ansible-playbook -i $INVENTORY -e @/etc/kolla/globals.yml -e @/etc/kolla/passwords.yml $PLAYBOOK"
|
||||
ACTION="Deploying Playbooks"
|
||||
CMD="ansible-playbook -i $INVENTORY -e @/etc/kolla/globals.yml -e @/etc/kolla/passwords.yml $PLAYBOOK -e action=deploy"
|
||||
;;
|
||||
(pull)
|
||||
ACTION="Pulling Docker images"
|
||||
CMD="ansible-playbook -i $INVENTORY -e @/etc/kolla/globals.yml -e @/etc/kolla/passwords.yml $PLAYBOOK -e action=pull"
|
||||
;;
|
||||
|
||||
(*) usage
|
||||
|
Loading…
Reference in New Issue
Block a user