en-US/about_POSHOrigin_Defaults_File.help.txt
TOPIC
about_POSHOrigin_Defaults_File SHORT DESCRIPTION The defaults file is where you can store common resource configuration data that will be shared across multiple configurations LONG DESCRIPTION The defaults file is where you can store common resource configuration data that will be shared across multiple configurations. When each resource block in your configuration is processed, if it specifies a defaults file, those defaults will be converted into a hashtable that will get merged with the hashtable of the resource. If there are any duplicates between the defaults file and the resource block, the values from the resource block will be used. EXAMPLES file_defaults.psd1 ================== @{ ensure = 'present' path = 'c:\' contents = 'this is some content' } files.ps1 ========= resource 'POSHOrigin:POSHFile' 'file1.txt' @{ defaults = '.\file_defaults.psd1' } The examples above are the equivalent of specifying all options in the configuration file. create_file.ps1 =============== resource 'POSHOrigin:POSHFile' 'file1.txt' @{ ensure = 'present' path = 'c:\' contents = 'this is some content' } KEYWORDS POSHOrigin SEE ALSO about_POSHOrigin about_POSHOrigin_Configuration_File about_POSHOrigin_Executing_Configurations about_POSHOrigin_Loading_Configurations about_POSHOrigin_Resolver_PSCredential about_POSHOrigin_Resolver_PasswordState about_POSHOrigin_Resolver_ProtectedData about_POSHOrigin_Sharing_Configurations about_POSHOrigin_Testing_Configurations about_POSHOrigin_Using_Credentials aboot_POSHOrigin_Using_Resolvers https://github.com/devblackops/POSHOrigin/wiki |