Skip to content

Commit

Permalink
fc-luks check: fix sudoers rule for sensu check
Browse files Browse the repository at this point in the history
  • Loading branch information
osnyx committed Aug 21, 2024
1 parent 9bf9935 commit 69b1841
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions nixos/platform/full-disk-encryption.nix
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ let
exit 0
'';
cephPkgs = fclib.ceph.mkPkgs "nautilus"; # FIXME: just a workaround
check_luks_cmd = "${cephPkgs.fc-ceph}/bin/fc-luks check '*'";
check_luks_cmd = "${cephPkgs.fc-ceph}/bin/fc-luks check";
in
{

Expand Down Expand Up @@ -77,12 +77,12 @@ in
luksParams = {
notification = "LUKS Volumes use expected parameters.";
interval = 3600;
command = "test ! -d ${keysMountDir} || sudo ${check_luks_cmd}";
command = "test ! -d ${keysMountDir} || sudo ${check_luks_cmd} '*'";
};
};

flyingcircus.passwordlessSudoRules = [{
commands = [(toString check_key_file) check_luks_cmd];
commands = [(toString check_key_file) "${check_luks_cmd} *"];
groups = ["sensuclient"];
}];

Expand Down

0 comments on commit 69b1841

Please sign in to comment.