Guest User

Untitled

a guest
Jun 6th, 2018
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.40 KB | None | 0 0
  1. puppet.conf on the clients:
  2.  
  3. ----------
  4. [main]
  5.  
  6. # Where Puppet stores dynamic and growing data.
  7. # The default value is '/var/puppet'.
  8. vardir = /var/lib/puppet
  9.  
  10. # The Puppet log directory.
  11. # The default value is '$vardir/log'.
  12. logdir = /var/log/puppet
  13.  
  14. # Where Puppet PID files are kept.
  15. # The default value is '$vardir/run'.
  16. rundir = /var/run/puppet
  17.  
  18. # Where SSL certificates are kept.
  19. # The default value is '$confdir/ssl'.
  20. ssldir = $vardir/ssl
  21.  
  22. pluginsync = true
  23. factpath = $vardir/lib/facter
  24.  
  25. [puppetd]
  26. # The file in which puppetd stores a list of the classes
  27. # associated with the retrieved configuratiion. Can be loaded in
  28. # the separate ``puppet`` executable using the ``--loadclasses``
  29. # option.
  30. # The default value is '$confdir/classes.txt'.
  31. classfile = $vardir/classes.txt
  32.  
  33. # Where puppetd caches the local configuration. An
  34. # extension indicating the cache format is added automatically.
  35. # The default value is '$confdir/localconfig'.
  36. localconfig = $vardir/localconfig
  37. -----------
  38.  
  39. puppet.conf on the puppetmaster:
  40. -----------
  41. [main]
  42. templatedir = /etc/puppet/templates
  43.  
  44. # Where Puppet stores dynamic and growing data.
  45. # The default value is '/var/puppet'.
  46. vardir = /var/lib/puppet
  47.  
  48. # The Puppet log directory.
  49. # The default value is '$vardir/log'.
  50. logdir = /var/log/puppet
  51.  
  52. # Where Puppet PID files are kept.
  53. # The default value is '$vardir/run'.
  54. rundir = /var/run/puppet
  55.  
  56. # Where SSL certificates are kept.
  57. # The default value is '$confdir/ssl'.
  58. ssldir = $vardir/ssl
  59.  
  60. pluginsync = true
  61. [puppetd]
  62. # The file in which puppetd stores a list of the classes
  63. # associated with the retrieved configuratiion. Can be loaded in
  64. # the separate ``puppet`` executable using the ``--loadclasses``
  65. # option.
  66. # The default value is '$confdir/classes.txt'.
  67. classfile = $vardir/classes.txt
  68.  
  69. # Where puppetd caches the local configuration. An
  70. # extension indicating the cache format is added automatically.
  71. # The default value is '$confdir/localconfig'.
  72. localconfig = $vardir/localconfig
  73.  
  74. [puppetmasterd]
  75. #storeconfigs=true
  76. dbadapter=mysql
  77. dbuser=puppet
  78. dbpassword=
  79. dbserver=localhost
  80. #dbsocket=/var/run/mysqld/mysqld.sock
  81. Certname=puppet
  82. -----------
  83.  
  84. fileserver.conf on the puppetmaster:
  85. -----------
  86. # This file consists of arbitrarily named sections/modules
  87. # defining where files are served from and to whom
  88.  
  89. # Define a section 'files'
  90. # Adapt the allow/deny settings to your needs. Order
  91. # for allow/deny does not matter, allow always takes precedence
  92. # over deny
  93.  
  94. [plugins]
  95. allow 192.168.0.0/24
  96. allow 192.168.1.0/24
  97. allow 192.168.20.0/24
  98. allow 192.168.246.0/24
  99. allow 213.152.0.0/16
  100.  
  101. [scripts]
  102. path /etc/puppet/scripts
  103. allow 192.168.0.0/24
  104. allow 192.168.1.0/24
  105. allow 192.168.20.0/24
  106. allow 192.168.246.0/24
  107. allow 213.152.0.0/16
  108.  
  109. [keys]
  110. path /etc/puppet/keys
  111. allow 192.168.0.0/24
  112. allow 192.168.1.0/24
  113. allow 192.168.20.0/24
  114. allow 192.168.246.0/24
  115. allow 213.152.0.0/16
  116.  
  117. [fonts]
  118. path /etc/puppet/fonts
  119. allow 192.168.0.0/24
  120. allow 192.168.1.0/24
  121. allow 192.168.20.0/24
  122. allow 192.168.246.0/24
  123. allow 213.152.0.0/16
  124.  
  125. [files]
  126. path /etc/puppet/files
  127. allow 192.168.0.0/24
  128. allow 192.168.1.0/24
  129. allow 192.168.20.0/24
  130. allow 192.168.246.0/24
  131. allow 213.152.0.0/16
  132. -----------
Add Comment
Please, Sign In to add comment