aboutsummaryrefslogtreecommitdiffstats
path: root/deployment/noheat/cluster-rke/ansible/create.yml
blob: 9a2943b124fbee44ca8d38d057526a1015b86046 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
---
- 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: all
  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: control,workers
  roles:
    - role: setup_docker
- name: Deploy k8s
  hosts: operator0
  roles:
    - role: setup_k8s
- name: Download OOM
  hosts: operator0
  tasks:
    - name: Clone OOM
      git:
        repo: "https://git.onap.org/oom"
        dest: "{{ oom_dir }}"
        version: "master"
- name: Install Helm
  hosts: operator0
  roles:
    - role: setup_helm
- name: Install metallb, cert-manager and prometheus
  hosts: operator0
  gather_facts: false
  roles:
    - role: deps