Chnages for DB usage

+ Removed Debug/Verbose
+ Added Ansible-Become to the play
Change-Id: If0d26ea5f160783e37761de8c1c95637fdec05e0
This commit is contained in:
Joe 2016-02-03 21:44:07 -05:00 committed by Joe (rook)
parent 6e114b93b0
commit 3957205453
3 changed files with 69 additions and 0 deletions

View 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

View 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

View 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