mirror of
https://git.lapiole.org/dani/ansible-roles.git
synced 2025-04-23 21:53:21 +02:00
Update to 2023-07-03 11:00
This commit is contained in:
parent
53d90f07e0
commit
364f212977
@ -1,15 +1,15 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
# Version to deploy
|
# Version to deploy
|
||||||
metabase_version: 0.46.5
|
metabase_version: 0.46.6
|
||||||
# URL to fetch the jar
|
# URL to fetch the jar
|
||||||
metabase_jar_url: https://downloads.metabase.com/v{{ metabase_version }}/metabase.jar
|
metabase_jar_url: https://downloads.metabase.com/v{{ metabase_version }}/metabase.jar
|
||||||
# Expected sha256 of the jar
|
# Expected sha256 of the jar
|
||||||
metabase_jar_sha256: e45f01438da1ba7faa524ebf5f57524e58511970443eaf61d087c91c0efb38ec
|
metabase_jar_sha256: 8511069190e54d08cdd35dbf89333c2031eb5bbdb637ee20546b6c547e91e64a
|
||||||
# When building from source
|
# When building from source
|
||||||
metabase_archive_url: https://github.com/metabase/metabase/archive/refs/tags/v{{ metabase_version }}.tar.gz
|
metabase_archive_url: https://github.com/metabase/metabase/archive/refs/tags/v{{ metabase_version }}.tar.gz
|
||||||
# Expected sha256 of the archive
|
# Expected sha256 of the archive
|
||||||
metabase_archive_sha256: 1b887755da494cd9ee9d756d087d2e5e81acad326f1f1e15aa3fb888809e7597
|
metabase_archive_sha256: 47e88a0e4aa275090274f0179f5a069bebe10b9cfd820f93fce0bf004d177272
|
||||||
# Should ansible handle upgrades ? If set to false, only the initial install (and the config) will be handled
|
# Should ansible handle upgrades ? If set to false, only the initial install (and the config) will be handled
|
||||||
metabase_manage_upgrade: True
|
metabase_manage_upgrade: True
|
||||||
|
|
||||||
|
@ -1,12 +1,5 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
# Version of Vault to install
|
|
||||||
vault_version: 1.14.0
|
|
||||||
# URL of the archive
|
|
||||||
vault_archive_url: https://releases.hashicorp.com/vault/{{ vault_version }}/vault_{{ vault_version }}_linux_amd64.zip
|
|
||||||
# Expected sha256 of the archive
|
|
||||||
vault_archive_sha256: 3d5c27e35d8ed43d861e892fc7d8f888f2fda4319a36f344f8c09603fb184b50
|
|
||||||
|
|
||||||
# Root dir where Nomad will be installed
|
# Root dir where Nomad will be installed
|
||||||
vault_root_dir: /opt/vault
|
vault_root_dir: /opt/vault
|
||||||
|
|
||||||
|
@ -1,14 +0,0 @@
|
|||||||
---
|
|
||||||
|
|
||||||
- name: Compress previous version
|
|
||||||
command: tar cf {{ vault_root_dir }}/archives/{{ vault_current_version }}.tar.zst --use-compress-program=zstd ./
|
|
||||||
args:
|
|
||||||
chdir: "{{ vault_root_dir }}/archives/{{ vault_current_version }}"
|
|
||||||
environment:
|
|
||||||
ZSTD_CLEVEL: 10
|
|
||||||
tags: vault
|
|
||||||
|
|
||||||
- name: Remove archive dir
|
|
||||||
file: path={{ vault_root_dir }}/archives/{{ vault_current_version }} state=absent
|
|
||||||
tags: vault
|
|
||||||
|
|
@ -1,10 +0,0 @@
|
|||||||
---
|
|
||||||
|
|
||||||
- name: Create the archive dir
|
|
||||||
file: path={{ vault_root_dir }}/archives/{{ vault_current_version }} state=directory
|
|
||||||
tags: vault
|
|
||||||
|
|
||||||
- name: Backup previous version
|
|
||||||
copy: src={{ vault_root_dir }}/bin/vault dest={{ vault_root_dir }}/archives/{{ vault_current_version }}/ remote_src=True
|
|
||||||
tags: vault
|
|
||||||
|
|
@ -3,6 +3,5 @@
|
|||||||
- name: Remove tmp and obsolete files
|
- name: Remove tmp and obsolete files
|
||||||
file: path={{ item }} state=absent
|
file: path={{ item }} state=absent
|
||||||
loop:
|
loop:
|
||||||
- "{{ vault_root_dir }}/tmp/vault_{{ vault_version }}_linux_amd64.zip"
|
- "{{ vault_root_dir }}/archives"
|
||||||
- "{{ vault_root_dir }}/tmp/vault"
|
|
||||||
tags: vault
|
tags: vault
|
||||||
|
@ -7,10 +7,6 @@
|
|||||||
owner: root
|
owner: root
|
||||||
group: root
|
group: root
|
||||||
mode: 755
|
mode: 755
|
||||||
- dir: archives
|
|
||||||
owner: root
|
|
||||||
group: root
|
|
||||||
mode: 700
|
|
||||||
- dir: backup
|
- dir: backup
|
||||||
owner: root
|
owner: root
|
||||||
group: root
|
group: root
|
||||||
|
@ -29,6 +29,3 @@
|
|||||||
dest: /etc/profile.d/vault.sh
|
dest: /etc/profile.d/vault.sh
|
||||||
mode: 0755
|
mode: 0755
|
||||||
tags: vault
|
tags: vault
|
||||||
|
|
||||||
- name: Write version
|
|
||||||
copy: content={{ vault_version }} destination={{ vault_root_dir }}/meta/ansible_version
|
|
||||||
|
@ -9,10 +9,6 @@
|
|||||||
- include_tasks: facts.yml
|
- include_tasks: facts.yml
|
||||||
tags: always
|
tags: always
|
||||||
|
|
||||||
- include_tasks: archive_pre.yml
|
|
||||||
when: vault_install_mode | default('none') == 'upgrade'
|
|
||||||
tags: always
|
|
||||||
|
|
||||||
- include_tasks: install.yml
|
- include_tasks: install.yml
|
||||||
tags: always
|
tags: always
|
||||||
|
|
||||||
@ -26,10 +22,6 @@
|
|||||||
- include_tasks: services.yml
|
- include_tasks: services.yml
|
||||||
tags: always
|
tags: always
|
||||||
|
|
||||||
- include_tasks: archive_post.yml
|
|
||||||
when: vault_install_mode | default('none') == 'upgrade'
|
|
||||||
tags: always
|
|
||||||
|
|
||||||
- include_tasks: cleanup.yml
|
- include_tasks: cleanup.yml
|
||||||
tags: always
|
tags: always
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user