add verbose_logging config option to chef based provisioners
Conflicts: plugins/provisioners/chef/config/base.rb
This commit is contained in:
parent
87455b5d0a
commit
931e23c5d0
|
@ -21,6 +21,7 @@ module VagrantPlugins
|
||||||
attr_accessor :run_list
|
attr_accessor :run_list
|
||||||
attr_accessor :file_cache_path
|
attr_accessor :file_cache_path
|
||||||
attr_accessor :file_backup_path
|
attr_accessor :file_backup_path
|
||||||
|
attr_accessor :verbose_logging
|
||||||
|
|
||||||
def initialize
|
def initialize
|
||||||
super
|
super
|
||||||
|
@ -42,6 +43,7 @@ module VagrantPlugins
|
||||||
@provisioning_path = UNSET_VALUE
|
@provisioning_path = UNSET_VALUE
|
||||||
@file_cache_path = UNSET_VALUE
|
@file_cache_path = UNSET_VALUE
|
||||||
@file_backup_path = UNSET_VALUE
|
@file_backup_path = UNSET_VALUE
|
||||||
|
@verbose_logging = UNSET_VALUE
|
||||||
|
|
||||||
@json = {}
|
@json = {}
|
||||||
@run_list = []
|
@run_list = []
|
||||||
|
@ -65,6 +67,7 @@ module VagrantPlugins
|
||||||
@provisioning_path = nil if @provisioning_path == UNSET_VALUE
|
@provisioning_path = nil if @provisioning_path == UNSET_VALUE
|
||||||
@file_backup_path = "/var/chef/backup" if @file_backup_path == UNSET_VALUE
|
@file_backup_path = "/var/chef/backup" if @file_backup_path == UNSET_VALUE
|
||||||
@file_cache_path = "/var/chef/cache" if @file_cache_path == UNSET_VALUE
|
@file_cache_path = "/var/chef/cache" if @file_cache_path == UNSET_VALUE
|
||||||
|
@verbose_logging = false if @verbose_logging == UNSET_VALUE
|
||||||
|
|
||||||
# Make sure the log level is a symbol
|
# Make sure the log level is a symbol
|
||||||
@log_level = @log_level.to_sym
|
@log_level = @log_level.to_sym
|
||||||
|
|
|
@ -63,6 +63,7 @@ module VagrantPlugins
|
||||||
:file_cache_path => @config.file_cache_path,
|
:file_cache_path => @config.file_cache_path,
|
||||||
:file_backup_path => @config.file_backup_path,
|
:file_backup_path => @config.file_backup_path,
|
||||||
:log_level => @config.log_level.to_sym,
|
:log_level => @config.log_level.to_sym,
|
||||||
|
:verbose_logging => @config.verbose_logging,
|
||||||
:http_proxy => @config.http_proxy,
|
:http_proxy => @config.http_proxy,
|
||||||
:http_proxy_user => @config.http_proxy_user,
|
:http_proxy_user => @config.http_proxy_user,
|
||||||
:http_proxy_pass => @config.http_proxy_pass,
|
:http_proxy_pass => @config.http_proxy_pass,
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
log_level <%= log_level.inspect %>
|
log_level <%= log_level.inspect %>
|
||||||
log_location STDOUT
|
log_location STDOUT
|
||||||
|
verbose_logging <%= verbose_logging.inspect %>
|
||||||
<% if node_name %>
|
<% if node_name %>
|
||||||
node_name "<%= node_name %>"
|
node_name "<%= node_name %>"
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
|
@ -8,6 +8,7 @@ cookbook_path <%= cookbooks_path.inspect %>
|
||||||
role_path <%= roles_path.inspect %>
|
role_path <%= roles_path.inspect %>
|
||||||
<% end %>
|
<% end %>
|
||||||
log_level <%= log_level.inspect %>
|
log_level <%= log_level.inspect %>
|
||||||
|
verbose_logging <%= verbose_logging.inspect %>
|
||||||
|
|
||||||
encrypted_data_bag_secret "<%= encrypted_data_bag_secret %>"
|
encrypted_data_bag_secret "<%= encrypted_data_bag_secret %>"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue