This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
globals: | |
- id: forecast_nums | |
type: std::vector<int> | |
- id: notification_nums | |
type: std::vector<int> | |
- id: data_updated | |
type: bool | |
restore_value: no | |
initial_value: 'false' | |
- id: initial_data_received |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
job "kafkaui" { | |
datacenters = ["yourdc"] | |
constraint { | |
attribute = "${attr.kernel.name}" | |
value = "linux" | |
} | |
group "kafkaui" { | |
constraint { | |
attribute = "${attr.cpu.arch}" | |
value = "arm64" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
job "kafka" { | |
datacenters = ["yourdatacenter"] | |
type = "service" | |
update { | |
stagger = "5s" | |
max_parallel = 3 | |
} | |
group "kafka" { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# There can only be a single job definition per file. | |
# Create a job with ID and Name 'example' | |
job "postgres" { | |
datacenters = ["hetzner"] | |
constraint { | |
attribute = "${attr.kernel.name}" | |
value = "linux" | |
} | |
update { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
job "zookeeper" { | |
datacenters = ["hetzner"] | |
type = "service" | |
#update { | |
# max_parallel = 1 | |
#} | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
job "druid" { | |
datacenters = ["hetzner"] | |
constraint { | |
attribute = "${attr.kernel.name}" | |
value = "linux" | |
} | |
update { | |
stagger = "10s" | |
max_parallel = 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
job "ingress" { | |
region = "global" | |
datacenters = ["home"] | |
type = "service" | |
constraint { | |
attribute = "${meta.proxy_type}" | |
value = "internal" | |
} | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
job "loki" { | |
datacenters = ["hetzner"] | |
type = "service" | |
group "loki-distributor" { | |
count = 2 | |
network { | |
dns { | |
servers = ["169.254.1.1"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
job "update-certs" { | |
datacenters = ["hetzner"] | |
type = "batch" | |
constraint { | |
attribute = "${attr.kernel.name}" | |
value = "linux" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
op="${1:-op}" | |
mac="${2:-mac}" | |
ip="${3:-ip}" | |
hostname="${4}" | |
discovery="dhcp-$(echo ${mac} | sed -e s/://g)-tracker" | |
macvendor="$(echo ${mac} | tr -d ':' | head -c 6 | tr '[:lower:]' '[:upper:]')" | |
#vendor="$(grep '${macvendor}' /usr/local/bin/oui.txt | cut -d')' -f2 | tr -d '\t')" | |
#vendor="$(grep '${macvendor}' /usr/local/bin/oui.txt)" |
NewerOlder