Fix lint errors
Some checks reported errors
continuous-integration/drone/push Build encountered an error

This commit is contained in:
Adrien Reslinger 2022-07-23 01:00:27 +02:00
parent 762bd0781b
commit 27f14ecf1b
Signed by: adrien
GPG key ID: DA7B27055C66D6DE
9 changed files with 326 additions and 322 deletions

View file

@ -29,4 +29,4 @@ storage_linode: false
storage_digitalocean: false storage_digitalocean: false
# local-path, longhorn, linode-block-storage, linode-block-storage-retain, do-block-storage # local-path, longhorn, linode-block-storage, linode-block-storage-retain, do-block-storage
#storage_default_storageclass: local-path # storage_default_storageclass: local-path

View file

@ -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

View file

@ -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

View file

@ -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:
@ -51,15 +51,15 @@
annotations: annotations:
kubernetes.io/ingress.class: traefik kubernetes.io/ingress.class: traefik
# cert-manager.io/cluster-issuer: letsencrypt-prod # 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 %}" # 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 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: {{ traefik_namespace }}-traefik-dashboard-basicauth@kubernetescrd
# traefik.ingress.kubernetes.io/router.middlewares: basic-auth@file # traefik.ingress.kubernetes.io/router.middlewares: basic-auth@file
# #traefik.ingress.kubernetes.io/router.middlewares: tools-traefik-ipwhitelist@kubernetescrd,tools-basic-auth@kubernetescrd # #traefik.ingress.kubernetes.io/router.middlewares: tools-traefik-ipwhitelist@kubernetescrd,tools-basic-auth@kubernetescrd
#{% endif %} # {% endif %}
# enablePSP: true # enablePSP: true
- name: Configure Longhorn - name: Configure Longhorn
@ -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
} }

View file

@ -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:

View file

@ -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: