Fix lint errors
Some checks reported errors
continuous-integration/drone/push Build encountered an error
Some checks reported errors
continuous-integration/drone/push Build encountered an error
This commit is contained in:
parent
762bd0781b
commit
27f14ecf1b
9 changed files with 326 additions and 322 deletions
|
|
@ -1,22 +1,22 @@
|
||||||
---
|
---
|
||||||
# https://github.com/digitalocean/csi-digitalocean
|
# https://github.com/digitalocean/csi-digitalocean
|
||||||
- name: Include file list
|
- name: Include file list
|
||||||
include_vars: "digitalocean.yaml"
|
ansible.builtin.include_vars: "digitalocean.yaml"
|
||||||
|
|
||||||
- name: Defined digitalocean-storage state to present
|
- name: Defined digitalocean-storage state to present
|
||||||
set_fact:
|
ansible.builtin.set_fact:
|
||||||
storage_digitalocean_state: present
|
storage_digitalocean_state: present
|
||||||
when:
|
when:
|
||||||
- storage_digitalocean|bool
|
- storage_digitalocean|bool
|
||||||
|
|
||||||
- name: find state of digitalocean-storage
|
- name: find state of digitalocean-storage
|
||||||
set_fact:
|
ansible.builtin.set_fact:
|
||||||
storage_digitalocean_state: absent
|
storage_digitalocean_state: absent
|
||||||
when:
|
when:
|
||||||
- not storage_digitalocean|bool
|
- not storage_digitalocean|bool
|
||||||
|
|
||||||
- name: Secret for DigitalOcean Access Key need to be {{ storage_digitalocean_state }}
|
- name: Secret for DigitalOcean Access Key need to be {{ storage_digitalocean_state }}
|
||||||
k8s:
|
kubernetes.core.k8s:
|
||||||
state: "{{ storage_digitalocean_state }}"
|
state: "{{ storage_digitalocean_state }}"
|
||||||
context: "{{ my_context }}"
|
context: "{{ my_context }}"
|
||||||
definition:
|
definition:
|
||||||
|
|
@ -30,7 +30,7 @@
|
||||||
access-token: "{{ digitalocean_token | default('token_missing') }}"
|
access-token: "{{ digitalocean_token | default('token_missing') }}"
|
||||||
|
|
||||||
- name: digitalocean-storage need to be {{ storage_digitalocean_state }}
|
- name: digitalocean-storage need to be {{ storage_digitalocean_state }}
|
||||||
k8s:
|
kubernetes.core.k8s:
|
||||||
state: "{{ storage_digitalocean_state }}"
|
state: "{{ storage_digitalocean_state }}"
|
||||||
context: "{{ my_context }}"
|
context: "{{ my_context }}"
|
||||||
merge_type: merge
|
merge_type: merge
|
||||||
|
|
|
||||||
|
|
@ -1,22 +1,22 @@
|
||||||
---
|
---
|
||||||
# https://github.com/linode/linode-blockstorage-csi-driver
|
# https://github.com/linode/linode-blockstorage-csi-driver
|
||||||
- name: Include file list
|
- name: Include file list
|
||||||
include_vars: "linode.yaml"
|
ansible.builtin.include_vars: "linode.yaml"
|
||||||
|
|
||||||
- name: Defined linode-storage state to present
|
- name: Defined linode-storage state to present
|
||||||
set_fact:
|
ansible.builtin.set_fact:
|
||||||
storage_linode_state: present
|
storage_linode_state: present
|
||||||
when:
|
when:
|
||||||
- storage_linode|bool
|
- storage_linode|bool
|
||||||
|
|
||||||
- name: find state of linode-storage
|
- name: find state of linode-storage
|
||||||
set_fact:
|
ansible.builtin.set_fact:
|
||||||
storage_linode_state: absent
|
storage_linode_state: absent
|
||||||
when:
|
when:
|
||||||
- not storage_linode|bool
|
- not storage_linode|bool
|
||||||
|
|
||||||
- name: Add secret for Linode Access Key
|
- name: Add secret for Linode Access Key
|
||||||
k8s:
|
kubernetes.core.k8s:
|
||||||
state: "{{ storage_linode_state }}"
|
state: "{{ storage_linode_state }}"
|
||||||
context: "{{ my_context }}"
|
context: "{{ my_context }}"
|
||||||
definition:
|
definition:
|
||||||
|
|
@ -31,7 +31,7 @@
|
||||||
region: "{{ LINODE_REGION | default('token_missing') }}"
|
region: "{{ LINODE_REGION | default('token_missing') }}"
|
||||||
|
|
||||||
- name: linode-storage need to be {{ storage_linode_state }}
|
- name: linode-storage need to be {{ storage_linode_state }}
|
||||||
k8s:
|
kubernetes.core.k8s:
|
||||||
state: "{{ storage_linode_state }}"
|
state: "{{ storage_linode_state }}"
|
||||||
context: "{{ my_context }}"
|
context: "{{ my_context }}"
|
||||||
merge_type: merge
|
merge_type: merge
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@
|
||||||
name: longhorn
|
name: longhorn
|
||||||
chart_ref: longhorn/longhorn
|
chart_ref: longhorn/longhorn
|
||||||
chart_version: "{{ storage_longhorn.version }}"
|
chart_version: "{{ storage_longhorn.version }}"
|
||||||
create_namespace: yes
|
create_namespace: true
|
||||||
release_namespace: "{{ storage_longhorn.namespace }}"
|
release_namespace: "{{ storage_longhorn.namespace }}"
|
||||||
values:
|
values:
|
||||||
persistence:
|
persistence:
|
||||||
|
|
@ -97,13 +97,13 @@
|
||||||
with_items:
|
with_items:
|
||||||
- {
|
- {
|
||||||
name: "snapshot",
|
name: "snapshot",
|
||||||
cron: "1 * * * *",
|
ansible.builtin.cron: "1 * * * *",
|
||||||
task: "snapshot",
|
task: "snapshot",
|
||||||
retain: 25
|
retain: 25
|
||||||
}
|
}
|
||||||
- {
|
- {
|
||||||
name: "backup-daily",
|
name: "backup-daily",
|
||||||
cron: "0 1 * * *",
|
ansible.builtin.cron: "0 1 * * *",
|
||||||
task: "backup",
|
task: "backup",
|
||||||
retain: 8
|
retain: 8
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
- name: Local Path setup
|
- name: Local Path setup
|
||||||
block:
|
block:
|
||||||
- name: Define Manual StorageClass
|
- name: Define Manual StorageClass
|
||||||
k8s:
|
kubernetes.core.k8s:
|
||||||
state: present
|
state: present
|
||||||
context: "{{ my_context }}"
|
context: "{{ my_context }}"
|
||||||
definition:
|
definition:
|
||||||
|
|
@ -18,19 +18,23 @@
|
||||||
- manual
|
- manual
|
||||||
- storage
|
- storage
|
||||||
|
|
||||||
- include_tasks: "local-path.yml"
|
- name: include local-path tasks
|
||||||
|
ansible.builtin.include_tasks: "local-path.yml"
|
||||||
tags:
|
tags:
|
||||||
- local-path
|
- local-path
|
||||||
- storage
|
- storage
|
||||||
- include_tasks: "longhorn.yml"
|
- name: include longhorn tasks
|
||||||
|
ansible.builtin.include_tasks: "longhorn.yml"
|
||||||
tags:
|
tags:
|
||||||
- longhorn
|
- longhorn
|
||||||
- storage
|
- storage
|
||||||
- include_tasks: "nfs.yml"
|
- name: include nfs tasks
|
||||||
|
ansible.builtin.include_tasks: "nfs.yml"
|
||||||
tags:
|
tags:
|
||||||
- nfs
|
- nfs
|
||||||
- storage
|
- storage
|
||||||
- include_tasks: "secrets-store.yml"
|
- name: include secrets store tasks
|
||||||
|
ansible.builtin.include_tasks: "secrets-store.yml"
|
||||||
tags:
|
tags:
|
||||||
- secrets-store
|
- secrets-store
|
||||||
- storage
|
- storage
|
||||||
|
|
@ -41,11 +45,11 @@
|
||||||
# https://github.com/reactr-io/gocachefs
|
# https://github.com/reactr-io/gocachefs
|
||||||
|
|
||||||
|
|
||||||
# - include_tasks: "digital_ocean.yml"
|
# - ansible.builtin.include_tasks: "digital_ocean.yml"
|
||||||
# - include_tasks: "linode.yml"
|
# - ansible.builtin.include_tasks: "linode.yml"
|
||||||
|
|
||||||
- name: Select the default StorageClass
|
- name: Select the default StorageClass
|
||||||
k8s:
|
kubernetes.core.k8s:
|
||||||
state: present
|
state: present
|
||||||
context: "{{ my_context }}"
|
context: "{{ my_context }}"
|
||||||
definition:
|
definition:
|
||||||
|
|
@ -65,7 +69,7 @@
|
||||||
- storage
|
- storage
|
||||||
|
|
||||||
- name: Select the default VolumeSnapshotClass
|
- name: Select the default VolumeSnapshotClass
|
||||||
k8s:
|
kubernetes.core.k8s:
|
||||||
state: present
|
state: present
|
||||||
context: "{{ my_context }}"
|
context: "{{ my_context }}"
|
||||||
definition:
|
definition:
|
||||||
|
|
|
||||||
|
|
@ -17,7 +17,7 @@
|
||||||
state: "present"
|
state: "present"
|
||||||
name: nfs-subdir-external-provisioner
|
name: nfs-subdir-external-provisioner
|
||||||
chart_ref: nfs-subdir-external-provisioner/nfs-subdir-external-provisioner
|
chart_ref: nfs-subdir-external-provisioner/nfs-subdir-external-provisioner
|
||||||
create_namespace: yes
|
create_namespace: true
|
||||||
release_namespace: "{{ storage_nfs.namespace }}"
|
release_namespace: "{{ storage_nfs.namespace }}"
|
||||||
values:
|
values:
|
||||||
nfs:
|
nfs:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue