puppet module not being added to catalog

Friday, July 11, 2014

I have a module that builds /etc/passwd on nodes using concat. The puppetmaster is somehow not able to see that I've created the module. When I run 'puppet agent -t' on the client nodes, I see no errors nor is the password file touched.



class eeee_passwd {

$eeee_passwd = '/etc/passwd'
concat { $eeee_passwd:
owner => root,
group => root,
mode => '0644',
}

concat::fragment { 'passwd_root':
target => $eeee_passwd,
content => 'root:x:0:0:root:/root:/bin/bash',
order => 01,
}

concat::fragment { 'passwd_bin':
target => $eeee_passwd,
content => 'bin:x:1:1:bin:/bin:/sbin/nologin',
order => 02,
}

concat::fragment { 'passwd_daemon':
target => $eeee_passwd,
content => 'daemon:x:2:2:daemon:/sbin:/sbin/nologin',
order => 03,
}






http://ift.tt/VUr4D1