Arash Shams
2015-05-20 07:27:43 UTC
Hello
i want to create a fabfile to deploy HA proxy and Keepalived service in my nodes
some values are different like priority in keepalived , this values is in master 101 in other nodes 102 103 104 and so on
so i have to set some values that different is some servers
i create a setting.py
for example : KA_priority
KA_priority = {
'node1': ('101'),
'node2': ('102'),
'node3': ('103'),
'node4': ('104'),
'node5': ('101')
}
in keepalivedcfg.py i have this
priority '{KA_priority['node1']}'
but this for only one node how can i use this value for node3 in 103 node4 104 and ...
thank you and sorry for bad english
i want to create a fabfile to deploy HA proxy and Keepalived service in my nodes
some values are different like priority in keepalived , this values is in master 101 in other nodes 102 103 104 and so on
so i have to set some values that different is some servers
i create a setting.py
for example : KA_priority
KA_priority = {
'node1': ('101'),
'node2': ('102'),
'node3': ('103'),
'node4': ('104'),
'node5': ('101')
}
in keepalivedcfg.py i have this
priority '{KA_priority['node1']}'
but this for only one node how can i use this value for node3 in 103 node4 104 and ...
thank you and sorry for bad english