aboutsummaryrefslogtreecommitdiffstats
path: root/deploy/compass_conf/templates/ansible_installer/openstack_osp9/hosts/single-controller.tmpl
blob: 3ed946942735dff8f21c3f46dcea3f60822ab704 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#set controllers = $getVar('controller', [])
#set computes = $getVar('compute', [])
#set storages = $getVar('storage', [])
#set networks = $getVar('network', [])
#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
# controller
#for controller in $controllers
    #set controller_ip = $controller.management.ip
    #set controller_hostname = $controller.hostname
$controller_ip $controller_hostname
#end for
# compute
#for worker in $computes
    #set worker_ip = $worker.management.ip
    #set worker_hostname = $worker.hostname
$worker_ip $worker_hostname
#end for
# storage
#for worker in $storages
    #set worker_ip = $worker.management.ip
    #set worker_hostname = $worker.hostname
$worker_ip $worker_hostname
#end for
# network
#for worker in $networks
    #set worker_ip = $worker.management.ip
    #set worker_hostname = $worker.hostname
$worker_ip $worker_hostname
#end for