Skip to content

Commit

Permalink
refact(yaml): removed the os dependecy to download the zfs-operator f…
Browse files Browse the repository at this point in the history
…ile (#516)

Signed-off-by: Aman Gupta <aman.gupta@mayadata.io>
  • Loading branch information
w3aman committed Sep 8, 2020
1 parent 0438012 commit 107c0b5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 32 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,6 @@ spec:
- name: ZFS_DRIVER_IMAGE
value: ''

## This env will be used to select zfs-operator file for
## specific Operating system on which k8s cluster is created
## For ubuntu based cluster give value as `ubuntu` (for both either 18.04 or 16.04)
## For CentOS based cluster give value as either `centos7` or `centos8` accordingly
- name: OS_NAME
value: ''

## If zpool need to be created on each worker node set this value as `true`
## If already present and no need of zpool creation then set this value as `false`
## If false then leave `POOL_NAME` & `POOL_TYPE` env values empty.
Expand Down
27 changes: 2 additions & 25 deletions experiments/zfs-localpv/zfs-localpv-provisioner/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,39 +24,16 @@
include_tasks: /utils/zpool_creation/create_zpool.yml
when: lookup('env','ZPOOL_CREATION') == 'true'

- name: Download OpenEBS ZFS driver file when OS is ubuntu
- name: Download OpenEBS ZFS-LocalPV operator file
get_url:
url: https://raw.githubusercontent.com/openebs/zfs-localpv/{{ zfs_branch }}/deploy/zfs-operator.yaml
dest: ./zfs_operator.yml
force: yes
register: result
when: lookup('env','OS_NAME') == 'ubuntu'
until: "'OK' in result.msg"
delay: 5
retries: 3

- name: Download OpenEBS ZFS driver file when OS is CentOS7
get_url:
url: https://raw.githubusercontent.com/openebs/zfs-localpv/{{ zfs_branch }}/deploy/operators/centos7/zfs-operator.yaml
dest: ./zfs_operator.yml
force: yes
register: result
when: lookup('env','OS_NAME') == 'centos7'
until: "'OK' in result.msg"
delay: 5
retries: 3

- name: Download OpenEBS ZFS driver file when OS is CentOS8
get_url:
url: https://raw.githubusercontent.com/openebs/zfs-localpv/{{ zfs_branch }}/deploy/operators/centos8/zfs-operator.yaml
dest: ./zfs_operator.yml
force: yes
register: result
when: lookup('env','OS_NAME') == 'centos8'
until: "'OK' in result.msg"
delay: 5
retries: 3


- name: Update the openebs zfs-driver image tag
replace:
path: ./zfs_operator.yml
Expand Down

0 comments on commit 107c0b5

Please sign in to comment.