diff options
author | Markos Chandras <mchandras@suse.de> | 2017-12-21 13:37:36 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2017-12-21 13:37:36 +0000 |
commit | 1a68730ab76b3fad4395f1cca0d3590c0507d378 (patch) | |
tree | 0a57fdf3fa7296ea4b92c3d5cedc178690dd3144 /xci/nfvi/osa/playbooks/configure-targethosts.yml | |
parent | 1b238dde764f68404489b21245e0b1494cb06e8e (diff) | |
parent | c74cfd33fc3c8274433f153f1d211b7b2657ab54 (diff) |
Merge "xci: OSA: Move all the OSA specific playbooks to the NFVI directory"
Diffstat (limited to 'xci/nfvi/osa/playbooks/configure-targethosts.yml')
-rw-r--r-- | xci/nfvi/osa/playbooks/configure-targethosts.yml | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/xci/nfvi/osa/playbooks/configure-targethosts.yml b/xci/nfvi/osa/playbooks/configure-targethosts.yml new file mode 100644 index 00000000..14a9149b --- /dev/null +++ b/xci/nfvi/osa/playbooks/configure-targethosts.yml @@ -0,0 +1,49 @@ +--- +- hosts: all + remote_user: root + tasks: + - name: add public key to host + copy: + src: "{{ XCI_PATH }}/xci/file/authorized_keys" + dest: /root/.ssh/authorized_keys + +- hosts: controller + remote_user: root + vars_files: + - "{{ XCI_PATH }}/xci/var/opnfv.yml" + + pre_tasks: + - name: Load distribution variables + include_vars: + file: "{{ item }}" + with_items: + - "{{ XCI_PATH }}/xci/var/{{ ansible_os_family }}.yml" + - "{{ XCI_PATH }}/xci/file/{{ XCI_FLAVOR }}/flavor-vars.yml" + roles: + - role: configure-network + # we need to force sync time with ntp or the nodes will be out of sync timewise + - role: synchronize-time + +- hosts: compute + remote_user: root + vars_files: + - "{{ XCI_PATH }}/xci/var/opnfv.yml" + + pre_tasks: + - name: Load distribution variables + include_vars: + file: "{{ item }}" + with_items: + - "{{ XCI_PATH }}/xci/var/{{ ansible_os_family }}.yml" + - "{{ XCI_PATH }}/xci/file/{{ XCI_FLAVOR }}/flavor-vars.yml" + roles: + - role: configure-network + # we need to force sync time with ntp or the nodes will be out of sync timewise + - role: synchronize-time + - role: configure-ceph + when: XCI_CEPH_ENABLED == "true" + +- hosts: compute00 + remote_user: root + roles: + - role: configure-nfs |