Uploaded image for project: 'Modules'
  1. Modules
  2. MODULES-5845

DSC_Lite: Add version support

    XMLWordPrintable

Details

    • New Feature
    • Status: Resolved
    • Normal
    • Resolution: Fixed
    • dsc_lite 0.1
    • dsc_lite 0.2
    • None
    • None
    • Hide

      As user must be able to specify a DSC Resource in the following ways:

      Only the DSC Resource Name
      The DSC Resource name and version
      The fully qualified path to the DSC Resource only
      The fully qualified path to the DSC Resource only and the version

      Show
      As user must be able to specify a DSC Resource in the following ways: Only the DSC Resource Name The DSC Resource name and version The fully qualified path to the DSC Resource only The fully qualified path to the DSC Resource only and the version
    • Windows
    • Windows Kanban
    • Needs Assessment

    Description

      When multiple versions of a dsc resource exist on the target system, version can be used to select the appropriate resource.

      To implement this, add dsc_resource_module attribute to dsc type, remove dsc_resource_module_name. The dsc_resource_module property will be either a single string or a single hash, allowing the user to either specify a DSC Resource name or a DSC Resource Name and Version at the same time. The DSC Resource name can either be the name of the DSC Resource or a fully qualified path to the DSC Resource on the file system.

      dsc {'foouser':
        dsc_resource_name   => 'User',
        dsc_resource_module => {
          name    => 'PSDesiredStateConfiguration',
          version => '1.8.0.0'
        },
        dsc_resource_properties  => {
          # properties
        }
      }
       
      # same idea (makes version optional)
      dsc {'foouser':
        dsc_resource_name   => 'User',
        dsc_resource_module => 'PSDesiredStateConfiguration',
        dsc_resource_properties  => {
          # properties
        }
      }
      

      Attachments

        Issue Links

          Activity

            People

              ethan Ethan Brown
              erick Erick Banks
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Zendesk Support