Advertisement
Guest User

Untitled

a guest
Jun 11th, 2017
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.21 KB | None | 0 0
  1. master:
  2. # service puppetmaster restart
  3. Stopping puppetmaster: [ OK ]
  4. Starting puppetmaster: [ OK ]
  5. # cat /etc/puppet/puppet.conf
  6. [main]
  7. # Where Puppet stores dynamic and growing data.
  8. # The default value is '/var/puppet'.
  9. vardir = /var/lib/puppet
  10.  
  11. # The Puppet log directory.
  12. # The default value is '$vardir/log'.
  13. logdir = /var/log/puppet
  14.  
  15. # Where Puppet PID files are kept.
  16. # The default value is '$vardir/run'.
  17. rundir = /var/run/puppet
  18.  
  19. # Where SSL certificates are kept.
  20. # The default value is '$confdir/ssl'.
  21. ssldir = $vardir/ssl
  22.  
  23. pluginsync = true
  24. factpath = $vardir/lib/facter
  25.  
  26. [puppetd]
  27. # The file in which puppetd stores a list of the classes
  28. # associated with the retrieved configuratiion. Can be loaded in
  29. # the separate ``puppet`` executable using the ``--loadclasses``
  30. # option.
  31. # The default value is '$confdir/classes.txt'.
  32. classfile = $vardir/classes.txt
  33.  
  34. # Where puppetd caches the local configuration. An
  35. # extension indicating the cache format is added automatically.
  36. # The default value is '$confdir/localconfig'.
  37. localconfig = $vardir/localconfig
  38. report = true
  39.  
  40. [production]
  41. manifest = /etc/puppet/manifests/production/site.pp
  42. modulepath = /etc/puppet/modules/production
  43.  
  44. [development]
  45. manifest = /etc/puppet/manifests/development/site.pp
  46. modulepath = /etc/puppet/modules/development
  47.  
  48. [puppetmasterd]
  49. storeconfigs = true
  50. dbadapter = mysql
  51. dbuser = puppet
  52. dbname = puppet_prod
  53. dbpassword = zzz
  54. dbserver = zzz
  55. dbsocket = /var/run/mysqld/mysql.sock
  56. modulepath = /etc/puppet/modules
  57.  
  58. # cat /etc/puppet/fileserver.conf
  59.  
  60. # This file consists of arbitrarily named sections/modules
  61. # defining where files are served from and to whom
  62.  
  63. # Define a section 'files'
  64. # Adapt the allow/deny settings to your needs. Order
  65. # for allow/deny does not matter, allow always takes precedence
  66. # over deny
  67. [production]
  68. path /etc/puppet/files/production
  69. allow *
  70. [development]
  71. path /etc/puppet/files/development
  72. allow *
  73. #
  74.  
  75. location of custom facter module file on master:
  76. /etc/puppet/modules/custom/lib/facter/clamav_version.rb
  77.  
  78.  
  79. client:
  80. # cat /etc/puppet/puppet.conf
  81. [main]
  82. # Where Puppet stores dynamic and growing data.
  83. # The default value is '/var/puppet'.
  84. vardir = /var/lib/puppet
  85.  
  86. # The Puppet log directory.
  87. # The default value is '$vardir/log'.
  88. logdir = /var/log/puppet
  89.  
  90. # Where Puppet PID files are kept.
  91. # The default value is '$vardir/run'.
  92. rundir = /var/run/puppet
  93.  
  94. # Where SSL certificates are kept.
  95. # The default value is '$confdir/ssl'.
  96. ssldir = $vardir/ssl
  97. pluginsync = true
  98. factpath = $vardir/lib/facter
  99.  
  100. [puppetd]
  101. # The file in which puppetd stores a list of the classes
  102. # associated with the retrieved configuratiion. Can be loaded in
  103. # the separate ``puppet`` executable using the ``--loadclasses``
  104. # option.
  105. # The default value is '$confdir/classes.txt'.
  106. classfile = $vardir/classes.txt
  107.  
  108. # Where puppetd caches the local configuration. An
  109. # extension indicating the cache format is added automatically.
  110. # The default value is '$confdir/localconfig'.
  111. localconfig = $vardir/localconfig
  112.  
  113. # /usr/sbin/puppetd --server puppetmaster --environment=production --report --test
  114. info: Retrieving plugins
  115. err: /File[/var/lib/puppet/lib]: Failed to generate additional resources during transaction: None of the provided sources exist
  116. err: /File[/var/lib/puppet/lib]: Failed to retrieve current state of resource: No specified source was found from puppet://puppetmaster/plugins
  117. info: Caching catalog at /var/lib/puppet/localconfig.yaml
  118. notice: Starting catalog run
  119. info: Sent transaction report in 0.12 seconds
  120. notice: Finished catalog run in 19.40 seconds
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement