puppetlabs / puppetlabs-ntp

Puppet module to manage the NTP service
http://forge.puppetlabs.com/puppetlabs/ntp
Apache License 2.0
145 stars 328 forks source link

Solaris 11 service name matches multiple FRMIs #645

Closed davemcdonnell closed 2 years ago

davemcdonnell commented 2 years ago

Describe the Bug

After recent solaris update (somewhere between 11.4.38 and 11.4.45) there are now multiple SMF services that match network/ntp.

Error: /Stage[main]/Ntp::Service/Service[ntp]: Could not evaluate: Failed to get the FMRI of the network/ntp service: The pattern 'network/ntp' matches multiple FMRIs! These are the FMRIs it matches: svc:/network/ntp:default, svc:/network/ntp:monitor

Manually specifying the service name in hiera fixes the issue as a workaround: ntp::service_name: network/ntp:default

Expected Behavior

No errors

Steps to Reproduce

Steps to reproduce the behavior:

  1. Update to Solaris 11.4.45
  2. Run puppet
  3. Error: /Stage[main]/Ntp::Service/Service[ntp]: Could not evaluate: Failed to get the FMRI of the network/ntp service: The pattern 'network/ntp' matches multiple FMRIs! These are the FMRIs it matches: svc:/network/ntp:default, svc:/network/ntp:monitor

Environment

Additional Context

Add any other context about the problem here.