NFS server and mount is extracted into its own playbook. It has to
be provisioned before kube-prometheus stack.
Change-Id: I98942db4bcd7b16565d27f13d9a034b987467a61
Issue-ID: INT-1926
Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
---
-- name: Setup nfs server
- hosts: nfs-server
- roles:
- - role: nfs
- when: groups.kubernetes | length > 1
-
-- name: Setup nfs mounts
- hosts: kubernetes:!nfs-server
- roles:
- - role: nfs
- when: groups.kubernetes | length > 1
-
- name: Install Helm application {{ app_name }} into offline Kubernetes cluster
hosts: infrastructure
roles:
--- /dev/null
+---
+- name: Setup nfs server
+ hosts: nfs-server
+ roles:
+ - role: nfs
+ when: groups.kubernetes | length > 1
+
+- name: Setup nfs mounts
+ hosts: kubernetes:!nfs-server
+ roles:
+ - role: nfs
+ when: groups.kubernetes | length > 1
- import_playbook: resources.yml
- import_playbook: infrastructure.yml
- import_playbook: rke.yml
+- import_playbook: nfs.yml
- import_playbook: kube_prometheus.yml
when: kube_prometheus_stack_enabled
- import_playbook: application.yml
-