Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- puppetmaster:
- /etc/puppet/modules/dist/client_custom/manifests/init.pp:
- class client_custom{
- # this class is a catchall to allow us to define specific custom
- @@file { 'ClientLogDir':
- path => '/var/log/client',
- ensure => 'directory',
- owner => 'glassfish',
- group => 'glassfish',
- mode => '0755',
- tag => '1852769',
- }# end clientLogDir
- @@file { 'ClientCfgDir':
- path => '/etc/Client',
- ensure => 'directory',
- owner => 'root',
- group => 'root',
- mode => '0655',
- tag => '1852769',
- }# end ClientCfgDir
- case $hostname { #ticket 1852769
- /[lme[int1|dev[1|2]|trn1-as]-01|lme[(p)?prd|drp]1-[lis|sus|pas|gas|bogw]as-0[0-9]]/: {
- File <<| tag == '1852769' |>>
- }#end hostname case
- default: {
- }#default - do nothing
- }#end 1852769
- }#end of class
- /etc/puppet/manifests/nodes.pp:
- ...
- node /playground-01/ inherits base{
- include client_custom
- ...
- }
- playground-01:
- puppetd --debug --verbose --no-daemonize
- ...
- debug: Finishing transaction 23638729479740
- notice: Starting Puppet client version 2.6.6
- ...
- err: Could not run Puppet configuration client: Could not find user glassfish
Add Comment
Please, Sign In to add comment