Skip to content

Commit

Permalink
More logs on kesRotate, faucet to nixpkgs 20.03 compat
Browse files Browse the repository at this point in the history
  • Loading branch information
johnalotoski committed Jun 10, 2020
1 parent 4ac3ae4 commit 0a97f5a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pkgs/kes-rotation/src/kes-rotation.cr
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ class KesRotate
"STDOUT: #{IO_CMD_OUT}\n" \
"STDERR: #{IO_CMD_ERR}"
if EMAIL_ENABLED
sendEmail("kesRotation ABORTED on #{@cluster} at #{NOW}", msg)
sendEmail("kesRotation ABORTED on #{@cluster} at #{NOW}", "#{msg}\n\nFULL LOG:\n#{IO_TEE_FULL}")
else
IO_TEE_OUT.puts msg
end
Expand Down
5 changes: 5 additions & 0 deletions roles/faucet.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ let
hostAddr = getListenIp nodes.${name};
nodePort = globals.cardanoNodePort;
monitoringPort = globals.cardanoNodePrometheusExporterPort;
inherit (pkgs.lib) mkIf;
in {

imports = [
Expand Down Expand Up @@ -72,6 +73,10 @@ in {
hasPrometheus = [ hostAddr monitoringPort ];
};

security.acme = mkIf (config.deployment.targetEnv != "libvirtd") {
email = "[email protected]";
acceptTerms = true; # https://letsencrypt.org/repository/
};
services.nginx = {
enable = true;
recommendedTlsSettings = true;
Expand Down

0 comments on commit 0a97f5a

Please sign in to comment.