Nova work for modifying # of workers

This commit is contained in:
Joe Talerico 2015-11-06 17:23:29 -05:00
parent ae7f465050
commit d42a5b6dc6
2 changed files with 10 additions and 2 deletions

View File

@ -0,0 +1,3 @@
---
num_workers: "{{ lookup('env','NUM_WORKERS') }}"

View File

@ -7,9 +7,14 @@
option: "{{ item.option }}"
value: "{{ item.value }}"
backup: yes
with_items:
with_items:
- { section: DEFAULT, option: log_dir, value: /var/log/nova}
- { section: DEFAULT, option: verbose, value: True }
- { section: DEFAULT, option: debug, value: True }
register: nova_conf
- { 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 }}" }