4b3d8116ce
Add vmtp ansible role to kolla. Co-Authored-By: Larry Rensing <lr699s@att.com> Co-Authored-By: Tin Lam <tinlam@gmail.com> Partially implements: bp vmtp-container Change-Id: Ib3945e0a94cca9f3a8c4f55953b40674c88ac8e4
27 lines
761 B
YAML
27 lines
761 B
YAML
---
|
|
- name: Ensuring config directories exist
|
|
file:
|
|
path: "{{ node_config_directory }}/vmtp"
|
|
state: "directory"
|
|
recurse: yes
|
|
|
|
- name: Register binary python path
|
|
command: echo /usr/lib/python2.7/site-packages
|
|
register: python_path
|
|
when: kolla_install_type == 'binary'
|
|
|
|
- name: Register source python path
|
|
command: echo /var/lib/kolla/venv/lib/python2.7/site-packages
|
|
register: python_path
|
|
when: kolla_install_type != 'binary'
|
|
|
|
- name: Copying over configuration file for vmtp
|
|
merge_yaml:
|
|
sources:
|
|
- "{{ role_path }}/templates/{{ item }}.j2"
|
|
- "{{ node_custom_config }}/{{ item }}"
|
|
- "{{ node_custom_config }}/vmtp/{{ item }}"
|
|
dest: "{{ python_path }}/vmtp/{{ item }}"
|
|
with_items:
|
|
- "cfg.default.yaml"
|