summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorelijah <elijah@riseup.net>2014-10-02 09:19:58 -0700
committerelijah <elijah@riseup.net>2014-10-02 09:19:58 -0700
commit7bc348aa07afebc8287a6eeb1416cb844363d2fa (patch)
treea85af9b637c01a524c27b64eba5c70d9f421d40e
parentbbda12a4158a445fc7495911b2f5f01e5f139406 (diff)
bugfix: only recompile nodes in affected environments when deploying
-rw-r--r--lib/leap_cli/commands/deploy.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/leap_cli/commands/deploy.rb b/lib/leap_cli/commands/deploy.rb
index bd1f479..b78f130 100644
--- a/lib/leap_cli/commands/deploy.rb
+++ b/lib/leap_cli/commands/deploy.rb
@@ -51,7 +51,9 @@ module LeapCli
environments.each do |env|
check_platform_pinning(env)
end
- compile_hiera_files
+ # compile hiera files for all the nodes in every environment that is
+ # being deployed and only those environments.
+ compile_hiera_files(manager.filter(environments))
ssh_connect(nodes, connect_options(options)) do |ssh|
ssh.leap.log :checking, 'node' do