195a32b1e9
Add trove enable options and port configuration Add trove groups to ansible inventory Add defaults/main.yml Add bootstrap Ansible task Add config Ansible task Add deploy Ansible task Add pull Ansible task Add register Ansible task Add start Ansible task Add upgrade Ansible task Add reconfigure Ansible task Add templatized json and .conf files for trove Integrate trove with haproxy Reference installation configuration link:http://docs.openstack.org/mitaka/install-guide-rdo/trove-install.html Change-Id: I0bc6edbf2e495ce377f994f793bde979d5c55dbf Implements: blueprint ansible-trove
46 lines
1.3 KiB
YAML
46 lines
1.3 KiB
YAML
---
|
|
- name: Ensuring config directories exist
|
|
file:
|
|
path: "{{ node_config_directory }}/{{ item }}"
|
|
state: "directory"
|
|
recurse: yes
|
|
with_items:
|
|
- "trove-conductor"
|
|
- "trove-api"
|
|
- "trove-taskmanager"
|
|
|
|
- name: Copying over config.json files for services
|
|
template:
|
|
src: "{{ item }}.json.j2"
|
|
dest: "{{ node_config_directory }}/{{ item }}/config.json"
|
|
with_items:
|
|
- "trove-conductor"
|
|
- "trove-api"
|
|
- "trove-taskmanager"
|
|
|
|
- name: Copying over trove conf files
|
|
template:
|
|
src: "{{ item }}.conf.j2"
|
|
dest: "{{ node_config_directory }}/{{ item }}/{{ item }}.conf"
|
|
with_items:
|
|
- "trove-conductor"
|
|
- "trove-taskmanager"
|
|
|
|
- name: Copying over trove.conf
|
|
merge_configs:
|
|
vars:
|
|
service_name: "{{ item }}"
|
|
sources:
|
|
- "{{ role_path }}/templates/trove.conf.j2"
|
|
- "{{ node_custom_config }}/global.conf"
|
|
- "{{ node_custom_config }}/database.conf"
|
|
- "{{ node_custom_config }}/messaging.conf"
|
|
- "{{ node_custom_config }}/trove.conf"
|
|
- "{{ node_custom_config }}/trove/{{ item }}.conf"
|
|
- "{{ node_custom_config }}/trove/{{ inventory_hostname }}/trove.conf"
|
|
dest: "{{ node_config_directory }}/{{ item }}/trove.conf"
|
|
with_items:
|
|
- "trove-conductor"
|
|
- "trove-api"
|
|
- "trove-taskmanager"
|