mirror of
https://git.lapiole.org/dani/ansible-roles.git
synced 2025-04-16 02:03:09 +02:00
Update to 2022-08-06 13:00
This commit is contained in:
parent
cb2305c394
commit
99b21a541e
@ -1,11 +1,11 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
# Veresion of diagrams to deploy
|
# Veresion of diagrams to deploy
|
||||||
diagrams_version: 20.2.1
|
diagrams_version: 20.2.3
|
||||||
# URL of the WAR file to deploy
|
# URL of the WAR file to deploy
|
||||||
diagrams_war_url: https://github.com/jgraph/drawio/releases/download/v{{ diagrams_version }}/draw.war
|
diagrams_war_url: https://github.com/jgraph/drawio/releases/download/v{{ diagrams_version }}/draw.war
|
||||||
# Expected sha256 of the WAR file
|
# Expected sha256 of the WAR file
|
||||||
diagrams_war_sha256: 66136e6981cf3a4dbe4327d013c524c1d874d137eca2d6ae7137a4278059d4cb
|
diagrams_war_sha256: 88189928a58d33ee8ed001cb3259c2f12d128b33d8611e4902644fc8a8524f17
|
||||||
# root directory of the installation
|
# root directory of the installation
|
||||||
diagrams_root_dir: /opt/diagrams
|
diagrams_root_dir: /opt/diagrams
|
||||||
# Should ansible manage upgrades, or just initial install ?
|
# Should ansible manage upgrades, or just initial install ?
|
||||||
|
@ -1,11 +1,11 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
# Version of cocumize to deploy
|
# Version of cocumize to deploy
|
||||||
documize_version: 5.2.0
|
documize_version: 5.2.1
|
||||||
# URL of the binary to install
|
# URL of the binary to install
|
||||||
documize_bin_url: https://github.com/documize/community/releases/download/v{{ documize_version }}/documize-community-linux-amd64
|
documize_bin_url: https://github.com/documize/community/releases/download/v{{ documize_version }}/documize-community-linux-amd64
|
||||||
# Expected sha1 of the binary
|
# Expected sha1 of the binary
|
||||||
documize_bin_sha256: 22e1c796a2e05cb56aa57ec8df252930ebb795c0a9548bfd8808f97b74e652f9
|
documize_bin_sha256: 154fd2c23f8991482b42d2d15e4cb5c8b5c965c1283c0e114b7943276de1be07
|
||||||
|
|
||||||
# Should documize handle upgrades or only initial install ?
|
# Should documize handle upgrades or only initial install ?
|
||||||
documize_manage_upgrade: True
|
documize_manage_upgrade: True
|
||||||
|
@ -5,8 +5,8 @@
|
|||||||
element_id: element
|
element_id: element
|
||||||
|
|
||||||
# Version to deploy, and expected sha256
|
# Version to deploy, and expected sha256
|
||||||
element_version: 1.11.1
|
element_version: 1.11.2
|
||||||
element_archive_sha256: 673994f739ba01f84b46e95e2af00dbfe3a00c715d14b009d30d96bcd7141c7d
|
element_archive_sha256: d3a4c497141517af9ac284c19b5647c44bd52a8fb5b8a75b87f260bc13402ce6
|
||||||
|
|
||||||
# Where to install element
|
# Where to install element
|
||||||
element_root_dir: /opt/matrix/element
|
element_root_dir: /opt/matrix/element
|
||||||
|
@ -10,9 +10,11 @@ nomad_archive_sha256: d908811cebe2a8373e93c4ad3d09af5c706241878ff3f21ee0f182b4ec
|
|||||||
# List of plugins to install
|
# List of plugins to install
|
||||||
nomad_plugins:
|
nomad_plugins:
|
||||||
podman:
|
podman:
|
||||||
version: 0.4.0
|
|
||||||
archive_url: https://releases.hashicorp.com/nomad-driver-podman/0.4.0/nomad-driver-podman_0.4.0_linux_amd64.zip
|
archive_url: https://releases.hashicorp.com/nomad-driver-podman/0.4.0/nomad-driver-podman_0.4.0_linux_amd64.zip
|
||||||
sha256: f905f9c38db8cec1542b92f69233488d5bf94e30fe9a0fae9ac03b30c1e2cfea
|
sha256: f905f9c38db8cec1542b92f69233488d5bf94e30fe9a0fae9ac03b30c1e2cfea
|
||||||
|
containerd:
|
||||||
|
archive_url: https://github.com/Roblox/nomad-driver-containerd/releases/download/v0.9.3/containerd-driver
|
||||||
|
sha256: 7bbeda63a5e05724c8f8c6d05790fbc175acc89e4309c13839afc9716d4b39c2
|
||||||
|
|
||||||
# Root dir where Nomad will be installed
|
# Root dir where Nomad will be installed
|
||||||
nomad_root_dir: /opt/nomad
|
nomad_root_dir: /opt/nomad
|
||||||
@ -102,6 +104,10 @@ nomad_base_conf:
|
|||||||
enabled: False
|
enabled: False
|
||||||
podman:
|
podman:
|
||||||
enabled: False # Note on EL8, it cannot be used with docker as there are package conflicts, see https://bugs.centos.org/view.php?id=16892
|
enabled: False # Note on EL8, it cannot be used with docker as there are package conflicts, see https://bugs.centos.org/view.php?id=16892
|
||||||
|
containerd-driver:
|
||||||
|
enabled: False
|
||||||
|
containerd_runtime: io.containerd.runc.v2
|
||||||
|
allow_privileged: True
|
||||||
|
|
||||||
# Server related settings
|
# Server related settings
|
||||||
server:
|
server:
|
||||||
@ -161,6 +167,10 @@ nomad_base_services:
|
|||||||
proto: [tcp,udp]
|
proto: [tcp,udp]
|
||||||
src_ip: []
|
src_ip: []
|
||||||
# advertise: x.x.x.x
|
# advertise: x.x.x.x
|
||||||
|
dynamic:
|
||||||
|
port: 20000:32000
|
||||||
|
proto: [tcp,udp]
|
||||||
|
src_ip: []
|
||||||
nomad_extra_services: {}
|
nomad_extra_services: {}
|
||||||
nomad_host_services: {}
|
nomad_host_services: {}
|
||||||
nomad_services: "{{ nomad_base_services | combine(nomad_extra_services, recursive=True) | combine(nomad_host_services, recursive=True) }}"
|
nomad_services: "{{ nomad_base_services | combine(nomad_extra_services, recursive=True) | combine(nomad_host_services, recursive=True) }}"
|
||||||
|
@ -1,6 +1,8 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
dependencies:
|
dependencies:
|
||||||
|
- role: repo_docker
|
||||||
|
when: nomad_conf.client.enabled and nomad_conf.client.task_drivers['containerd-driver'].enabled # with containerd, we just configure the repo and install containerd.io
|
||||||
- role: docker
|
- role: docker
|
||||||
when: nomad_conf.client.enabled and nomad_conf.client.task_drivers.docker.enabled
|
when: nomad_conf.client.enabled and nomad_conf.client.task_drivers.docker.enabled
|
||||||
- role: cni_plugins
|
- role: cni_plugins
|
||||||
|
@ -6,3 +6,9 @@
|
|||||||
- "{{ nomad_root_dir }}/tmp/nomad_{{ nomad_version }}_linux_amd64.zip"
|
- "{{ nomad_root_dir }}/tmp/nomad_{{ nomad_version }}_linux_amd64.zip"
|
||||||
- "{{ nomad_root_dir }}/tmp/nomad"
|
- "{{ nomad_root_dir }}/tmp/nomad"
|
||||||
tags: nomad
|
tags: nomad
|
||||||
|
|
||||||
|
- name: Remove temporary plugin files
|
||||||
|
file: path={{ item.dest }} state=absent
|
||||||
|
loop: "{{ nomad_plugin_dl.results }}"
|
||||||
|
when: nomad_plugin_dl is defined and nomad_plugin_dl.results is defined and item.dest is defined
|
||||||
|
tags: nomad
|
||||||
|
@ -62,8 +62,27 @@
|
|||||||
dest: "{{ nomad_root_dir }}/plugins/"
|
dest: "{{ nomad_root_dir }}/plugins/"
|
||||||
remote_src: True
|
remote_src: True
|
||||||
loop: "{{ nomad_plugin_dl.results }}"
|
loop: "{{ nomad_plugin_dl.results }}"
|
||||||
|
when: item.dest | basename | splitext | last in ['.zip','.tgz', '.txz', '.tar.gz', '.tar.xz']
|
||||||
notify: restart nomad
|
notify: restart nomad
|
||||||
|
|
||||||
|
- name: Copy nomad plugins
|
||||||
|
copy:
|
||||||
|
src: "{{ item.dest }}"
|
||||||
|
dest: "{{ nomad_root_dir }}/plugins/"
|
||||||
|
remote_src: True
|
||||||
|
loop: "{{ nomad_plugin_dl.results }}"
|
||||||
|
when: item.dest | basename | splitext | last not in ['.zip','.tgz', '.txz', '.tar.gz', '.tar.xz']
|
||||||
|
notify: restart nomad
|
||||||
|
|
||||||
|
- name: List installed plugins
|
||||||
|
command: ls {{ nomad_root_dir }}/plugins/
|
||||||
|
register: nomad_installed_plugins
|
||||||
|
changed_when: False
|
||||||
|
|
||||||
|
- name: Set permissions on plugins
|
||||||
|
file: path={{ nomad_root_dir }}/plugins/{{ item }} owner=root group=root mode=755
|
||||||
|
loop: "{{ nomad_installed_plugins.stdout_lines }}"
|
||||||
|
|
||||||
tags: nomad
|
tags: nomad
|
||||||
|
|
||||||
# Nomad looks for the qemu-system-x86_64 bin in $PATH
|
# Nomad looks for the qemu-system-x86_64 bin in $PATH
|
||||||
|
@ -18,7 +18,7 @@ name = {{ nomad_conf.name }}
|
|||||||
disable_update_check = true
|
disable_update_check = true
|
||||||
|
|
||||||
advertise {
|
advertise {
|
||||||
{% for service in nomad_services.keys() | list %}
|
{% for service in ['http', 'rpc', 'serf' ] %}
|
||||||
{% if nomad_services[service].advertise is defined %}
|
{% if nomad_services[service].advertise is defined %}
|
||||||
{{ service }} = {{ nomad_services[service].advertise }}
|
{{ service }} = {{ nomad_services[service].advertise }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
@ -26,7 +26,7 @@ advertise {
|
|||||||
}
|
}
|
||||||
|
|
||||||
ports {
|
ports {
|
||||||
{% for service in nomad_services.keys() | list %}
|
{% for service in ['http', 'rpc', 'serf' ] %}
|
||||||
{{ service }} = {{ nomad_services[service].port }}
|
{{ service }} = {{ nomad_services[service].port }}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
}
|
}
|
||||||
@ -118,6 +118,17 @@ plugin "raw_exec" {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
{% if 'containerd-driver' in nomad_enabled_task_drivers %}
|
||||||
|
plugin "containerd-driver" {
|
||||||
|
config {
|
||||||
|
enabled = true
|
||||||
|
containerd_runtime = "{{ nomad_conf.client.task_drivers['containerd-driver'].containerd_runtime }}"
|
||||||
|
allow_privileged = {{ nomad_conf.client.task_drivers['containerd-driver'].allow_privileged | ternary('true', 'false') }}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% else %}
|
{% else %}
|
||||||
client {
|
client {
|
||||||
|
@ -8,3 +8,5 @@ nomad_task_driver_packages:
|
|||||||
podman:
|
podman:
|
||||||
- podman
|
- podman
|
||||||
- podman-docker
|
- podman-docker
|
||||||
|
containerd-driver:
|
||||||
|
- containerd.io
|
||||||
|
Loading…
x
Reference in New Issue
Block a user