puppetlabs / ruby-pwsh

A ruby gem for interacting with PowerShell
MIT License
15 stars 24 forks source link

DSC modules - Dependency not working #350

Closed webalexeu closed 1 month ago

webalexeu commented 1 month ago

Describe the Bug

Hello,

We are facing an issue with the DSC modules (Using computermanagementdsc 9.2.0-0-0 as reference but same with all modules)

Failed to apply catalog: Could not find dependency Windows_firewall_rule[contoso.com outbound rule] for Dsc_computer[consto.com]

Expected Behavior

Applying configuration using standard puppet relationships

Steps to Reproduce

Not sure it is easily reproducable When apply locally on one node manually is not causing any issue That is the code we are using

dsc_computer { 'contoso.com':
  dsc_name       => $facts['networking']['hostname'],
  dsc_domainname => 'contoso.com',
  dsc_joinou     => 'OU=Servers,DC=contoso,DC=com',
  dsc_credential => {
    'user'     => 'username',
    'password' => Sensitive('password'),
  },
  require        => Windows_firewall_rule['contoso.com outbound rule'];
}

Environment

Additional Context

We have open this ticket because it's maybe linked https://github.com/puppetlabs/ruby-pwsh/issues/349

Thank you for your support