Compare commits

..

No commits in common. "b845d6bc51fb877dd82c34ed94c946701906d638" and "a7fe1a32a836e3e1422ce89bb70a317e6fb1ad0a" have entirely different histories.

10 changed files with 18 additions and 46 deletions

View file

@ -61,7 +61,7 @@ vault_ca_cert_payload: |
# nomad # nomad
nomad_version: 1.1.3 nomad_version: 1.1.3
nomad_podman_driver_version: 0.3.0 nomad_podman_driver_version: 0.1.0
# podman # podman
podman_version: 3.0.1+dfsg1-3+b2 podman_version: 3.0.1+dfsg1-3+b2

View file

@ -1,5 +0,0 @@
---
hashi_arch: arm
consul_arch: arm64
nomad_arch: arm64
docker_arch: arm64

View file

@ -1,5 +0,0 @@
---
nomad_meta_values:
- { name: "storage_optimized", value: "false" }
- { name: "ram_optimized", value: "false" }
...

View file

@ -1,22 +1,15 @@
[all] [all]
fatman.minhas.io fatman.minhas.io
hardtack[1:7].minhas.io
ivyking.minhas.io ivyking.minhas.io
ranger.minhas.io ranger.minhas.io
redwingcherokee.minhas.io
sedan.minhas.io sedan.minhas.io
redwingcherokee.minhas.io
[consul_server] [consul_server]
fatman.minhas.io fatman.minhas.io
ivyking.minhas.io ivyking.minhas.io
sedan.minhas.io sedan.minhas.io
[haproxy]
ivyking.minhas.io
[hardtack]
hardtack[1:7].minhas.io
[lnd] [lnd]
redwingcherokee.minhas.io redwingcherokee.minhas.io
@ -24,9 +17,8 @@ redwingcherokee.minhas.io
ivyking.minhas.io ivyking.minhas.io
[nomad_client] [nomad_client]
hardtack[1:7].minhas.io
ivyking.minhas.io
sedan.minhas.io sedan.minhas.io
ivyking.minhas.io
[nomad_server] [nomad_server]
ranger.minhas.io ranger.minhas.io
@ -37,3 +29,6 @@ sedan.minhas.io
[wekan] [wekan]
sedan.minhas.io sedan.minhas.io
[haproxy]
ivyking.minhas.io

View file

@ -1,2 +0,0 @@
---
docker_arch: amd64

View file

@ -17,16 +17,13 @@
- name: add docker repo - name: add docker repo
apt_repository: apt_repository:
repo: "deb [arch={{ docker_arch }}] https://download.docker.com/linux/debian bullseye stable" repo: deb [arch=amd64] https://download.docker.com/linux/debian buster stable
state: present state: present
mode: 0644 mode: 0600
- name: update apt cache
apt:
- name: install docker-ce - name: install docker-ce
apt: apt:
state: present state: present
update_cache: True
name: name:
- docker-ce - docker-ce
- docker-ce-cli - docker-ce-cli

View file

@ -1,2 +0,0 @@
---
nomad_arch: amd64

View file

@ -42,7 +42,7 @@
- name: get nomad - name: get nomad
unarchive: unarchive:
src: "https://releases.hashicorp.com/nomad/{{ nomad_version }}/nomad_{{ nomad_version }}_linux_{{ nomad_arch }}.zip" src: "https://releases.hashicorp.com/nomad/{{ nomad_version }}/nomad_{{ nomad_version }}_linux_amd64.zip"
dest: /usr/local/bin/ dest: /usr/local/bin/
mode: 0755 mode: 0755
owner: root owner: root
@ -78,7 +78,7 @@
- name: get nomad podman plugins - name: get nomad podman plugins
unarchive: unarchive:
src: "https://releases.hashicorp.com/nomad-driver-podman/{{ nomad_podman_driver_version }}/nomad-driver-podman_{{ nomad_podman_driver_version }}_linux_{{ nomad_arch }}.zip" src: "https://releases.hashicorp.com/nomad-driver-podman/{{ nomad_podman_driver_version }}/nomad-driver-podman_{{ nomad_podman_driver_version }}_linux_amd64.zip"
dest: /opt/nomad_plugins/ dest: /opt/nomad_plugins/
mode: 0755 mode: 0755
owner: nomad owner: nomad

View file

@ -14,17 +14,14 @@
- name: ensure podman is installed - name: ensure podman is installed
apt: apt:
name: name: "podman={{ podman_version }}"
- fuse-overlayfs
- "podman={{ podman_version }}"
- uidmap
state: present state: present
- name: enable podman - name: ensure podman socket is configured
systemd: copy:
name: podman src: files/podman.socket
state: started dest: /etc/systemd/system/podman.socket
enabled: True owner: root
daemon_reload: True group: root
changed_when: False mode: 0755
... ...

View file

@ -38,7 +38,4 @@ plugin_dir = "/opt/nomad_plugins"
plugin "nomad-driver-podman" { plugin "nomad-driver-podman" {
enabled = true enabled = true
config {
socket_path = "unix:///run/user/1000/podman/podman.sock"
}
} }