puppetlabs / Puppet.Dsc

Convert DSC resources into Puppet Resource API types and providers
https://www.powershellgallery.com/packages/Puppet.Dsc
Apache License 2.0
9 stars 12 forks source link

Re-Puppetize - [webadministrationdsc] #301

Closed webalexeu closed 2 days ago

webalexeu commented 1 week ago

DSC Resource name

Why do you want us to Re-Puppetize this module?

Enum issue for dsc_website type certificatestorename is not accepting MY where that's the value returned by the module

Could not evaluate: Provider returned data that does not match the Type Schema for `dsc_website[Configure IIS SSL]`
Value type mismatch:
* dsc_bindinginfo: [{"bindinginformation"=>"*:443:*", "certificatestorename"=>"MY", "certificatesubject"=>nil, "certificatethumbprint"=>"3527A6CDCBEDFE823FF18A8150915C1BC2C062DA", "hostname"=>"*", "ipaddress"=>"*", "port"=>443, "protocol"=>"https", "sslflags"=>"0"}, {"bindinginformation"=>"*:80:*", "certificatestorename"=>nil, "certificatesubject"=>nil, "certificatethumbprint"=>nil, "hostname"=>"*", "ipaddress"=>"*", "port"=>80, "protocol"=>"http", "sslflags"=>"0"}] (index 0 entry 'certificatestorename' expects an undef value or a match for Enum['My', 'WebHosting', 'my', 'webhosting'], got 'MY')

For the complete picture, we are not defining certificaticestorename as it is optionnal and just using the default value

dsc_website { 'Configure IIS SSL':
  dsc_name         => 'Default Web Site',
  dsc_state        => 'Started',
  dsc_physicalpath => 'website_path',
  dsc_bindinginfo  => [{
      protocol => 'http',
      hostname => '*'
    },
    {
      protocol              => 'https',
      certificatethumbprint => 'thumprint',
      hostname              => '*'
    },
  ],
}

Thank you for your support

jordanbreen28 commented 2 days ago

Have repuppetized and published webadministrationdsc at 4.2.0-0-1, thanks @webalexeu