Deploy Nomad, Consul, and Vault using apt repo

This commit is contained in:
IamTheFij 2022-07-21 19:04:44 -07:00
parent f460f890da
commit 5583b2d38e
2 changed files with 17 additions and 11 deletions

View File

@ -4,10 +4,10 @@ roles:
name: ansible-consul name: ansible-consul
scm: git scm: git
version: my-main version: my-main
- src: https://github.com/ansible-community/ansible-nomad.git - src: https://github.com/IamTheFij/ansible-nomad.git
name: ansible-nomad name: ansible-nomad
scm: git scm: git
version: master version: install-repo
- src: https://github.com/ansible-community/ansible-vault.git - src: https://github.com/ansible-community/ansible-vault.git
name: ansible-vault name: ansible-vault
scm: git scm: git

View File

@ -3,12 +3,14 @@
hosts: consul_instances hosts: consul_instances
any_errors_fatal: true any_errors_fatal: true
vars_files:
- consul_values.yml
roles: roles:
- role: ansible-consul - role: ansible-consul
vars: vars:
consul_version: "1.11.3" consul_version: "1.12.3-1"
consul_install_upgrade: true consul_install_upgrade: true
# consul_install_remotely: true
consul_install_from_repo: true consul_install_from_repo: true
consul_os_repo_prerequisites: [] consul_os_repo_prerequisites: []
@ -84,10 +86,10 @@
roles: roles:
- name: ansible-vault - name: ansible-vault
vars: vars:
# Doesn't support multi-arch installs vault_version: 1.10.0
vault_install_hashi_repo: true vault_install_hashi_repo: true
vault_bin_path: /usr/bin
vault_harden_file_perms: true vault_harden_file_perms: true
vault_bin_path: /usr/bin
vault_address: 0.0.0.0 vault_address: 0.0.0.0
vault_backend: consul vault_backend: consul
@ -249,16 +251,19 @@
roles: roles:
- name: ansible-nomad - name: ansible-nomad
vars: vars:
nomad_version: "1.3.1" nomad_version: "1.3.2-1"
nomad_install_remotely: true nomad_install_remotely: true
nomad_install_upgrade: true nomad_install_upgrade: true
nomad_allow_purge_config: true nomad_allow_purge_config: true
# Where nomad gets installed to
nomad_bin_dir: /usr/bin
nomad_install_from_repo: true
nomad_user: root # nomad_user: root
nomad_manage_user: true # nomad_manage_user: true
nomad_group: bin # nomad_group: bin
nomad_manage_group: true # nomad_manage_group: true
# Properly map install arch # Properly map install arch
nomad_architecture_map: nomad_architecture_map:
@ -283,6 +288,7 @@
nomad_docker_dmsetup: false nomad_docker_dmsetup: false
# nomad_podman_enable: true # nomad_podman_enable: true
# Merge shared host volumes with node volumes
nomad_host_volumes: "{{ shared_host_volumes + (nomad_unique_host_volumes | default([])) }}" nomad_host_volumes: "{{ shared_host_volumes + (nomad_unique_host_volumes | default([])) }}"
# Customize docker plugin # Customize docker plugin