Allow specify container_cli
In OSP15, the default containers are podman. So we need to pass container_cli environment variable as "podman" so that the podman containers configuration file on the undercloud can be parsed. Change-Id: I223c46baf4cf36596c8ff1e7468eb9fd1a0f1126 Signed-off-by: Charles Short <chucks@redhat.com>
This commit is contained in:
parent
3d9478aef2
commit
46a17336b1
@ -1,4 +1,7 @@
|
||||
---
|
||||
#
|
||||
# For podman containers change "container_cli" configuration to podman
|
||||
#
|
||||
|
||||
- hosts: stockpile
|
||||
tasks:
|
||||
|
@ -7,6 +7,7 @@ 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
|
||||
|
@ -11,6 +11,7 @@ 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
|
||||
|
@ -32,6 +32,9 @@ mapping:
|
||||
ssh_config:
|
||||
type: str
|
||||
required: True
|
||||
container_cli:
|
||||
type: str
|
||||
required: True
|
||||
elasticsearch:
|
||||
required: True
|
||||
type: map
|
||||
|
@ -93,8 +93,10 @@ class Tools(object):
|
||||
def gather_metadata(self):
|
||||
os.putenv("ANSIBLE_SSH_ARGS", " -F {}".format(self.config['ansible']['ssh_config']))
|
||||
ansible_cmd = \
|
||||
'ansible-playbook -i {} {}' \
|
||||
.format(self.config['ansible']['hosts'], self.config['ansible']['metadata_playbook'])
|
||||
'ansible-playbook -e container_cli={} -i {} {}' \
|
||||
.format(self.config['ansible']['container_cli'],
|
||||
self.config['ansible']['hosts'],
|
||||
self.config['ansible']['metadata_playbook'])
|
||||
self.run_cmd(ansible_cmd)
|
||||
if not self.check_metadata():
|
||||
self.logger.warning("Metadata could not be gathered")
|
||||
|
@ -7,6 +7,7 @@ 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
|
||||
|
@ -8,6 +8,7 @@ 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
|
||||
|
@ -8,6 +8,7 @@ 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
|
||||
|
@ -7,6 +7,7 @@ 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
|
||||
|
@ -7,6 +7,7 @@ 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
|
||||
|
@ -10,6 +10,7 @@ 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
|
||||
|
@ -8,6 +8,7 @@ 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
|
||||
|
@ -12,6 +12,7 @@ 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
|
||||
|
@ -7,6 +7,7 @@ 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
|
||||
|
@ -14,6 +14,7 @@ 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
|
||||
|
@ -14,6 +14,7 @@ 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
|
||||
|
@ -14,6 +14,7 @@ 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
|
||||
|
@ -14,6 +14,7 @@ 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
|
||||
|
@ -11,6 +11,7 @@ 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
|
||||
|
@ -11,6 +11,7 @@ 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
|
||||
|
@ -10,6 +10,7 @@ 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
|
||||
|
@ -12,6 +12,7 @@ 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
|
||||
|
@ -10,6 +10,7 @@ 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
|
||||
|
@ -11,6 +11,7 @@ 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
|
||||
|
@ -7,6 +7,7 @@ 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
|
||||
|
Loading…
Reference in New Issue
Block a user