linted states
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Paul 2022-06-10 00:39:52 +02:00
parent e1770e33cb
commit 2e7242c9f3
8 changed files with 27 additions and 13 deletions

View File

@ -10,4 +10,4 @@ steps:
- apt-get update -y
- apt-get upgrade -y
- pip3 install salt-lint
- salt-lint states/*/*.sls
- salt-lint -x 207,208,210 states/*/*.sls

View File

@ -22,7 +22,16 @@ acmesh-upgrade:
acmesh-run:
cmd.run:
- name: /root/.acme.sh/acme.sh --debug --issue {%- for domain in acme.domains %} -d '{{ domain }}' {% endfor -%} --dns dns_ovh --cert-file '' --fullchain-file '{{ acme.fullcertfile }}' --key-file '{{ acme.keyfile }}' -k {{ acme.keysize }}
- name: >
/root/.acme.sh/acme.sh --debug --issue
{%- for domain in acme.domains %}
-d '{{ domain }}'
{% endfor -%}
--dns dns_ovh
--cert-file ''
--fullchain-file '{{ acme.fullcertfile }}'
--key-file '{{ acme.keyfile }}'
-k {{ acme.keysize }}
- env:
- OVH_AK: '{{ acme.provider.api.application_key }}'
- OVH_AS: '{{ acme.provider.api.application_secret }}'

View File

@ -6,7 +6,12 @@ telegraf-archive-extract:
- name: {{ telegraf.release_dir }}/telegraf-{{ telegraf.version }}
- source: {{ telegraf.mirror }}/telegraf-{{ telegraf.version }}_{{ salt['grains.get']('kernel')|lower }}_{{ salt['grains.get']('osarch') }}.tar.gz
- enforce_toplevel: false
- options: --transform 's|^\{{ archive_exclude_dir }}|/|g' --exclude '{{ archive_exclude_dir }}/etc' --exclude '{{ archive_exclude_dir }}/usr/lib' --exclude '{{ archive_exclude_dir }}/var' --strip 2
- options: >
--transform 's|^\{{ archive_exclude_dir }}|/|g'
--exclude '{{ archive_exclude_dir }}/etc'
--exclude '{{ archive_exclude_dir }}/usr/lib'
--exclude '{{ archive_exclude_dir }}/var'
--strip 2
- skip_verify: true
- archive_format: tar
- if_missing: {{ telegraf.release_dir }}/telegraf-{{ telegraf.version }}/telegraf