Advertisement
Guest User

Untitled

a guest
Jun 14th, 2017
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.83 KB | None | 0 0
  1. fact file on master: /etc/puppet/files/plugins/test_fact.rb
  2. puppet.conf on master:
  3. ---------------------------------------------------
  4. [main]
  5. # Where Puppet stores dynamic and growing data.
  6. # The default value is '/var/puppet'.
  7. vardir = /var/lib/puppet
  8.  
  9. # The Puppet log directory.
  10. # The default value is '$vardir/log'.
  11. logdir = /var/log/puppet
  12.  
  13. # Where Puppet PID files are kept.
  14. # The default value is '$vardir/run'.
  15. rundir = /var/run/puppet
  16.  
  17. # Where SSL certificates are kept.
  18. # The default value is '$confdir/ssl'.
  19. ssldir = $vardir/ssl
  20.  
  21. pluginsync = true
  22. factpath = $vardir/lib/facter
  23.  
  24. [puppetd]
  25. # The file in which puppetd stores a list of the classes
  26. # associated with the retrieved configuratiion. Can be loaded in
  27. # the separate ``puppet`` executable using the ``--loadclasses``
  28. # option.
  29. # The default value is '$confdir/classes.txt'.
  30. classfile = $vardir/classes.txt
  31.  
  32. # Where puppetd caches the local configuration. An
  33. # extension indicating the cache format is added automatically.
  34. # The default value is '$confdir/localconfig'.
  35. localconfig = $vardir/localconfig
  36. report = true
  37.  
  38. [production]
  39. manifest = /etc/puppet/manifests/production/site.pp
  40. modulepath = /etc/puppet/modules/production
  41.  
  42. [development]
  43. manifest = /etc/puppet/manifests/development/site.pp
  44. modulepath = /etc/puppet/modules/development
  45.  
  46. [puppetmasterd]
  47. storeconfigs = true
  48. dbadapter = mysql
  49. dbuser = puppet
  50. dbname = puppet_prod
  51. dbpassword = zzz
  52. dbserver = sv-tools01
  53. dbsocket = /var/run/mysqld/mysql.sock
  54. modulepath = /etc/puppet/files/plugins
  55. ---------------------------------------------------
  56. puppet.conf on the client:
  57. ---------------------------------------------------
  58. [main]
  59. # The Puppet log directory.
  60. # The default value is '$vardir/log'.
  61. logdir = /var/log/puppet
  62.  
  63. # Where Puppet PID files are kept.
  64. # The default value is '$vardir/run'.
  65. rundir = /var/run/puppet
  66.  
  67. # Where SSL certificates are kept.
  68. # The default value is '$confdir/ssl'.
  69. ssldir = $vardir/ssl
  70. pluginsync = true
  71. factpath = $vardir/lib/facter
  72.  
  73. [puppetd]
  74. # The file in which puppetd stores a list of the classes
  75. # associated with the retrieved configuratiion. Can be loaded in
  76. # the separate ``puppet`` executable using the ``--loadclasses``
  77. # option.
  78. # The default value is '$confdir/classes.txt'.
  79. classfile = $vardir/classes.txt
  80.  
  81. # Where puppetd caches the local configuration. An
  82. # extension indicating the cache format is added automatically.
  83. # The default value is '$confdir/localconfig'.
  84. localconfig = $vardir/localconfig
  85. ---------------------------------------------------
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement