Let stockpile set container_cli

With the addition of a8b256cad6
and 3791692021 we can have stockpile
set the var so that's one less var for the user to set.

Change-Id: Ic0e31549685d0f66fe09b4dc1694945f3071b873
This commit is contained in:
Sai Sindhur Malleni 2019-11-05 14:59:01 -05:00
parent 1b9718b51e
commit f539cbbf88
25 changed files with 2 additions and 30 deletions

View File

@ -15,14 +15,12 @@
- name: setting facts
set_fact:
overcloud_user: "{{ host_remote_user }}"
container_cli: "{{ container_cli }}"
- hosts: undercloud
tasks:
- name: setting facts
set_fact:
undercloud_user: "{{ local_remote_user }}"
container_cli: "{{ container_cli }}"
- import_playbook: stockpile/config/featureset001.yml
vars:

View File

@ -7,7 +7,6 @@ ansible:
hosts: ansible/hosts
metadata_playbook: ansible/gather/stockpile.yml
ssh_config: ansible/ssh-config
container_cli: docker
elasticsearch:
enabled: true
host: 1.1.1.1

View File

@ -11,7 +11,6 @@ ansible:
hosts: ansible/hosts
metadata_playbook: ansible/gather/stockpile.yml
ssh_config: ansible/ssh-config
container_cli: docker
elasticsearch:
enabled: false
host: 1.1.1.1

View File

@ -32,9 +32,6 @@ mapping:
ssh_config:
type: str
required: True
container_cli:
type: str
required: True
elasticsearch:
required: True
type: map

View File

@ -93,9 +93,8 @@ class Tools(object):
def gather_metadata(self):
os.putenv("ANSIBLE_SSH_ARGS", " -F {}".format(self.config['ansible']['ssh_config']))
ansible_cmd = \
'ansible-playbook -e container_cli={} -i {} {}' \
.format(self.config['ansible']['container_cli'],
self.config['ansible']['hosts'],
'ansible-playbook -i {} {}' \
.format(self.config['ansible']['hosts'],
self.config['ansible']['metadata_playbook'])
self.run_cmd(ansible_cmd)
if not self.check_metadata():

View File

@ -7,7 +7,6 @@ ansible:
hosts: ansible/hosts
metadata_playbook: ansible/gather/stockpile.yml
ssh_config: ansible/ssh-config
container_cli: docker
elasticsearch:
enabled: false
host: 1.1.1.1

View File

@ -8,7 +8,6 @@ ansible:
hosts: ansible/hosts
metadata_playbook: ansible/gather/stockpile.yml
ssh_config: ansible/ssh-config
container_cli: docker
elasticsearch:
enabled: false
host: 1.1.1.1

View File

@ -8,7 +8,6 @@ ansible:
hosts: ansible/hosts
metadata_playbook: ansible/gather/stockpile.yml
ssh_config: ansible/ssh-config
container_cli: docker
elasticsearch:
enabled: false
host: 1.1.1.1

View File

@ -7,7 +7,6 @@ ansible:
hosts: ansible/hosts
metadata_playbook: ansible/gather/stockpile.yml
ssh_config: ansible/ssh-config
container_cli: docker
elasticsearch:
enabled: false
host: 1.1.1.1

View File

@ -7,7 +7,6 @@ ansible:
hosts: ansible/hosts
metadata_playbook: ansible/gather/stockpile.yml
ssh_config: ansible/ssh-config
container_cli: docker
elasticsearch:
enabled: false
host: 1.1.1.1

View File

@ -10,7 +10,6 @@ ansible:
hosts: ansible/hosts
metadata_playbook: ansible/gather/stockpile.yml
ssh_config: ansible/ssh-config
container_cli: docker
elasticsearch:
enabled: false
host: 1.1.1.1

View File

@ -8,7 +8,6 @@ ansible:
hosts: ansible/hosts
metadata_playbook: ansible/gather/stockpile.yml
ssh_config: ansible/ssh-config
container_cli: docker
elasticsearch:
enabled: false
host: 1.1.1.1

View File

@ -12,7 +12,6 @@ ansible:
hosts: ansible/hosts
metadata_playbook: ansible/gather/stockpile.yml
ssh_config: ansible/ssh-config
container_cli: docker
elasticsearch:
enabled: false
host: 1.1.1.1

View File

@ -7,7 +7,6 @@ ansible:
hosts: ansible/hosts
metadata_playbook: ansible/gather/stockpile.yml
ssh_config: ansible/ssh-config
container_cli: docker
elasticsearch:
enabled: false
host: 1.1.1.1

View File

@ -14,7 +14,6 @@ ansible:
hosts: ansible/hosts
metadata_playbook: ansible/gather/stockpile.yml
ssh_config: ansible/ssh-config
container_cli: docker
elasticsearch:
enabled: false
host: 1.1.1.1

View File

@ -14,7 +14,6 @@ ansible:
hosts: ansible/hosts
metadata_playbook: ansible/gather/stockpile.yml
ssh_config: ansible/ssh-config
container_cli: docker
elasticsearch:
enabled: false
host: 1.1.1.1

View File

@ -14,7 +14,6 @@ ansible:
hosts: ansible/hosts
metadata_playbook: ansible/gather/stockpile.yml
ssh_config: ansible/ssh-config
container_cli: docker
elasticsearch:
enabled: false
host: 1.1.1.1

View File

@ -14,7 +14,6 @@ ansible:
hosts: ansible/hosts
metadata_playbook: ansible/gather/stockpile.yml
ssh_config: ansible/ssh-config
container_cli: docker
elasticsearch:
enabled: false
host: 1.1.1.1

View File

@ -11,7 +11,6 @@ ansible:
hosts: ansible/hosts
metadata_playbook: ansible/gather/stockpile.yml
ssh_config: ansible/ssh-config
container_cli: docker
elasticsearch:
enabled: false
host: 1.1.1.1

View File

@ -11,7 +11,6 @@ ansible:
hosts: ansible/hosts
metadata_playbook: ansible/gather/stockpile.yml
ssh_config: ansible/ssh-config
container_cli: docker
elasticsearch:
enabled: false
host: 1.1.1.1

View File

@ -10,7 +10,6 @@ ansible:
hosts: ansible/hosts
metadata_playbook: ansible/gather/stockpile.yml
ssh_config: ansible/ssh-config
container_cli: docker
elasticsearch:
enabled: false
host: 1.1.1.1

View File

@ -12,7 +12,6 @@ ansible:
hosts: ansible/hosts
metadata_playbook: ansible/gather/stockpile.yml
ssh_config: ansible/ssh-config
container_cli: docker
elasticsearch:
enabled: false
host: 1.1.1.1

View File

@ -10,7 +10,6 @@ ansible:
hosts: ansible/hosts
metadata_playbook: ansible/gather/stockpile.yml
ssh_config: ansible/ssh-config
container_cli: docker
elasticsearch:
enabled: false
host: 1.1.1.1

View File

@ -11,7 +11,6 @@ ansible:
hosts: ansible/hosts
metadata_playbook: ansible/gather/stockpile.yml
ssh_config: ansible/ssh-config
container_cli: docker
elasticsearch:
enabled: false
host: 1.1.1.1

View File

@ -7,7 +7,6 @@ ansible:
hosts: ansible/hosts
metadata_playbook: ansible/gather/site.yml
ssh_config: ansible/ssh-config
container_cli: docker
elasticsearch:
enabled: false
host: browbeat.test.com