Guest User

Untitled

a guest
Dec 16th, 2018
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.19 KB | None | 0 0
  1. puppetmaster:
  2.  
  3. /etc/puppet/modules/dist/client_custom/manifests/init.pp:
  4. class client_custom{
  5. # this class is a catchall to allow us to define specific custom
  6. @@file { 'ClientLogDir':
  7. path => '/var/log/client',
  8. ensure => 'directory',
  9. owner => 'glassfish',
  10. group => 'glassfish',
  11. mode => '0755',
  12. tag => '1852769',
  13. }# end clientLogDir
  14. @@file { 'ClientCfgDir':
  15. path => '/etc/Client',
  16. ensure => 'directory',
  17. owner => 'root',
  18. group => 'root',
  19. mode => '0655',
  20. tag => '1852769',
  21. }# end ClientCfgDir
  22. case $hostname { #ticket 1852769
  23. /[lme[int1|dev[1|2]|trn1-as]-01|lme[(p)?prd|drp]1-[lis|sus|pas|gas|bogw]as-0[0-9]]/: {
  24. File <<| tag == '1852769' |>>
  25. }#end hostname case
  26. default: {
  27. }#default - do nothing
  28. }#end 1852769
  29. }#end of class
  30.  
  31. /etc/puppet/manifests/nodes.pp:
  32. ...
  33. node /playground-01/ inherits base{
  34. include client_custom
  35. ...
  36. }
  37.  
  38.  
  39.  
  40. playground-01:
  41.  
  42. puppetd --debug --verbose --no-daemonize
  43. ...
  44. debug: Finishing transaction 23638729479740
  45. notice: Starting Puppet client version 2.6.6
  46. ...
  47. err: Could not run Puppet configuration client: Could not find user glassfish
Add Comment
Please, Sign In to add comment