I'm trying to manage nis client on Ubuntu 14.04. I'm getting "Could not evaluate: Cold not find init script or upstart conf file for 'nis'".
Here is the module being called:
class profile::buildserver::nisclient {
package { 'nis':
ensure => 'installed',
before => File['/etc/yp.conf'],
}
file { '/etc/yp.conf' :
ensure => file,
owner => 'root',
group => 'root',
mode => '0600',
require => Package['nis'],
# the path below translates to /etc/puppetlabs/code/environment/production/modules/profile/files/yp.conf
source => "puppet:///modules/profile/yp.conf",
}
service { 'nis':
ensure => running,
enable => true,
subscribe => File['/etc/yp.conf'],
}
}
When I run 'puppet agent -t' on the node I get:
root@nervy:~# puppet agent -t
Info: Using configured environment 'production'
Info: Retrieving pluginfacts
Info: Retrieving plugin
Info: Loading facts
Info: Caching catalog for nervy.
Info: Applying configuration version '1478028109'
Error: /Stage[main]/Profile::Buildserver::Nisclient/Service[nis]: Could not evaluate: Could not find init script or upstart conf file for 'nis'
Notice: Applied catalog in 1.86 seconds
I see that the /etc/yp.conf file is deployed but I'm guessing it is failing on trying to restart nis... In my searching on ask.puppet.com, i found a similar problem with sshd but that was related to an incorrect service name (yum vs apt) which I don't think is the case here. If anyone can point me in the right direction, I would be most grateful.
Puppet agent version is 4.7.0 and server is 4.5.2.
thanks,
Gene
↧