add support for environment variables on a puppet apply run
This commit is contained in:
parent
fff1c72684
commit
a4408037ba
|
@ -13,6 +13,7 @@ module VagrantPlugins
|
|||
attr_accessor :manifests_path
|
||||
attr_accessor :environment
|
||||
attr_accessor :environment_path
|
||||
attr_accessor :environment_variables
|
||||
attr_accessor :module_path
|
||||
attr_accessor :options
|
||||
attr_accessor :synced_folder_type
|
||||
|
@ -23,18 +24,19 @@ module VagrantPlugins
|
|||
def initialize
|
||||
super
|
||||
|
||||
@binary_path = UNSET_VALUE
|
||||
@hiera_config_path = UNSET_VALUE
|
||||
@manifest_file = UNSET_VALUE
|
||||
@manifests_path = UNSET_VALUE
|
||||
@environment = UNSET_VALUE
|
||||
@environment_path = UNSET_VALUE
|
||||
@module_path = UNSET_VALUE
|
||||
@options = []
|
||||
@facter = {}
|
||||
@synced_folder_type = UNSET_VALUE
|
||||
@temp_dir = UNSET_VALUE
|
||||
@working_directory = UNSET_VALUE
|
||||
@binary_path = UNSET_VALUE
|
||||
@hiera_config_path = UNSET_VALUE
|
||||
@manifest_file = UNSET_VALUE
|
||||
@manifests_path = UNSET_VALUE
|
||||
@environment = UNSET_VALUE
|
||||
@environment_path = UNSET_VALUE
|
||||
@environment_variables = UNSET_VALUE
|
||||
@module_path = UNSET_VALUE
|
||||
@options = []
|
||||
@facter = {}
|
||||
@synced_folder_type = UNSET_VALUE
|
||||
@temp_dir = UNSET_VALUE
|
||||
@working_directory = UNSET_VALUE
|
||||
end
|
||||
|
||||
def nfs=(value)
|
||||
|
@ -85,6 +87,9 @@ module VagrantPlugins
|
|||
if @manifest_file == UNSET_VALUE
|
||||
@manifest_file = nil
|
||||
end
|
||||
if @environment_variables == UNSET_VALUE
|
||||
@environment_variables = nil
|
||||
end
|
||||
end
|
||||
|
||||
@binary_path = nil if @binary_path == UNSET_VALUE
|
||||
|
|
|
@ -52,6 +52,9 @@ available below this section.
|
|||
* `environment_path` (string) - Path to the directory that contains environment
|
||||
files on the host disk.
|
||||
|
||||
* `environment_variables` (hash) - A hash of data to be set as environment
|
||||
variables before the puppet apply run.
|
||||
|
||||
* `options` (array of strings) - Additionally options to pass to the
|
||||
Puppet executable when running Puppet.
|
||||
|
||||
|
|
Loading…
Reference in New Issue