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 NTP service name error #658

Closed jim-mose closed 1 year ago

jim-mose commented 1 year ago

On Solaris 11.4 hosts, the following error is received:

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

Solaris 11.4 contains two services that match the 'network/ntp' FMRI.

root@myhost:~# svcs network/ntp STATE STIME FMRI disabled 2022-09-08T13:44:44 svc:/network/ntp:monitor online 2022-10-25T10:40:43 svc:/network/ntp:default

The service name is set correctly within data/Solaris-11.yaml; however, the heira.yaml needs to be corrected so that the Solaris-11.yaml is properly incorporated into hiera data.

Line 16 of hiera.yaml should read:

path: '%{facts.os.name}-%{facts.os.major}.yaml'