Remove n2 host
This commit is contained in:
parent
03dc79c895
commit
cf43d32d06
@ -24,20 +24,20 @@ all:
|
|||||||
group: "999"
|
group: "999"
|
||||||
mode: "0755"
|
mode: "0755"
|
||||||
read_only: false
|
read_only: false
|
||||||
n2.thefij:
|
# n2.thefij:
|
||||||
nomad_node_class: ingress
|
# nomad_node_class: ingress
|
||||||
nomad_reserved_memory: 1024
|
# nomad_reserved_memory: 1024
|
||||||
nfs_mounts:
|
# nfs_mounts:
|
||||||
- src: 10.50.250.2:/srv/volumes
|
# - src: 10.50.250.2:/srv/volumes
|
||||||
path: /srv/volumes/moxy
|
# path: /srv/volumes/moxy
|
||||||
opts: proto=tcp,rw
|
# opts: proto=tcp,rw
|
||||||
nomad_unique_host_volumes:
|
# nomad_unique_host_volumes:
|
||||||
- name: nextcloud-data
|
# - name: nextcloud-data
|
||||||
path: /srv/volumes/nextcloud
|
# path: /srv/volumes/nextcloud
|
||||||
owner: "root"
|
# owner: "root"
|
||||||
group: "bin"
|
# group: "bin"
|
||||||
mode: "0755"
|
# mode: "0755"
|
||||||
read_only: false
|
# read_only: false
|
||||||
pi4:
|
pi4:
|
||||||
nomad_node_class: ingress
|
nomad_node_class: ingress
|
||||||
nomad_reserved_memory: 512
|
nomad_reserved_memory: 512
|
||||||
@ -61,12 +61,12 @@ nomad_servers:
|
|||||||
nonopi.thefij:
|
nonopi.thefij:
|
||||||
ansible_host: 192.168.2.170
|
ansible_host: 192.168.2.170
|
||||||
n1.thefij: {}
|
n1.thefij: {}
|
||||||
n2.thefij: {}
|
# n2.thefij: {}
|
||||||
pi4: {}
|
pi4: {}
|
||||||
# qnomad.thefij: {}
|
# qnomad.thefij: {}
|
||||||
nomad_clients:
|
nomad_clients:
|
||||||
hosts:
|
hosts:
|
||||||
n1.thefij: {}
|
n1.thefij: {}
|
||||||
n2.thefij: {}
|
# n2.thefij: {}
|
||||||
pi4: {}
|
pi4: {}
|
||||||
# qnomad.thefij: {}
|
# qnomad.thefij: {}
|
||||||
|
@ -8,7 +8,7 @@ resource "nomad_job" "backup" {
|
|||||||
|
|
||||||
resource "nomad_job" "backup-oneoff" {
|
resource "nomad_job" "backup-oneoff" {
|
||||||
# TODO: Get list of nomad hosts dynamically
|
# TODO: Get list of nomad hosts dynamically
|
||||||
for_each = toset(["n1", "n2", "pi4"])
|
for_each = toset(["n1", "pi4"])
|
||||||
# for_each = toset([
|
# for_each = toset([
|
||||||
# for node in data.consul_service.nomad.service :
|
# for node in data.consul_service.nomad.service :
|
||||||
# node.node_name
|
# node.node_name
|
||||||
@ -24,7 +24,7 @@ resource "nomad_job" "backup-oneoff" {
|
|||||||
locals {
|
locals {
|
||||||
# NOTE: This can't be dynamic in first deploy since these values are not known
|
# NOTE: This can't be dynamic in first deploy since these values are not known
|
||||||
# all_job_ids = toset(flatten([[for job in resource.nomad_job.backup-oneoff : job.id], [resource.nomad_job.backup.id]]))
|
# all_job_ids = toset(flatten([[for job in resource.nomad_job.backup-oneoff : job.id], [resource.nomad_job.backup.id]]))
|
||||||
all_job_ids = toset(["backup", "backup-oneoff-n1", "backup-oneoff-n2", "backup-oneoff-pi4"])
|
all_job_ids = toset(["backup", "backup-oneoff-n1", "backup-oneoff-pi4"])
|
||||||
}
|
}
|
||||||
|
|
||||||
resource "nomad_acl_policy" "secrets_mysql" {
|
resource "nomad_acl_policy" "secrets_mysql" {
|
||||||
|
@ -22,7 +22,7 @@ job "blocky" {
|
|||||||
group "blocky" {
|
group "blocky" {
|
||||||
# TODO: This must be updated to match the nubmer of servers (possibly grabbed from TF)
|
# TODO: This must be updated to match the nubmer of servers (possibly grabbed from TF)
|
||||||
# I am moving away from `system` jobs because of https://github.com/hashicorp/nomad/issues/12023
|
# I am moving away from `system` jobs because of https://github.com/hashicorp/nomad/issues/12023
|
||||||
count = 3
|
count = 2
|
||||||
|
|
||||||
network {
|
network {
|
||||||
mode = "bridge"
|
mode = "bridge"
|
||||||
|
@ -3,10 +3,14 @@ job "exporters" {
|
|||||||
type = "service"
|
type = "service"
|
||||||
priority = 55
|
priority = 55
|
||||||
|
|
||||||
|
constraint {
|
||||||
|
distinct_hosts = true
|
||||||
|
}
|
||||||
|
|
||||||
group "promtail" {
|
group "promtail" {
|
||||||
# TODO: This must be updated to match the nubmer of servers (possibly grabbed from TF)
|
# TODO: This must be updated to match the nubmer of servers (possibly grabbed from TF)
|
||||||
# I am moving away from `system` jobs because of https://github.com/hashicorp/nomad/issues/12023
|
# I am moving away from `system` jobs because of https://github.com/hashicorp/nomad/issues/1202
|
||||||
count = 3
|
count = 2
|
||||||
|
|
||||||
network {
|
network {
|
||||||
mode = "bridge"
|
mode = "bridge"
|
||||||
|
Loading…
Reference in New Issue
Block a user