Skip to content

Commit

Permalink
nomad: update command and inspector
Browse files Browse the repository at this point in the history
  • Loading branch information
steveej committed Mar 13, 2024
1 parent 10fab44 commit 4cb056d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 3 additions & 3 deletions nomad/commander.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ job "commander" {
constraint {
attribute = "${meta.HOLO_NIXPKGS_CHANNEL}"
operator = "regexp"
value = ".*holo-nixpkgs/1694.*"
value = ".*holo-nixpkgs/2021.*"
}

type = "sysbatch"
Expand All @@ -31,13 +31,13 @@ job "commander" {
command = "/usr/bin/env"
args = ["bash", "-c",
<<-ENDOFSCRIPT
set -e
set -xe
export NIX_PATH=nixpkgs=/nix/var/nix/profiles/per-user/root/channels/holo-nixpkgs/nixpkgs/
nix-shell \
-p nixos-rebuild \
-p curl \
-p sudo \
--command "/run/wrappers/bin/sudo /usr/bin/env hpos-update 1691"
--command "/run/wrappers/bin/sudo /usr/bin/env hpos-update 2021"
# /run/wrappers/bin/sudo /usr/bin/env systemctl start holo-nixpkgs-auto-upgrade.service
ENDOFSCRIPT
Expand Down
4 changes: 4 additions & 0 deletions nomad/inspector.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ job "inspector" {
operator = "is_set"
}

constraint {
distinct_hosts = true
}

type = "system"

task "sleeper" {
Expand Down

0 comments on commit 4cb056d

Please sign in to comment.