From 069835924120224ec46fc40877c89ac48608a6f5 Mon Sep 17 00:00:00 2001 From: Harry Huang Date: Thu, 20 Jul 2017 20:17:36 +0800 Subject: Dynamic Inventory JIRA: COMPASS-556 1. using dynamic ansible inventory 2. modify Class AnsibleInstaller in compass-tasks 3. modify compass conf to support this behavior 4. specify docker image in /deploy/conf/compass.conf 5. remove clusterhost status update in playbook_done.py Change-Id: I04079547c8b251571ae4e5b165d3bf425b8913b7 Signed-off-by: Harry Huang --- deploy/compass_conf/package_installer/ansible-ocata.conf | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'deploy/compass_conf/package_installer') diff --git a/deploy/compass_conf/package_installer/ansible-ocata.conf b/deploy/compass_conf/package_installer/ansible-ocata.conf index 45e7cbe5..0286b4eb 100755 --- a/deploy/compass_conf/package_installer/ansible-ocata.conf +++ b/deploy/compass_conf/package_installer/ansible-ocata.conf @@ -5,7 +5,9 @@ SETTINGS = { 'ansible_run_dir': '/var/ansible/run', 'ansible_config': 'ansible.cfg', 'playbook_file': 'site.yml', - 'inventory_file': 'inventory.yml', + 'inventory_file': 'inventory.py', + 'inventory_json_file': 'inventory.json', + 'inventory_group': ['controller', 'compute', 'ha', 'odl', 'onos', 'opencontrail', 'ceph_adm', 'ceph_mon', 'ceph_osd'], 'group_variable': 'all', 'etc_hosts_path': 'roles/pre-openstack/templates/hosts', 'runner_dirs': ['roles','openstack_ocata/templates','openstack_ocata/roles'] -- cgit 1.2.3-korg