feat: add barebone driver options for nomad (not fully working)
All checks were successful
development / Check commit compliance (push) Successful in 26s
pull-requests-open / Check commit compliance (pull_request) Successful in 26s

This commit is contained in:
Bertrand Lanson 2024-07-10 19:32:59 +02:00
parent 48a7724759
commit ed27759dcd
Signed by: lanson
SSH Key Fingerprint: SHA256:/nqc6HGqld/PS208F6FUOvZlUzTS0rGpNNwR5O2bQBw
4 changed files with 34 additions and 1 deletions

View File

@ -251,6 +251,14 @@ vault_enable_tls: true
# nomad drivers configuration # # nomad drivers configuration #
############################### ###############################
# nomad_driver_enable_docker: yes
# nomad_driver_enable_podman: no
# nomad_driver_enable_raw_exec: no
# nomad_driver_enable_java: no
# nomad_driver_enable_qemu: no
# nomad_driver_extra_configuration: {}
###################### ######################
# nomad internal tls # # nomad internal tls #
###################### ######################
@ -259,7 +267,6 @@ nomad_enable_tls: true
nomad_tls_configuration: nomad_tls_configuration:
http: true http: true
rpc: true rpc: true
rpc_upgrade_mode: true
ca_file: "/etc/ssl/certs/ca-certificates.crt" ca_file: "/etc/ssl/certs/ca-certificates.crt"
cert_file: "{{ nomad_certificates_directory }}/cert.pem" cert_file: "{{ nomad_certificates_directory }}/cert.pem"
key_file: "{{ nomad_certificates_directory }}/key.pem" key_file: "{{ nomad_certificates_directory }}/key.pem"

View File

@ -250,6 +250,14 @@ nomad_vault_integration_configuration: {}
# nomad drivers configuration # # nomad drivers configuration #
############################### ###############################
nomad_driver_enable_docker: yes
nomad_driver_enable_podman: no
nomad_driver_enable_raw_exec: no
nomad_driver_enable_java: no
nomad_driver_enable_qemu: no
nomad_driver_extra_configuration: {}
###################### ######################
# nomad internal tls # # nomad internal tls #
###################### ######################

View File

@ -148,6 +148,10 @@ nomad_client_configuration:
# nomad drivers configuration # # nomad drivers configuration #
############################### ###############################
nomad_driver_configuration:
raw_exec:
enabled: "{{ nomad_driver_enable_raw_exec | bool }}"
###################### ######################
# nomad internal tls # # nomad internal tls #
###################### ######################

View File

@ -100,6 +100,20 @@
}}" }}"
when: nomad_enable_tls when: nomad_enable_tls
- name: "Nomad | Merge plugin configuration"
vars:
_config_to_merge:
plugin: "{{
nomad_driver_configuration |
combine(nomad_driver_extra_configuration, recursive=true)
}}"
ansible.builtin.set_fact:
hashicorp_nomad_configuration: "{{
hashicorp_nomad_configuration |
combine(_config_to_merge, recursive=true)
}}"
when: "'nomad_clients' in group_names"
- name: "Nomad | Merge extra configuration settings" - name: "Nomad | Merge extra configuration settings"
vars: vars:
_config_to_merge: "{{ nomad_extra_configuration }}" _config_to_merge: "{{ nomad_extra_configuration }}"