Cleaning up the ansible work
This commit is contained in:
parent
dfe0e4f41c
commit
265ad144dc
|
@ -1,3 +1,6 @@
|
|||
#
|
||||
#
|
||||
#
|
||||
- hosts : controllers
|
||||
remote_user: heat-admin
|
||||
roles:
|
||||
|
|
|
@ -1,3 +1,11 @@
|
|||
---
|
||||
|
||||
num_workers: "{{ lookup('env','NUM_WORKERS') }}"
|
||||
#
|
||||
# Number of Service workers for OpenStack
|
||||
#
|
||||
num_workers: 24
|
||||
num_workers: "{{ lookup('env','NUM_WORKERS') }}"
|
||||
#
|
||||
# Tool for monitoring database connections
|
||||
#
|
||||
connmon: True
|
||||
connmon: "{{ lookup('env','CONNMON') }}"
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
---
|
||||
- name: ensure nova.conf is properly configured
|
||||
- name: Ensure nova.conf is properly configured
|
||||
ini_file:
|
||||
dest: /etc/nova/nova.conf
|
||||
mode: 0640
|
||||
|
@ -8,11 +8,31 @@
|
|||
value: "{{ item.value }}"
|
||||
backup: yes
|
||||
with_items:
|
||||
- { section: DEFAULT, option: log_dir, value: /var/log/nova}
|
||||
- { section: DEFAULT, option: verbose, value: True }
|
||||
- { section: DEFAULT, option: debug, value: True }
|
||||
- { section: DEFAULT, option: verbose, value: False }
|
||||
- { section: DEFAULT, option: debug, value: False }
|
||||
- { section: DEFAULT, option: ec2_workers, value: "{{ num_workers }}" }
|
||||
- { section: DEFAULT, option: osapi_compute_workers, value: "{{ num_workers }}" }
|
||||
- { section: DEFAULT, option: workers, value: "{{ num_workers }}" }
|
||||
- { section: DEFAULT, option: metadata_workers, value: "{{ num_workers }}" }
|
||||
- { section: conductor, option: workers, value: "{{ num_workers }}" }
|
||||
|
||||
- name: Unmanage Nova Service from pacemaker
|
||||
shell : pcs resource unmanage {{ item }}
|
||||
with_items:
|
||||
- openstack-nova-conductor
|
||||
- opnestack-nova-api
|
||||
- openstack-nova-scheduler
|
||||
|
||||
- name: Restart Nova services
|
||||
service: name={{ item }} state=restarted
|
||||
with_items:
|
||||
- openstack-nova-conductor
|
||||
- opnestack-nova-api
|
||||
- openstack-nova-scheduler
|
||||
|
||||
- name: Manage Nova Service from pacemaker
|
||||
shell : pcs resource manage {{ item }}
|
||||
with_items:
|
||||
- openstack-nova-conductor
|
||||
- opnestack-nova-api
|
||||
- openstack-nova-scheduler
|
||||
|
|
Loading…
Reference in New Issue