Update to 2022-01-30 13:00

This commit is contained in:
Daniel Berteaud 2022-01-30 13:00:05 +01:00
parent 1c2a883ec4
commit 03f70d2e98
11 changed files with 86 additions and 4 deletions

View File

@ -0,0 +1,8 @@
---
# Babashka version to deploy
bb_version: 0.7.4
# URL of the archive
bb_archive_url: https://github.com/babashka/babashka/releases/download/v{{ bb_version }}/babashka-{{ bb_version }}-linux-amd64-static.tar.gz
# Expected sha256sum of the archive
bb_archive_sha256: 707aab21b40921d0d3323e24ebc7330680e650e6bb3aab6ba67abdcf4f2f146c

View File

@ -0,0 +1,4 @@
---
dependencies:
- role: clojure

View File

@ -0,0 +1,8 @@
---
- name: Remove tmp and obsolete files
file: path={{ item }} state=absent
loop:
- /tmp/babashka-{{ bb_version }}-linux-amd64-static.tar.gz
- /tmp/bb
tags: bb

View File

@ -0,0 +1,30 @@
---
- name: Set default install mode
set_fact: bb_install_mode='none'
tags: bb
- name: Check if bb is installed
stat: path=/usr/local/bin/bb
register: bb_bin
changed_when: False
tags: bb
- name: Set install mode to install
set_fact: bb_install_mode='install'
when: not bb_bin.stat.exists
tags: bb
- name: Detect installed version
block:
- shell: bb --version | perl -ne 'm/babashka\s+v(\d+(\.\d+)*)/ && print "$1"'
changed_when: False
register: bb_current_version
- set_fact: bb_current_version={{ bb_current_version.stdout }}
tags: bb
- name: Set install mode to upgrade
set_fact: bb_install_mode='upgrade'
when: bb_current_version != bb_version
tags: bb

View File

@ -0,0 +1,25 @@
---
- when: bb_install_mode != 'none'
block:
- name: Download babashka archive
get_url:
url: "{{ bb_archive_url }}"
dest: /tmp/
checksum: sha256:{{ bb_archive_sha256 }}
- name: Extract archive
unarchive:
src: /tmp/babashka-{{ bb_version }}-linux-amd64-static.tar.gz
dest: /tmp/
remote_src: True
- name: Install babashka binary
copy:
src: /tmp/bb
dest: /usr/local/bin/bb
remote_src: True
mode: 755
tags: bb

View File

@ -0,0 +1,5 @@
---
- include: facts.yml
- include: install.yml
- include: cleanup.yml

View File

@ -16,7 +16,6 @@
- name: Check if clojure is installed
stat: path=/usr/local/bin/clojure
register: clojure_bin
changed_when: False
tags: clojure
- name: Set install mode to install
@ -27,6 +26,7 @@
- name: Detect installed version
block:
- shell: clojure --version | perl -ne 'm/version\s(\d+(\.\d+)*)/ && print "$1"'
changed_when: False
register: clojure_current_version
- set_fact: clojure_current_version={{ clojure_current_version.stdout }}
tags: clojure

View File

@ -28,7 +28,7 @@
- src: deps.edn
dest: /usr/local/lib/clojure/
- src: example-deps.edn
dest: /use/local/lib/clojure/
dest: /usr/local/lib/clojure/
- src: tools.edn
dest: /usr/local/lib/clojure/
- src: exec.jar

View File

@ -49,7 +49,7 @@ grafana_auth_base:
# - 192.168.7.12
ldap:
enabled: "{{ (ad_auth | default(False) or ldap_auth | default(False)) | ternary(True,False) }}"
servers: "{{ (ad_ldap_servers is defined) | ternary(ad_ldap_servers,[ldap.example.org]) }}"
servers: "{{ (ad_ldap_servers is defined) | ternary(ad_ldap_servers, ['ldap.example.org']) }}"
port: 389
use_ssl: True
start_tls: True

View File

@ -365,3 +365,5 @@ go.zextras.com
www.zulip.org
packages.groonga.org
# Clojure
download.clojure.org

View File

@ -67,7 +67,7 @@ taiga_public_url: https://{{ inventory_hostname }}/
# Registration enabled ?
taiga_user_registration: False
# If registration is enabled (or if oidc auth is enabled), you can restrict email domains accepted by taiga
taiga_user_registration_allowed_domains: []
taiga_user_registration_allowed_domains: [ "{{ ansible_domain }}" ]
# Max upload file size (in MB)
taiga_max_upload_file_size: 20