I have a minimally complex manifest that is exhibiting some strange behavior. Variables that are defined in the first run of puppetd become undefined during the second and subsequent runs.
A snippet of the module that causes the problem is (in the file modules/nfs/manifests/init.pp):
class nfs {
service { 'nfs':
ensure => running,
enable => true,
hasstatus => true,
subscribe => [Package['net-fs/nfs-utils']],
require => [Service['portmap']],
}
include nfs-utils
include portmap
}
#class nfs::client inherits nfs {
#}
include client
If I uncomment the class nfs::client, and comment out the include client, the problem goes away. The content of client.pp is the uncommented nfs::client class shown above.