Chnages for DB usage
+ Removed Debug/Verbose + Added Ansible-Become to the play Change-Id: If0d26ea5f160783e37761de8c1c95637fdec05e0
This commit is contained in:
parent
6e114b93b0
commit
3957205453
13
ansible/browbeat/adjustment-db.yml
Normal file
13
ansible/browbeat/adjustment-db.yml
Normal file
@ -0,0 +1,13 @@
|
||||
---
|
||||
#
|
||||
#
|
||||
|
||||
- hosts: controller
|
||||
remote_user: heat-admin
|
||||
gather_facts: false
|
||||
vars:
|
||||
ansible_become: true
|
||||
greenlet_pool_size: 100
|
||||
max_overflow: 100
|
||||
roles:
|
||||
- nova-db
|
35
ansible/browbeat/roles/nova-db/handlers/main.yml
Normal file
35
ansible/browbeat/roles/nova-db/handlers/main.yml
Normal file
@ -0,0 +1,35 @@
|
||||
---
|
||||
#
|
||||
# Nova handlers for browbeat adjustment
|
||||
#
|
||||
|
||||
- name: unmanage nova services
|
||||
command: pcs resource unmanage {{ item }}
|
||||
with_items:
|
||||
- openstack-nova-api
|
||||
- openstack-nova-scheduler
|
||||
- openstack-nova-conductor
|
||||
ignore_errors: true
|
||||
|
||||
- name: restart nova services
|
||||
service: name={{ item }} state=restarted
|
||||
with_items:
|
||||
- openstack-nova-api
|
||||
- openstack-nova-scheduler
|
||||
- openstack-nova-conductor
|
||||
|
||||
- name: manage nova services
|
||||
command: pcs resource manage {{ item }}
|
||||
with_items:
|
||||
- openstack-nova-api
|
||||
- openstack-nova-scheduler
|
||||
- openstack-nova-conductor
|
||||
ignore_errors: true
|
||||
|
||||
- name: cleanup nova services
|
||||
command: pcs resource cleanup {{ item }}
|
||||
with_items:
|
||||
- openstack-nova-api
|
||||
- openstack-nova-scheduler
|
||||
- openstack-nova-conductor
|
||||
ignore_errors: true
|
21
ansible/browbeat/roles/nova-db/tasks/main.yml
Normal file
21
ansible/browbeat/roles/nova-db/tasks/main.yml
Normal file
@ -0,0 +1,21 @@
|
||||
---
|
||||
#
|
||||
# Nova tasks for Browbeat
|
||||
#
|
||||
|
||||
- name: Ensure nova.conf is properly configured
|
||||
ini_file:
|
||||
dest: /etc/nova/nova.conf
|
||||
mode: 0640
|
||||
section: "{{ item.section }}"
|
||||
option: "{{ item.option }}"
|
||||
value: "{{ item.value }}"
|
||||
backup: yes
|
||||
with_items:
|
||||
- { section: DEFAULT, option: wsgi_default_pool_size, value: "{{ greenlet_pool_size }}" }
|
||||
- { section: api_database, option: max_overflow, value: "{{ max_overflow }}" }
|
||||
notify:
|
||||
- unmanage nova services
|
||||
- restart nova services
|
||||
- manage nova services
|
||||
- cleanup nova services
|
Loading…
Reference in New Issue
Block a user