Adjust neutron api/rpc/metadata workers too.
Change-Id: I03ff6da0758dcc266e78994a717aa73713d415ba
This commit is contained in:
parent
58dbf4893c
commit
e321c1ad18
@ -17,4 +17,5 @@
|
|||||||
threads: 6
|
threads: 6
|
||||||
roles:
|
roles:
|
||||||
- nova
|
- nova
|
||||||
|
- neutron
|
||||||
- keystone
|
- keystone
|
||||||
|
31
ansible/browbeat/roles/neutron/handlers/main.yml
Normal file
31
ansible/browbeat/roles/neutron/handlers/main.yml
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
---
|
||||||
|
#
|
||||||
|
# Neutron handlers for browbeat adjustment
|
||||||
|
#
|
||||||
|
|
||||||
|
- name: unmanage neutron services
|
||||||
|
command: pcs resource unmanage {{ item }}
|
||||||
|
with_items:
|
||||||
|
- neutron-server
|
||||||
|
- neutron-metadata-agent
|
||||||
|
ignore_errors: true
|
||||||
|
|
||||||
|
- name: restart neutron services
|
||||||
|
service: name={{ item }} state=restarted
|
||||||
|
with_items:
|
||||||
|
- neutron-server
|
||||||
|
- neutron-metadata-agent
|
||||||
|
|
||||||
|
- name: manage neutron services
|
||||||
|
command: pcs resource manage {{ item }}
|
||||||
|
with_items:
|
||||||
|
- neutron-server
|
||||||
|
- neutron-metadata-agent
|
||||||
|
ignore_errors: true
|
||||||
|
|
||||||
|
- name: cleanup neutron services
|
||||||
|
command: pcs resource cleanup {{ item }}
|
||||||
|
with_items:
|
||||||
|
- neutron-server
|
||||||
|
- neutron-metadata-agent
|
||||||
|
ignore_errors: true
|
40
ansible/browbeat/roles/neutron/tasks/main.yml
Normal file
40
ansible/browbeat/roles/neutron/tasks/main.yml
Normal file
@ -0,0 +1,40 @@
|
|||||||
|
---
|
||||||
|
#
|
||||||
|
# Neutron tasks for Browbeat
|
||||||
|
# * Can change worker count
|
||||||
|
#
|
||||||
|
|
||||||
|
- name: Configure neutron.conf
|
||||||
|
ini_file:
|
||||||
|
dest: /etc/neutron/neutron.conf
|
||||||
|
mode: 0640
|
||||||
|
section: "{{ item.section }}"
|
||||||
|
option: "{{ item.option }}"
|
||||||
|
value: "{{ item.value }}"
|
||||||
|
backup: yes
|
||||||
|
with_items:
|
||||||
|
- { section: DEFAULT, option: verbose, value: False }
|
||||||
|
- { section: DEFAULT, option: debug, value: False }
|
||||||
|
- { section: DEFAULT, option: api_workers, value: "{{ workers }}" }
|
||||||
|
- { section: DEFAULT, option: rpc_workers, value: "{{ workers }}" }
|
||||||
|
notify:
|
||||||
|
- unmanage neutron services
|
||||||
|
- restart neutron services
|
||||||
|
- manage neutron services
|
||||||
|
- cleanup neutron services
|
||||||
|
|
||||||
|
- name: Configure metadata_agent.ini
|
||||||
|
ini_file:
|
||||||
|
dest: /etc/neutron/metadata_agent.ini
|
||||||
|
mode: 0640
|
||||||
|
section: "{{ item.section }}"
|
||||||
|
option: "{{ item.option }}"
|
||||||
|
value: "{{ item.value }}"
|
||||||
|
backup: yes
|
||||||
|
with_items:
|
||||||
|
- { section: DEFAULT, option: metadata_workers, value: "{{ workers }}" }
|
||||||
|
notify:
|
||||||
|
- unmanage neutron services
|
||||||
|
- restart neutron services
|
||||||
|
- manage neutron services
|
||||||
|
- cleanup neutron services
|
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
#
|
#
|
||||||
# Neutron handlers
|
# Neutron handlers for browbeat install connmon
|
||||||
#
|
#
|
||||||
|
|
||||||
- name: unmanage neutron-server
|
- name: unmanage neutron-server
|
||||||
|
Loading…
x
Reference in New Issue
Block a user