From cceecd6920ae01d99dafb46d225f69e4546f278b Mon Sep 17 00:00:00 2001 From: Harry Huang Date: Fri, 25 Nov 2016 04:08:19 +0800 Subject: add compass-core conf/ into compass4nfv JIRA: COMPASS-507 1.create deploy/compass_conf/ directory to keep local compass-core conf/ files. build.sh will add it into compass.iso 2.adjust conf files to support congress Change-Id: I91dde6f62f2385d1289a5cf9a39eafce945a1bc7 Signed-off-by: Harry Huang --- .../inventories/allinone.tmpl | 47 ++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100755 deploy/compass_conf/templates/ansible_installer/openstack_newton_xenial/inventories/allinone.tmpl (limited to 'deploy/compass_conf/templates/ansible_installer/openstack_newton_xenial/inventories/allinone.tmpl') diff --git a/deploy/compass_conf/templates/ansible_installer/openstack_newton_xenial/inventories/allinone.tmpl b/deploy/compass_conf/templates/ansible_installer/openstack_newton_xenial/inventories/allinone.tmpl new file mode 100755 index 00000000..38e0038b --- /dev/null +++ b/deploy/compass_conf/templates/ansible_installer/openstack_newton_xenial/inventories/allinone.tmpl @@ -0,0 +1,47 @@ +#set controllers = $getVar('allinone_compute', []) +#set computes = $getVar('allinone_compute', []) +#set storages = $getVar('allinone_compute', []) +#set networks = $getVar('allinone_compute', []) +#if not $isinstance($controllers, list) + #set controllers = [$controllers] +#end if +#if not $isinstance($computes, list) + #set computes = [$computes] +#end if +#if not $isinstance($storages, list) + #set storages = [$storages] +#end if +#if not $isinstance($networks, list) + #set networks = [$networks] +#end if + +#set credentials = $getVar('server_credentials', {}) +#set username = $credentials.get('username', 'root') +#set password = $credentials.get('password', 'root') +[controller] +#for controller in $controllers + #set controller_ip = $controller.management.ip + #set controller_hostname = $controller.hostname +$controller_hostname ansible_ssh_host=$controller_ip ansible_ssh_user=$username ansible_ssh_password=$password +#end for + +[compute] +#for compute in $computes + #set compute_ip = $compute.management.ip + #set compute_hostname = $compute.hostname +$compute_hostname ansible_ssh_host=$compute_ip ansible_ssh_user=$username ansible_ssh_password=$password +#end for + +[network] +#for network in $networks + #set network_ip = $network.management.ip + #set network_hostname = $network.hostname +$network_hostname ansible_ssh_host=$network_ip ansible_ssh_user=$username ansible_ssh_password=$password +#end for + +[storage] +#for storage in storages + #set storage_ip = $storage.management.ip + #set storage_hostname = $storage.hostname +$storage_hostname ansible_ssh_host=$storage_ip ansible_ssh_user=$username ansible_ssh_password=$password +#end for -- cgit 1.2.3-korg