summaryrefslogtreecommitdiffstats
path: root/roles/openshift_storage_glusterfs/tasks/heketi_deploy_part1.yml
blob: 935d3b689cded5eba1eb26479abbd29fe0ed3b20 (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
---
- name: Copy initial heketi resource files
  copy:
    src: "{{ openshift.common.examples_content_version }}/{{ item }}"
    dest: "{{ mktemp.stdout }}/{{ item }}"
  with_items:
  - "deploy-heketi-template.yml"

- name: Create deploy-heketi template
  oc_obj:
    namespace: "{{ glusterfs_namespace }}"
    kind: template
    name: "deploy-heketi"
    state: present
    files:
    - "{{ mktemp.stdout }}/deploy-heketi-template.yml"

- name: Deploy deploy-heketi pod
  oc_process:
    namespace: "{{ glusterfs_namespace }}"
    template_name: "deploy-heketi"
    create: True
    params:
      IMAGE_NAME: "{{ glusterfs_heketi_image }}"
      IMAGE_VERSION: "{{ glusterfs_heketi_version }}"
      HEKETI_ROUTE: "{{ glusterfs_heketi_url | default(['heketi-',glusterfs_name]|join) }}"
      HEKETI_USER_KEY: "{{ glusterfs_heketi_user_key }}"
      HEKETI_ADMIN_KEY: "{{ glusterfs_heketi_admin_key }}"
      HEKETI_EXECUTOR: "{{ glusterfs_heketi_executor }}"
      HEKETI_FSTAB: "{{ glusterfs_heketi_fstab }}"
      CLUSTER_NAME: "{{ glusterfs_name }}"

- name: Set heketi Deployed fact
  set_fact:
    glusterfs_heketi_deploy_is_missing: False