From acc80868f9e1a3fb18686e4975591a8b3f99c55b Mon Sep 17 00:00:00 2001 From: Ian Fijolek Date: Wed, 5 Jul 2023 17:29:26 -0700 Subject: [PATCH] Switch lldap storage to mysql --- ansible_playbooks/ansible_hosts.yml | 6 -- core/lldap.nomad | 145 ++++++++++++++++++++++++---- services/backups/jobs/lldap.hcl | 21 +++- 3 files changed, 141 insertions(+), 31 deletions(-) diff --git a/ansible_playbooks/ansible_hosts.yml b/ansible_playbooks/ansible_hosts.yml index 196e0dc..a41aca2 100644 --- a/ansible_playbooks/ansible_hosts.yml +++ b/ansible_playbooks/ansible_hosts.yml @@ -25,12 +25,6 @@ all: group: "999" mode: "0755" read_only: false - - name: lldap-data - path: /srv/volumes/lldap - owner: "root" - group: "bin" - mode: "0755" - read_only: false n2.thefij: nfs_mounts: - src: 10.50.250.2:/srv/volumes diff --git a/core/lldap.nomad b/core/lldap.nomad index 366610e..738328c 100644 --- a/core/lldap.nomad +++ b/core/lldap.nomad @@ -18,12 +18,6 @@ job "lldap" { } } - volume "lldap-data" { - type = "host" - read_only = false - source = "lldap-data" - } - service { name = "lldap" provider = "nomad" @@ -44,14 +38,8 @@ job "lldap" { task "lldap" { driver = "docker" - volume_mount { - volume = "lldap-data" - destination = "/data" - read_only = false - } - config { - image = "nitnelave/lldap:v0.4" + image = "nitnelave/lldap:v0.4.3" ports = ["ldap", "web"] args = ["run", "--config-file", "${NOMAD_SECRETS_DIR}/lldap_config.toml"] } @@ -63,27 +51,31 @@ job "lldap" { template { data = <