summaryrefslogtreecommitdiff
path: root/lib/leap_cli/commands/compile.rb
diff options
context:
space:
mode:
authorelijah <elijah@riseup.net>2016-02-09 10:42:52 -0800
committerelijah <elijah@riseup.net>2016-02-09 10:42:52 -0800
commit81ab07d79a56c6b44d2ca16fb51af2a0e8d09098 (patch)
treeb30aa189862dc8943c099f5654195968073ccf4c /lib/leap_cli/commands/compile.rb
parent461c682cccef760248d6c24d93c6ae47dd14fd22 (diff)
ensure that expired certs are updated *before* hiera compile.
Diffstat (limited to 'lib/leap_cli/commands/compile.rb')
-rw-r--r--lib/leap_cli/commands/compile.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/leap_cli/commands/compile.rb b/lib/leap_cli/commands/compile.rb
index c388e5c3..44b97d4a 100644
--- a/lib/leap_cli/commands/compile.rb
+++ b/lib/leap_cli/commands/compile.rb
@@ -62,7 +62,8 @@ module LeapCli
# but this should not be done if we are not examining all possible nodes.
#
def compile_hiera_files(nodes, clean_export)
- update_compiled_ssh_configs # must come first
+ update_certificates(nodes) # \ must come first so that output will
+ update_compiled_ssh_configs # / get included in compiled hiera files.
sanity_check(nodes)
manager.export_nodes(nodes)
manager.export_secrets(clean_export)