diff options
author | hu xinhui <xinhui_hu@foxmail.com> | 2017-09-29 17:06:33 +0800 |
---|---|---|
committer | hu xinhui <xinhui_hu@foxmail.com> | 2017-09-30 15:54:28 +0800 |
commit | 179cd6db9f1bd9be1606187cf74e128bede7a8e6 (patch) | |
tree | 5b6f6b381e594b42cb9bf8ac3cf45009a566be1c /deploy/adapters/ansible/kubernetes/roles/kargo/tasks | |
parent | f70d3aa8ffe7878e86b8f12c91c99018924a74b3 (diff) |
Modification for kargo to generate dynamic inventory
JIRA: -
There is some hardcode for kargo inventory.This patch is to generate dynamic inventory for kargo
Change-Id: If4a7c5f973e520e4ca24c3c9e0bfa97725a5a44c
Signed-off-by: hu xinhui <xinhui_hu@foxmail.com>
Diffstat (limited to 'deploy/adapters/ansible/kubernetes/roles/kargo/tasks')
-rw-r--r-- | deploy/adapters/ansible/kubernetes/roles/kargo/tasks/main.yml | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/deploy/adapters/ansible/kubernetes/roles/kargo/tasks/main.yml b/deploy/adapters/ansible/kubernetes/roles/kargo/tasks/main.yml index 4e902606..d3dcb878 100644 --- a/deploy/adapters/ansible/kubernetes/roles/kargo/tasks/main.yml +++ b/deploy/adapters/ansible/kubernetes/roles/kargo/tasks/main.yml @@ -58,11 +58,18 @@ tags: - ansible +- name: copy inventoriy.json file + copy: + src: /var/ansible/run/kubernetes-opnfv2/inventories/inventory.json + dest: /tmp/inventory.json + tags: + - ansible + - name: generate kargo inventories shell: > python /tmp/generate_inventories.py \ "/opt/kargo_k8s/inventory/inventory.cfg" \ - "{{ ip_settings | to_json }}" + "/tmp/inventory.json" tags: - ansible |