renamed haproxy actions (forgotten files)

This commit is contained in:
Jedrzej Nowak 2015-09-01 15:25:29 +02:00
parent 97225223db
commit db25323928
3 changed files with 13 additions and 20 deletions

View File

@ -170,7 +170,7 @@ def setup_haproxies():
for single_hps, single_hpc in zip(hps, hpc): for single_hps, single_hpc in zip(hps, hpc):
signals.connect(single_hpc, single_hps, {'listen_ports': 'ports'}, signals.connect(single_hpc, single_hps, {'listen_ports': 'ports'},
events=None) events=False)
# assign haproxy services to each node # assign haproxy services to each node
@ -204,11 +204,12 @@ def setup_haproxies():
events = [] events = []
for node, single_hps, single_hpc in zip(nodes, hps, hpc): for node, single_hps, single_hpc in zip(nodes, hps, hpc):
r = React(node.name, 'run', 'success', single_hps.name, 'install') # r = React(node.name, 'run', 'success', single_hps.name, 'install')
d = Dep(single_hps.name, 'install', 'success', single_hpc.name, 'run') d = Dep(single_hps.name, 'run', 'success', single_hpc.name, 'run')
e1 = React(single_hpc.name, 'run', 'success', single_hps.name, 'run') e1 = React(single_hpc.name, 'run', 'success', single_hps.name, 'apply_config')
e2 = React(single_hpc.name, 'update', 'success', single_hps.name, 'update') e2 = React(single_hpc.name, 'update', 'success', single_hps.name, 'apply_config')
events.extend([r, d, e1, e2]) # events.extend([r, d, e1, e2])
events.extend([d, e1, e2])
for event in events: for event in events:
add_event(event) add_event(event)
@ -223,7 +224,6 @@ def main():
def deploy(): def deploy():
setup_riak() setup_riak()
@click.command() @click.command()
def add_haproxies(): def add_haproxies():
setup_haproxies() setup_haproxies()

View File

@ -1,10 +0,0 @@
- hosts: [{{ ip }}]
sudo: yes
tasks:
- apt:
name: haproxy
state: present
- replace:
dest: '/etc/default/haproxy'
regexp: ENABLED=0
replace: ENABLED=1

View File

@ -1,7 +1,10 @@
- hosts: [{{ ip }}] - hosts: [{{ ip }}]
sudo: yes sudo: yes
tasks: tasks:
- service: - apt:
name: haproxy name: haproxy
state: reloaded state: present
- replace:
dest: '/etc/default/haproxy'
regexp: ENABLED=0
replace: ENABLED=1