From 08b03669c262fd7ea67c7e2e5e5448a98db4ceef Mon Sep 17 00:00:00 2001 From: elijah Date: Sun, 4 Nov 2012 11:30:16 -0800 Subject: added automatic secret generation in secrets.json --- lib/leap_cli/commands/compile.rb | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'lib/leap_cli/commands/compile.rb') diff --git a/lib/leap_cli/commands/compile.rb b/lib/leap_cli/commands/compile.rb index c5bb93e..9882e6a 100644 --- a/lib/leap_cli/commands/compile.rb +++ b/lib/leap_cli/commands/compile.rb @@ -5,8 +5,12 @@ module LeapCli desc 'Compile json files to hiera configs' command :compile do |c| c.action do |global_options,options,args| - update_compiled_ssh_configs # this must come first, hiera configs import these files. - manager.export Path.named_path(:hiera_dir) # generate a hiera .yaml config for each node + # these must come first + update_compiled_ssh_configs + + # export generated files + manager.export_nodes + manager.export_secrets end end -- cgit v1.2.3