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
|
|
@ -29,4 +29,4 @@ storage_linode: false
|
|||
storage_digitalocean: false
|
||||
|
||||
# local-path, longhorn, linode-block-storage, linode-block-storage-retain, do-block-storage
|
||||
#storage_default_storageclass: local-path
|
||||
# storage_default_storageclass: local-path
|
||||
|
|
|
|||
|
|
@ -1,22 +1,22 @@
|
|||
---
|
||||
# https://github.com/digitalocean/csi-digitalocean
|
||||
- name: Include file list
|
||||
include_vars: "digitalocean.yaml"
|
||||
ansible.builtin.include_vars: "digitalocean.yaml"
|
||||
|
||||
- name: Defined digitalocean-storage state to present
|
||||
set_fact:
|
||||
ansible.builtin.set_fact:
|
||||
storage_digitalocean_state: present
|
||||
when:
|
||||
- storage_digitalocean|bool
|
||||
|
||||
- name: find state of digitalocean-storage
|
||||
set_fact:
|
||||
ansible.builtin.set_fact:
|
||||
storage_digitalocean_state: absent
|
||||
when:
|
||||
- not storage_digitalocean|bool
|
||||
|
||||
- name: Secret for DigitalOcean Access Key need to be {{ storage_digitalocean_state }}
|
||||
k8s:
|
||||
kubernetes.core.k8s:
|
||||
state: "{{ storage_digitalocean_state }}"
|
||||
context: "{{ my_context }}"
|
||||
definition:
|
||||
|
|
@ -30,7 +30,7 @@
|
|||
access-token: "{{ digitalocean_token | default('token_missing') }}"
|
||||
|
||||
- name: digitalocean-storage need to be {{ storage_digitalocean_state }}
|
||||
k8s:
|
||||
kubernetes.core.k8s:
|
||||
state: "{{ storage_digitalocean_state }}"
|
||||
context: "{{ my_context }}"
|
||||
merge_type: merge
|
||||
|
|
|
|||
|
|
@ -1,22 +1,22 @@
|
|||
---
|
||||
# https://github.com/linode/linode-blockstorage-csi-driver
|
||||
- name: Include file list
|
||||
include_vars: "linode.yaml"
|
||||
ansible.builtin.include_vars: "linode.yaml"
|
||||
|
||||
- name: Defined linode-storage state to present
|
||||
set_fact:
|
||||
ansible.builtin.set_fact:
|
||||
storage_linode_state: present
|
||||
when:
|
||||
- storage_linode|bool
|
||||
|
||||
- name: find state of linode-storage
|
||||
set_fact:
|
||||
ansible.builtin.set_fact:
|
||||
storage_linode_state: absent
|
||||
when:
|
||||
- not storage_linode|bool
|
||||
|
||||
- name: Add secret for Linode Access Key
|
||||
k8s:
|
||||
kubernetes.core.k8s:
|
||||
state: "{{ storage_linode_state }}"
|
||||
context: "{{ my_context }}"
|
||||
definition:
|
||||
|
|
@ -31,7 +31,7 @@
|
|||
region: "{{ LINODE_REGION | default('token_missing') }}"
|
||||
|
||||
- name: linode-storage need to be {{ storage_linode_state }}
|
||||
k8s:
|
||||
kubernetes.core.k8s:
|
||||
state: "{{ storage_linode_state }}"
|
||||
context: "{{ my_context }}"
|
||||
merge_type: merge
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@
|
|||
name: longhorn
|
||||
chart_ref: longhorn/longhorn
|
||||
chart_version: "{{ storage_longhorn.version }}"
|
||||
create_namespace: yes
|
||||
create_namespace: true
|
||||
release_namespace: "{{ storage_longhorn.namespace }}"
|
||||
values:
|
||||
persistence:
|
||||
|
|
@ -51,15 +51,15 @@
|
|||
annotations:
|
||||
kubernetes.io/ingress.class: traefik
|
||||
# cert-manager.io/cluster-issuer: letsencrypt-prod
|
||||
#{% if ingress_whitelist is defined %}
|
||||
# {% if ingress_whitelist is defined %}
|
||||
# ingress.kubernetes.io/whitelist-source-range: "{% for acl_whitelist in ingress_whitelist %}{{ acl_whitelist }}{% if not loop.last %}, {% endif %}{% endfor %}"
|
||||
#{% endif %}
|
||||
# {% endif %}
|
||||
traefik.ingress.kubernetes.io/router.entrypoints: web,websecure
|
||||
#{% if basic_auth is defined %}
|
||||
# {% if basic_auth is defined %}
|
||||
# traefik.ingress.kubernetes.io/router.middlewares: {{ traefik_namespace }}-traefik-dashboard-basicauth@kubernetescrd
|
||||
# traefik.ingress.kubernetes.io/router.middlewares: basic-auth@file
|
||||
# #traefik.ingress.kubernetes.io/router.middlewares: tools-traefik-ipwhitelist@kubernetescrd,tools-basic-auth@kubernetescrd
|
||||
#{% endif %}
|
||||
# {% endif %}
|
||||
# enablePSP: true
|
||||
|
||||
- name: Configure Longhorn
|
||||
|
|
@ -97,13 +97,13 @@
|
|||
with_items:
|
||||
- {
|
||||
name: "snapshot",
|
||||
cron: "1 * * * *",
|
||||
ansible.builtin.cron: "1 * * * *",
|
||||
task: "snapshot",
|
||||
retain: 25
|
||||
}
|
||||
- {
|
||||
name: "backup-daily",
|
||||
cron: "0 1 * * *",
|
||||
ansible.builtin.cron: "0 1 * * *",
|
||||
task: "backup",
|
||||
retain: 8
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
- name: Local Path setup
|
||||
block:
|
||||
- name: Define Manual StorageClass
|
||||
k8s:
|
||||
kubernetes.core.k8s:
|
||||
state: present
|
||||
context: "{{ my_context }}"
|
||||
definition:
|
||||
|
|
@ -18,19 +18,23 @@
|
|||
- manual
|
||||
- storage
|
||||
|
||||
- include_tasks: "local-path.yml"
|
||||
- name: include local-path tasks
|
||||
ansible.builtin.include_tasks: "local-path.yml"
|
||||
tags:
|
||||
- local-path
|
||||
- storage
|
||||
- include_tasks: "longhorn.yml"
|
||||
- name: include longhorn tasks
|
||||
ansible.builtin.include_tasks: "longhorn.yml"
|
||||
tags:
|
||||
- longhorn
|
||||
- storage
|
||||
- include_tasks: "nfs.yml"
|
||||
- name: include nfs tasks
|
||||
ansible.builtin.include_tasks: "nfs.yml"
|
||||
tags:
|
||||
- nfs
|
||||
- storage
|
||||
- include_tasks: "secrets-store.yml"
|
||||
- name: include secrets store tasks
|
||||
ansible.builtin.include_tasks: "secrets-store.yml"
|
||||
tags:
|
||||
- secrets-store
|
||||
- storage
|
||||
|
|
@ -41,11 +45,11 @@
|
|||
# https://github.com/reactr-io/gocachefs
|
||||
|
||||
|
||||
# - include_tasks: "digital_ocean.yml"
|
||||
# - include_tasks: "linode.yml"
|
||||
# - ansible.builtin.include_tasks: "digital_ocean.yml"
|
||||
# - ansible.builtin.include_tasks: "linode.yml"
|
||||
|
||||
- name: Select the default StorageClass
|
||||
k8s:
|
||||
kubernetes.core.k8s:
|
||||
state: present
|
||||
context: "{{ my_context }}"
|
||||
definition:
|
||||
|
|
@ -65,7 +69,7 @@
|
|||
- storage
|
||||
|
||||
- name: Select the default VolumeSnapshotClass
|
||||
k8s:
|
||||
kubernetes.core.k8s:
|
||||
state: present
|
||||
context: "{{ my_context }}"
|
||||
definition:
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@
|
|||
state: "present"
|
||||
name: 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 }}"
|
||||
values:
|
||||
nfs:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue