diff options
author | elijah <elijah@riseup.net> | 2013-02-26 20:42:01 -0800 |
---|---|---|
committer | elijah <elijah@riseup.net> | 2013-02-26 20:42:01 -0800 |
commit | 0204d4663f7ddc462962af4e1e779f791449de4e (patch) | |
tree | 5f836f4546e8691c4dd771e17280780d154e0f64 | |
parent | e61a7f9285956e4b54bf71cf4e5c5a7ba2d9dc10 (diff) | |
download | leap_cli-0204d4663f7ddc462962af4e1e779f791449de4e.tar.gz leap_cli-0204d4663f7ddc462962af4e1e779f791449de4e.tar.bz2 |
pass through verbosity to puppet
-rw-r--r-- | lib/leap_cli/commands/deploy.rb | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/lib/leap_cli/commands/deploy.rb b/lib/leap_cli/commands/deploy.rb index 5b1e4d5..4cfefd7 100644 --- a/lib/leap_cli/commands/deploy.rb +++ b/lib/leap_cli/commands/deploy.rb @@ -52,7 +52,15 @@ module LeapCli end tags << 'leap_slow' unless options[:fast] - ssh.set :puppet_command, "/usr/bin/puppet apply --color=false --tags=#{tags.join(',')}" + # set verbosity + verbosity = case LeapCli.log_level + when 3 then '--verbose' + when 4 then '--verbose --debug' + when 5 then '--verbose --debug --trace' + else '' + end + + ssh.set :puppet_command, "/usr/bin/puppet apply --color=false --tags=#{tags.join(',')} #{verbosity}" ssh.set :puppet_lib, "puppet/modules" ssh.set :puppet_parameters, '--libdir puppet/lib --confdir puppet puppet/manifests/site.pp' ssh.set :puppet_stream_output, true |