Look at some example Packer templates here. Vagrant setup used for development of this plugin. Vagrant DSC will create and manage it for you automatically. If you don't know what a MOF file is, you probably don't need it and can safely ignore this setting. Once you have a MOF file, you have everything you need (except possibly any paths to modules i.e. If mof_path is set then configuration_name, configuration_data_file_path, configuration_file_path, configuration_data_file and manifests_path are all not required, and will be ignored. temp_dir = "/tmp/vagrant-dsc" end Specifying a MOF file abort_on_dsc_failure = true # Temporary working directory on the guest machine. synced_folder_type = "nfs" # Whether to abort the vagrant run if DSC fails. # For example, you can set this to "nfs" to use NFS synced folders. # By default this will use the default synced folder type. module_install = # The type of synced folders to use when sharing the data # required for the provisioner to work properly. # These modules are downloaded and installed when provisioning, # if a module is already installed it is a no-op. # Requires PowerShell 5 or PowerShellGet installed on guest machine. module_path = # Set of modules to install from the PowerShell Gallery # (). # These paths are added to the DSC Configuration running # environment to enable local modules to be addressed. ![]() manifests_path = "manifests" # Set of module paths relative to the Vagrantfile dir. # Path is relative to the folder containing the Vagrantfile. mof_path = "mof_output" # Relative path to the folder containing the root Configuration manifest file. # When set, `configuration_name`, `configuration_data_file_path`, # `configuration_file_path`, `configuration_data_file` and # `manifests_path` are ignored. ![]() configuration_data_file = "manifests/Måonfig.psd1" # Relative path to a folder containing a pre-generated MOF file. # See for details # on how to parameterise your Configuration files. configuration_params = # A path relative to the Vagrantfile pointing to a Configuration Data file. # To pass in flags, simply set the value to `nil` dsc. configuration_name = "MyWebsite" # Commandline arguments to the Configuration run # Set of Parameters to pass to the DSC Configuration. ![]() Assumed to be the same as the `dsc.configuration_file` # (sans extension) if not provided. configuration_file = "MyWebsite.ps1" # The Configuration Command to run. # The path relative to `dsc.manifests_path` pointing to the Configuration file dsc.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |