diff options
author | Fatih Degirmenci <fdegir@gmail.com> | 2018-03-22 20:23:02 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2018-03-22 20:23:02 +0000 |
commit | 4fb43a082642b02cba81440e1fcc03a01caa78ba (patch) | |
tree | 408ed923db725df1e4a63246c924989ac28be38d /xci/installer | |
parent | 9963c3564ed611de7c9f4db6d2f5a1ace1c1ef61 (diff) | |
parent | 1ce7e1ea03559533419106003bd292e4e165d472 (diff) |
Merge "xci: osa: Configure the ARA callback plugin on OPNFV host"
Diffstat (limited to 'xci/installer')
-rw-r--r-- | xci/installer/osa/playbooks/configure-opnfvhost.yml | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/xci/installer/osa/playbooks/configure-opnfvhost.yml b/xci/installer/osa/playbooks/configure-opnfvhost.yml index 47e9a65f..2485f477 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: |