You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Trying to migrate from puppetlabs/dsc to puppet.dsc generated modules is a chore because puppetlabs/dsc handles puppet types being passed to Powershell correctly. IE: dsc_ensure => present, is valid, but in puppet.dsc, dsc_ensure must be one of "Present" or "Absent". Similarly, passing puppet bool to dsc resources works correctly in puppetlabs/dsc but must be "True" or "False" in puppet.dsc
Describe the Solution You Would Like
I'd appreciate the same functionality as in puppetlabs/dsc. I could see a solution being if a param is an enum downcase them before comparing and handling translating booleans so they dont need to be capitalized strings.
Describe Alternatives You've Considered
A clear and concise description of any alternative solutions or features you've considered.
Additional Context
Add any other context or screenshots about the feature request here.
The text was updated successfully, but these errors were encountered:
Would resolve a majority of the headaches. For a property values of: $DscResourceProperty = @{Values = @('Install', 'Upgrade', 'InstallFailoverCluster', 'AddNode', 'PrepareFailoverCluster', 'CompleteFailoverCluster')}
The current result of that block is : Enum['Install', 'Upgrade', 'InstallFailoverCluster', 'AddNode', 'PrepareFailoverCluster', 'CompleteFailoverCluster']
with the suggested change it is: Enum['Install', 'Upgrade', 'InstallFailoverCluster', 'AddNode', 'PrepareFailoverCluster', 'CompleteFailoverCluster', 'install', 'upgrade', 'installfailovercluster', 'addnode', 'preparefailovercluster', 'completefailovercluster']
Use Case
Trying to migrate from
puppetlabs/dsc
topuppet.dsc
generated modules is a chore becausepuppetlabs/dsc
handles puppet types being passed to Powershell correctly. IE:dsc_ensure => present,
is valid, but inpuppet.dsc
,dsc_ensure
must be one of"Present" or "Absent"
. Similarly, passing puppet bool to dsc resources works correctly inpuppetlabs/dsc
but must be"True" or "False"
inpuppet.dsc
Describe the Solution You Would Like
I'd appreciate the same functionality as in
puppetlabs/dsc
. I could see a solution being if a param is anenum
downcase them before comparing and handling translating booleans so they dont need to be capitalized strings.Describe Alternatives You've Considered
A clear and concise description of any alternative solutions or features you've considered.
Additional Context
Add any other context or screenshots about the feature request here.
The text was updated successfully, but these errors were encountered: