From 1ce7e1ea03559533419106003bd292e4e165d472 Mon Sep 17 00:00:00 2001 From: Markos Chandras Date: Wed, 21 Mar 2018 09:07:09 +0000 Subject: xci: osa: Configure the ARA callback plugin on OPNFV host The OSA deployment is driven by the OPNFV host so we need to install and configure the ARA plugin there as well. Change-Id: Ib583f5771a8c2da7531f0a42612d7c0b34fb4898 Signed-off-by: Markos Chandras --- xci/installer/osa/playbooks/configure-opnfvhost.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'xci/installer/osa/playbooks') diff --git a/xci/installer/osa/playbooks/configure-opnfvhost.yml b/xci/installer/osa/playbooks/configure-opnfvhost.yml index 3a904aed..0dc9ec6e 100644 --- a/xci/installer/osa/playbooks/configure-opnfvhost.yml +++ b/xci/installer/osa/playbooks/configure-opnfvhost.yml @@ -124,6 +124,27 @@ - pyyaml - python-neutronclient - python-openstackclient + - name: Install ARA callback plugin in OSA virtualenv + pip: + name: ara + state: present + extra_args: '-c https://raw.githubusercontent.com/openstack/requirements/{{ requirements_git_install_branch }}/upper-constraints.txt' + executable: '/opt/ansible-runtime/bin/pip' + - name: Determine ARA callback location + shell: "/opt/ansible-runtime/bin/python -c 'import os,ara; print(os.path.dirname(ara.__file__))'" + args: + executable: /bin/bash + register: _ara_install_dir + - name: Create local Ansible plugins directory + file: + path: "{{ ansible_env.HOME }}/.ansible/plugins/callback/ara" + state: directory + - name: Configure ARA callback + file: + path: "{{ ansible_env.HOME }}/.ansible/plugins/callback/ara/callbacks" + src: "{{ _ara_install_dir.stdout }}/plugins/callbacks" + force: yes + state: link - name: generate password token command: "python pw-token-gen.py --file {{openstack_osa_etc_path}}/user_secrets.yml" args: -- cgit 1.2.3-korg