diff options
Diffstat (limited to 'deployment/noheat/cluster-rke/ansible/create.yml')
-rw-r--r-- | deployment/noheat/cluster-rke/ansible/create.yml | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/deployment/noheat/cluster-rke/ansible/create.yml b/deployment/noheat/cluster-rke/ansible/create.yml new file mode 100644 index 000000000..920db966d --- /dev/null +++ b/deployment/noheat/cluster-rke/ansible/create.yml @@ -0,0 +1,63 @@ +--- +- name: Update packages + hosts: operator + become: true + tasks: + - name: Update ca-certificates + package: + name: ca-certificates + state: latest +- name: Install NFS + hosts: all + become: yes + roles: + - role: setup_nfs +- name: Set up bastion node for ONAP Docker registry + hosts: "nfs0" + become: yes + roles: + - role: create_bastion + destination: "{{ nexus }}" +- name: Add bastion information to the cluster nodes + hosts: control,workers + become: yes + tasks: + - name: Add cluster hostnames to /etc/hosts file + lineinfile: + path: /etc/hosts + line: "{{ hostvars['nfs0']['ansible_default_ipv4']['address'] }} {{ item }}" + loop: + - "nexus3.onap.org" +- name: Install Docker + become: yes + hosts: operator,control,workers + roles: + - role: setup_docker +- name: Deploy k8s + hosts: operator0 + vars_files: + - ~/common-vars.yml + roles: + - role: setup_k8s +- name: Download OOM + hosts: operator0 + tasks: + - name: Clone OOM + git: + repo: "https://git.onap.org/oom" + dest: "{{ oom_dir }}" + version: "{{ onap_branch }}" +- name: Install Helm + hosts: operator0 + roles: + - role: setup_helm +- name: Install metallb, cert-manager and prometheus + hosts: operator0 + gather_facts: false + roles: + - role: deps +- name: Deploy sm-onap + hosts: operator0 + gather_facts: false + roles: + - role: oom |