aboutsummaryrefslogtreecommitdiff
path: root/lib/leap_cli/commands/compile.rb
diff options
context:
space:
mode:
authorelijah <elijah@riseup.net>2012-11-04 11:30:16 -0800
committerelijah <elijah@riseup.net>2012-11-04 11:30:16 -0800
commit08b03669c262fd7ea67c7e2e5e5448a98db4ceef (patch)
tree6d08a0ae0fe6e7f8baf49fa58c52e7c0a23911cd /lib/leap_cli/commands/compile.rb
parentb561a3eadd43218a59650b6255f8d12266b38884 (diff)
downloadleap_cli-08b03669c262fd7ea67c7e2e5e5448a98db4ceef.tar.gz
leap_cli-08b03669c262fd7ea67c7e2e5e5448a98db4ceef.tar.bz2
added automatic secret generation in secrets.json
Diffstat (limited to 'lib/leap_cli/commands/compile.rb')
-rw-r--r--lib/leap_cli/commands/compile.rb8
1 files changed, 6 insertions, 2 deletions
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