puppet-retrospec 0.7.0 → 0.7.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (1258) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +7 -3
  3. data/README.md +8 -0
  4. data/VERSION +1 -1
  5. data/bin/retrospec +7 -0
  6. data/lib/retrospec.rb +1 -0
  7. data/lib/retrospec/helpers.rb +1 -1
  8. data/lib/retrospec/version.rb +2 -2
  9. data/puppet-retrospec.gemspec +1268 -9
  10. data/vendor/gems/puppet-3.7.3/COMMITTERS.md +244 -0
  11. data/vendor/gems/puppet-3.7.3/CONTRIBUTING.md +91 -0
  12. data/vendor/gems/puppet-3.7.3/Gemfile +102 -0
  13. data/vendor/gems/puppet-3.7.3/LICENSE +17 -0
  14. data/vendor/gems/puppet-3.7.3/README.md +76 -0
  15. data/vendor/gems/puppet-3.7.3/Rakefile +68 -0
  16. data/vendor/gems/puppet-3.7.3/bin/extlookup2hiera +56 -0
  17. data/vendor/gems/puppet-3.7.3/bin/puppet +8 -0
  18. data/vendor/gems/puppet-3.7.3/conf/auth.conf +120 -0
  19. data/vendor/gems/puppet-3.7.3/conf/fileserver.conf +42 -0
  20. data/vendor/gems/puppet-3.7.3/conf/tagmail.conf +16 -0
  21. data/vendor/gems/puppet-3.7.3/install.rb +429 -0
  22. data/vendor/gems/puppet-3.7.3/lib/hiera/backend/puppet_backend.rb +103 -0
  23. data/vendor/gems/puppet-3.7.3/lib/hiera/scope.rb +60 -0
  24. data/vendor/gems/puppet-3.7.3/lib/hiera_puppet.rb +87 -0
  25. data/vendor/gems/puppet-3.7.3/lib/puppet.rb +277 -0
  26. data/vendor/gems/puppet-3.7.3/lib/puppet/agent.rb +121 -0
  27. data/vendor/gems/puppet-3.7.3/lib/puppet/agent/disabler.rb +53 -0
  28. data/vendor/gems/puppet-3.7.3/lib/puppet/agent/locker.rb +43 -0
  29. data/vendor/gems/puppet-3.7.3/lib/puppet/application.rb +513 -0
  30. data/vendor/gems/puppet-3.7.3/lib/puppet/application/agent.rb +480 -0
  31. data/vendor/gems/puppet-3.7.3/lib/puppet/application/apply.rb +299 -0
  32. data/vendor/gems/puppet-3.7.3/lib/puppet/application/ca.rb +5 -0
  33. data/vendor/gems/puppet-3.7.3/lib/puppet/application/catalog.rb +4 -0
  34. data/vendor/gems/puppet-3.7.3/lib/puppet/application/cert.rb +277 -0
  35. data/vendor/gems/puppet-3.7.3/lib/puppet/application/certificate.rb +15 -0
  36. data/vendor/gems/puppet-3.7.3/lib/puppet/application/certificate_request.rb +7 -0
  37. data/vendor/gems/puppet-3.7.3/lib/puppet/application/certificate_revocation_list.rb +7 -0
  38. data/vendor/gems/puppet-3.7.3/lib/puppet/application/config.rb +4 -0
  39. data/vendor/gems/puppet-3.7.3/lib/puppet/application/describe.rb +254 -0
  40. data/vendor/gems/puppet-3.7.3/lib/puppet/application/device.rb +238 -0
  41. data/vendor/gems/puppet-3.7.3/lib/puppet/application/doc.rb +273 -0
  42. data/vendor/gems/puppet-3.7.3/lib/puppet/application/face_base.rb +250 -0
  43. data/vendor/gems/puppet-3.7.3/lib/puppet/application/facts.rb +4 -0
  44. data/vendor/gems/puppet-3.7.3/lib/puppet/application/file.rb +4 -0
  45. data/vendor/gems/puppet-3.7.3/lib/puppet/application/filebucket.rb +184 -0
  46. data/vendor/gems/puppet-3.7.3/lib/puppet/application/help.rb +4 -0
  47. data/vendor/gems/puppet-3.7.3/lib/puppet/application/indirection_base.rb +4 -0
  48. data/vendor/gems/puppet-3.7.3/lib/puppet/application/inspect.rb +179 -0
  49. data/vendor/gems/puppet-3.7.3/lib/puppet/application/instrumentation_data.rb +7 -0
  50. data/vendor/gems/puppet-3.7.3/lib/puppet/application/instrumentation_listener.rb +7 -0
  51. data/vendor/gems/puppet-3.7.3/lib/puppet/application/instrumentation_probe.rb +7 -0
  52. data/vendor/gems/puppet-3.7.3/lib/puppet/application/key.rb +4 -0
  53. data/vendor/gems/puppet-3.7.3/lib/puppet/application/kick.rb +351 -0
  54. data/vendor/gems/puppet-3.7.3/lib/puppet/application/man.rb +4 -0
  55. data/vendor/gems/puppet-3.7.3/lib/puppet/application/master.rb +304 -0
  56. data/vendor/gems/puppet-3.7.3/lib/puppet/application/module.rb +4 -0
  57. data/vendor/gems/puppet-3.7.3/lib/puppet/application/node.rb +4 -0
  58. data/vendor/gems/puppet-3.7.3/lib/puppet/application/parser.rb +5 -0
  59. data/vendor/gems/puppet-3.7.3/lib/puppet/application/plugin.rb +3 -0
  60. data/vendor/gems/puppet-3.7.3/lib/puppet/application/queue.rb +161 -0
  61. data/vendor/gems/puppet-3.7.3/lib/puppet/application/report.rb +4 -0
  62. data/vendor/gems/puppet-3.7.3/lib/puppet/application/resource.rb +228 -0
  63. data/vendor/gems/puppet-3.7.3/lib/puppet/application/resource_type.rb +7 -0
  64. data/vendor/gems/puppet-3.7.3/lib/puppet/application/secret_agent.rb +9 -0
  65. data/vendor/gems/puppet-3.7.3/lib/puppet/application/status.rb +4 -0
  66. data/vendor/gems/puppet-3.7.3/lib/puppet/bindings.rb +147 -0
  67. data/vendor/gems/puppet-3.7.3/lib/puppet/coercion.rb +40 -0
  68. data/vendor/gems/puppet-3.7.3/lib/puppet/configurer.rb +305 -0
  69. data/vendor/gems/puppet-3.7.3/lib/puppet/configurer/downloader.rb +66 -0
  70. data/vendor/gems/puppet-3.7.3/lib/puppet/configurer/downloader_factory.rb +34 -0
  71. data/vendor/gems/puppet-3.7.3/lib/puppet/configurer/fact_handler.rb +37 -0
  72. data/vendor/gems/puppet-3.7.3/lib/puppet/configurer/plugin_handler.rb +23 -0
  73. data/vendor/gems/puppet-3.7.3/lib/puppet/confine.rb +80 -0
  74. data/vendor/gems/puppet-3.7.3/lib/puppet/confine/any.rb +26 -0
  75. data/vendor/gems/puppet-3.7.3/lib/puppet/confine/exists.rb +19 -0
  76. data/vendor/gems/puppet-3.7.3/lib/puppet/confine/false.rb +19 -0
  77. data/vendor/gems/puppet-3.7.3/lib/puppet/confine/feature.rb +17 -0
  78. data/vendor/gems/puppet-3.7.3/lib/puppet/confine/true.rb +20 -0
  79. data/vendor/gems/puppet-3.7.3/lib/puppet/confine/variable.rb +59 -0
  80. data/vendor/gems/puppet-3.7.3/lib/puppet/confine_collection.rb +50 -0
  81. data/vendor/gems/puppet-3.7.3/lib/puppet/confiner.rb +46 -0
  82. data/vendor/gems/puppet-3.7.3/lib/puppet/context.rb +101 -0
  83. data/vendor/gems/puppet-3.7.3/lib/puppet/context/trusted_information.rb +56 -0
  84. data/vendor/gems/puppet-3.7.3/lib/puppet/daemon.rb +182 -0
  85. data/vendor/gems/puppet-3.7.3/lib/puppet/data_binding.rb +12 -0
  86. data/vendor/gems/puppet-3.7.3/lib/puppet/defaults.rb +2084 -0
  87. data/vendor/gems/puppet-3.7.3/lib/puppet/dsl.rb +7 -0
  88. data/vendor/gems/puppet-3.7.3/lib/puppet/dsl/resource_api.rb +120 -0
  89. data/vendor/gems/puppet-3.7.3/lib/puppet/dsl/resource_type_api.rb +34 -0
  90. data/vendor/gems/puppet-3.7.3/lib/puppet/environments.rb +434 -0
  91. data/vendor/gems/puppet-3.7.3/lib/puppet/error.rb +62 -0
  92. data/vendor/gems/puppet-3.7.3/lib/puppet/external/dot.rb +326 -0
  93. data/vendor/gems/puppet-3.7.3/lib/puppet/external/nagios.rb +46 -0
  94. data/vendor/gems/puppet-3.7.3/lib/puppet/external/nagios/base.rb +472 -0
  95. data/vendor/gems/puppet-3.7.3/lib/puppet/external/nagios/grammar.ry +248 -0
  96. data/vendor/gems/puppet-3.7.3/lib/puppet/external/nagios/makefile +9 -0
  97. data/vendor/gems/puppet-3.7.3/lib/puppet/external/nagios/parser.rb +400 -0
  98. data/vendor/gems/puppet-3.7.3/lib/puppet/external/pson/common.rb +385 -0
  99. data/vendor/gems/puppet-3.7.3/lib/puppet/external/pson/pure.rb +15 -0
  100. data/vendor/gems/puppet-3.7.3/lib/puppet/external/pson/pure/generator.rb +394 -0
  101. data/vendor/gems/puppet-3.7.3/lib/puppet/external/pson/pure/parser.rb +318 -0
  102. data/vendor/gems/puppet-3.7.3/lib/puppet/external/pson/version.rb +8 -0
  103. data/vendor/gems/puppet-3.7.3/lib/puppet/face.rb +12 -0
  104. data/vendor/gems/puppet-3.7.3/lib/puppet/face/ca.rb +254 -0
  105. data/vendor/gems/puppet-3.7.3/lib/puppet/face/catalog.rb +130 -0
  106. data/vendor/gems/puppet-3.7.3/lib/puppet/face/catalog/select.rb +49 -0
  107. data/vendor/gems/puppet-3.7.3/lib/puppet/face/certificate.rb +160 -0
  108. data/vendor/gems/puppet-3.7.3/lib/puppet/face/certificate_request.rb +53 -0
  109. data/vendor/gems/puppet-3.7.3/lib/puppet/face/certificate_revocation_list.rb +58 -0
  110. data/vendor/gems/puppet-3.7.3/lib/puppet/face/config.rb +119 -0
  111. data/vendor/gems/puppet-3.7.3/lib/puppet/face/facts.rb +81 -0
  112. data/vendor/gems/puppet-3.7.3/lib/puppet/face/file.rb +47 -0
  113. data/vendor/gems/puppet-3.7.3/lib/puppet/face/file/download.rb +57 -0
  114. data/vendor/gems/puppet-3.7.3/lib/puppet/face/file/store.rb +21 -0
  115. data/vendor/gems/puppet-3.7.3/lib/puppet/face/help.rb +194 -0
  116. data/vendor/gems/puppet-3.7.3/lib/puppet/face/help/action.erb +86 -0
  117. data/vendor/gems/puppet-3.7.3/lib/puppet/face/help/face.erb +111 -0
  118. data/vendor/gems/puppet-3.7.3/lib/puppet/face/help/global.erb +16 -0
  119. data/vendor/gems/puppet-3.7.3/lib/puppet/face/help/man.erb +152 -0
  120. data/vendor/gems/puppet-3.7.3/lib/puppet/face/instrumentation_data.rb +30 -0
  121. data/vendor/gems/puppet-3.7.3/lib/puppet/face/instrumentation_listener.rb +98 -0
  122. data/vendor/gems/puppet-3.7.3/lib/puppet/face/instrumentation_probe.rb +79 -0
  123. data/vendor/gems/puppet-3.7.3/lib/puppet/face/key.rb +15 -0
  124. data/vendor/gems/puppet-3.7.3/lib/puppet/face/man.rb +99 -0
  125. data/vendor/gems/puppet-3.7.3/lib/puppet/face/module.rb +19 -0
  126. data/vendor/gems/puppet-3.7.3/lib/puppet/face/module/build.rb +63 -0
  127. data/vendor/gems/puppet-3.7.3/lib/puppet/face/module/changes.rb +41 -0
  128. data/vendor/gems/puppet-3.7.3/lib/puppet/face/module/generate.rb +251 -0
  129. data/vendor/gems/puppet-3.7.3/lib/puppet/face/module/install.rb +145 -0
  130. data/vendor/gems/puppet-3.7.3/lib/puppet/face/module/list.rb +275 -0
  131. data/vendor/gems/puppet-3.7.3/lib/puppet/face/module/search.rb +94 -0
  132. data/vendor/gems/puppet-3.7.3/lib/puppet/face/module/uninstall.rb +78 -0
  133. data/vendor/gems/puppet-3.7.3/lib/puppet/face/module/upgrade.rb +86 -0
  134. data/vendor/gems/puppet-3.7.3/lib/puppet/face/node.rb +43 -0
  135. data/vendor/gems/puppet-3.7.3/lib/puppet/face/node/clean.rb +159 -0
  136. data/vendor/gems/puppet-3.7.3/lib/puppet/face/parser.rb +160 -0
  137. data/vendor/gems/puppet-3.7.3/lib/puppet/face/plugin.rb +65 -0
  138. data/vendor/gems/puppet-3.7.3/lib/puppet/face/report.rb +54 -0
  139. data/vendor/gems/puppet-3.7.3/lib/puppet/face/resource.rb +53 -0
  140. data/vendor/gems/puppet-3.7.3/lib/puppet/face/resource_type.rb +81 -0
  141. data/vendor/gems/puppet-3.7.3/lib/puppet/face/secret_agent.rb +54 -0
  142. data/vendor/gems/puppet-3.7.3/lib/puppet/face/status.rb +53 -0
  143. data/vendor/gems/puppet-3.7.3/lib/puppet/feature/base.rb +94 -0
  144. data/vendor/gems/puppet-3.7.3/lib/puppet/feature/cfacter.rb +14 -0
  145. data/vendor/gems/puppet-3.7.3/lib/puppet/feature/eventlog.rb +5 -0
  146. data/vendor/gems/puppet-3.7.3/lib/puppet/feature/external_facts.rb +5 -0
  147. data/vendor/gems/puppet-3.7.3/lib/puppet/feature/libuser.rb +8 -0
  148. data/vendor/gems/puppet-3.7.3/lib/puppet/feature/msgpack.rb +3 -0
  149. data/vendor/gems/puppet-3.7.3/lib/puppet/feature/pe_license.rb +4 -0
  150. data/vendor/gems/puppet-3.7.3/lib/puppet/feature/pson.rb +4 -0
  151. data/vendor/gems/puppet-3.7.3/lib/puppet/feature/rack.rb +19 -0
  152. data/vendor/gems/puppet-3.7.3/lib/puppet/feature/rails.rb +47 -0
  153. data/vendor/gems/puppet-3.7.3/lib/puppet/feature/rdoc1.rb +16 -0
  154. data/vendor/gems/puppet-3.7.3/lib/puppet/feature/rubygems.rb +7 -0
  155. data/vendor/gems/puppet-3.7.3/lib/puppet/feature/selinux.rb +3 -0
  156. data/vendor/gems/puppet-3.7.3/lib/puppet/feature/ssh.rb +3 -0
  157. data/vendor/gems/puppet-3.7.3/lib/puppet/feature/stomp.rb +5 -0
  158. data/vendor/gems/puppet-3.7.3/lib/puppet/feature/zlib.rb +5 -0
  159. data/vendor/gems/puppet-3.7.3/lib/puppet/file_bucket.rb +4 -0
  160. data/vendor/gems/puppet-3.7.3/lib/puppet/file_bucket/dipper.rb +119 -0
  161. data/vendor/gems/puppet-3.7.3/lib/puppet/file_bucket/file.rb +157 -0
  162. data/vendor/gems/puppet-3.7.3/lib/puppet/file_collection.rb +19 -0
  163. data/vendor/gems/puppet-3.7.3/lib/puppet/file_collection/lookup.rb +10 -0
  164. data/vendor/gems/puppet-3.7.3/lib/puppet/file_serving.rb +3 -0
  165. data/vendor/gems/puppet-3.7.3/lib/puppet/file_serving/base.rb +95 -0
  166. data/vendor/gems/puppet-3.7.3/lib/puppet/file_serving/configuration.rb +109 -0
  167. data/vendor/gems/puppet-3.7.3/lib/puppet/file_serving/configuration/parser.rb +121 -0
  168. data/vendor/gems/puppet-3.7.3/lib/puppet/file_serving/content.rb +45 -0
  169. data/vendor/gems/puppet-3.7.3/lib/puppet/file_serving/fileset.rb +172 -0
  170. data/vendor/gems/puppet-3.7.3/lib/puppet/file_serving/metadata.rb +199 -0
  171. data/vendor/gems/puppet-3.7.3/lib/puppet/file_serving/mount.rb +39 -0
  172. data/vendor/gems/puppet-3.7.3/lib/puppet/file_serving/mount/file.rb +121 -0
  173. data/vendor/gems/puppet-3.7.3/lib/puppet/file_serving/mount/modules.rb +24 -0
  174. data/vendor/gems/puppet-3.7.3/lib/puppet/file_serving/mount/pluginfacts.rb +35 -0
  175. data/vendor/gems/puppet-3.7.3/lib/puppet/file_serving/mount/plugins.rb +35 -0
  176. data/vendor/gems/puppet-3.7.3/lib/puppet/file_serving/terminus_helper.rb +21 -0
  177. data/vendor/gems/puppet-3.7.3/lib/puppet/file_serving/terminus_selector.rb +30 -0
  178. data/vendor/gems/puppet-3.7.3/lib/puppet/file_system.rb +366 -0
  179. data/vendor/gems/puppet-3.7.3/lib/puppet/file_system/file18.rb +5 -0
  180. data/vendor/gems/puppet-3.7.3/lib/puppet/file_system/file19.rb +46 -0
  181. data/vendor/gems/puppet-3.7.3/lib/puppet/file_system/file19windows.rb +107 -0
  182. data/vendor/gems/puppet-3.7.3/lib/puppet/file_system/file_impl.rb +145 -0
  183. data/vendor/gems/puppet-3.7.3/lib/puppet/file_system/memory_file.rb +71 -0
  184. data/vendor/gems/puppet-3.7.3/lib/puppet/file_system/memory_impl.rb +78 -0
  185. data/vendor/gems/puppet-3.7.3/lib/puppet/file_system/path_pattern.rb +97 -0
  186. data/vendor/gems/puppet-3.7.3/lib/puppet/file_system/uniquefile.rb +190 -0
  187. data/vendor/gems/puppet-3.7.3/lib/puppet/forge.rb +226 -0
  188. data/vendor/gems/puppet-3.7.3/lib/puppet/forge/cache.rb +59 -0
  189. data/vendor/gems/puppet-3.7.3/lib/puppet/forge/errors.rb +112 -0
  190. data/vendor/gems/puppet-3.7.3/lib/puppet/forge/repository.rb +182 -0
  191. data/vendor/gems/puppet-3.7.3/lib/puppet/functions.rb +555 -0
  192. data/vendor/gems/puppet-3.7.3/lib/puppet/functions/assert_type.rb +59 -0
  193. data/vendor/gems/puppet-3.7.3/lib/puppet/functions/each.rb +111 -0
  194. data/vendor/gems/puppet-3.7.3/lib/puppet/functions/epp.rb +54 -0
  195. data/vendor/gems/puppet-3.7.3/lib/puppet/functions/filter.rb +113 -0
  196. data/vendor/gems/puppet-3.7.3/lib/puppet/functions/import.rb +7 -0
  197. data/vendor/gems/puppet-3.7.3/lib/puppet/functions/inline_epp.rb +88 -0
  198. data/vendor/gems/puppet-3.7.3/lib/puppet/functions/map.rb +97 -0
  199. data/vendor/gems/puppet-3.7.3/lib/puppet/functions/match.rb +102 -0
  200. data/vendor/gems/puppet-3.7.3/lib/puppet/functions/reduce.rb +94 -0
  201. data/vendor/gems/puppet-3.7.3/lib/puppet/functions/slice.rb +126 -0
  202. data/vendor/gems/puppet-3.7.3/lib/puppet/functions/with.rb +23 -0
  203. data/vendor/gems/puppet-3.7.3/lib/puppet/graph.rb +11 -0
  204. data/vendor/gems/puppet-3.7.3/lib/puppet/graph/key.rb +26 -0
  205. data/vendor/gems/puppet-3.7.3/lib/puppet/graph/prioritizer.rb +29 -0
  206. data/vendor/gems/puppet-3.7.3/lib/puppet/graph/random_prioritizer.rb +16 -0
  207. data/vendor/gems/puppet-3.7.3/lib/puppet/graph/rb_tree_map.rb +388 -0
  208. data/vendor/gems/puppet-3.7.3/lib/puppet/graph/relationship_graph.rb +246 -0
  209. data/vendor/gems/puppet-3.7.3/lib/puppet/graph/sequential_prioritizer.rb +31 -0
  210. data/vendor/gems/puppet-3.7.3/lib/puppet/graph/simple_graph.rb +566 -0
  211. data/vendor/gems/puppet-3.7.3/lib/puppet/graph/title_hash_prioritizer.rb +16 -0
  212. data/vendor/gems/puppet-3.7.3/lib/puppet/indirector.rb +61 -0
  213. data/vendor/gems/puppet-3.7.3/lib/puppet/indirector/active_record.rb +29 -0
  214. data/vendor/gems/puppet-3.7.3/lib/puppet/indirector/catalog/active_record.rb +39 -0
  215. data/vendor/gems/puppet-3.7.3/lib/puppet/indirector/catalog/compiler.rb +182 -0
  216. data/vendor/gems/puppet-3.7.3/lib/puppet/indirector/catalog/json.rb +6 -0
  217. data/vendor/gems/puppet-3.7.3/lib/puppet/indirector/catalog/msgpack.rb +6 -0
  218. data/vendor/gems/puppet-3.7.3/lib/puppet/indirector/catalog/queue.rb +9 -0
  219. data/vendor/gems/puppet-3.7.3/lib/puppet/indirector/catalog/rest.rb +6 -0
  220. data/vendor/gems/puppet-3.7.3/lib/puppet/indirector/catalog/static_compiler.rb +214 -0
  221. data/vendor/gems/puppet-3.7.3/lib/puppet/indirector/catalog/store_configs.rb +8 -0
  222. data/vendor/gems/puppet-3.7.3/lib/puppet/indirector/catalog/yaml.rb +22 -0
  223. data/vendor/gems/puppet-3.7.3/lib/puppet/indirector/certificate/ca.rb +9 -0
  224. data/vendor/gems/puppet-3.7.3/lib/puppet/indirector/certificate/disabled_ca.rb +22 -0
  225. data/vendor/gems/puppet-3.7.3/lib/puppet/indirector/certificate/file.rb +9 -0
  226. data/vendor/gems/puppet-3.7.3/lib/puppet/indirector/certificate/rest.rb +16 -0
  227. data/vendor/gems/puppet-3.7.3/lib/puppet/indirector/certificate_request/ca.rb +22 -0
  228. data/vendor/gems/puppet-3.7.3/lib/puppet/indirector/certificate_request/disabled_ca.rb +22 -0
  229. data/vendor/gems/puppet-3.7.3/lib/puppet/indirector/certificate_request/file.rb +8 -0
  230. data/vendor/gems/puppet-3.7.3/lib/puppet/indirector/certificate_request/memory.rb +6 -0
  231. data/vendor/gems/puppet-3.7.3/lib/puppet/indirector/certificate_request/rest.rb +10 -0
  232. data/vendor/gems/puppet-3.7.3/lib/puppet/indirector/certificate_revocation_list/ca.rb +8 -0
  233. data/vendor/gems/puppet-3.7.3/lib/puppet/indirector/certificate_revocation_list/disabled_ca.rb +22 -0
  234. data/vendor/gems/puppet-3.7.3/lib/puppet/indirector/certificate_revocation_list/file.rb +8 -0
  235. data/vendor/gems/puppet-3.7.3/lib/puppet/indirector/certificate_revocation_list/rest.rb +10 -0
  236. data/vendor/gems/puppet-3.7.3/lib/puppet/indirector/certificate_status.rb +4 -0
  237. data/vendor/gems/puppet-3.7.3/lib/puppet/indirector/certificate_status/file.rb +91 -0
  238. data/vendor/gems/puppet-3.7.3/lib/puppet/indirector/certificate_status/rest.rb +11 -0
  239. data/vendor/gems/puppet-3.7.3/lib/puppet/indirector/code.rb +6 -0
  240. data/vendor/gems/puppet-3.7.3/lib/puppet/indirector/couch.rb +78 -0
  241. data/vendor/gems/puppet-3.7.3/lib/puppet/indirector/data_binding/hiera.rb +7 -0
  242. data/vendor/gems/puppet-3.7.3/lib/puppet/indirector/data_binding/none.rb +5 -0
  243. data/vendor/gems/puppet-3.7.3/lib/puppet/indirector/direct_file_server.rb +19 -0
  244. data/vendor/gems/puppet-3.7.3/lib/puppet/indirector/envelope.rb +11 -0
  245. data/vendor/gems/puppet-3.7.3/lib/puppet/indirector/errors.rb +5 -0
  246. data/vendor/gems/puppet-3.7.3/lib/puppet/indirector/exec.rb +38 -0
  247. data/vendor/gems/puppet-3.7.3/lib/puppet/indirector/face.rb +139 -0
  248. data/vendor/gems/puppet-3.7.3/lib/puppet/indirector/facts/active_record.rb +44 -0
  249. data/vendor/gems/puppet-3.7.3/lib/puppet/indirector/facts/couch.rb +36 -0
  250. data/vendor/gems/puppet-3.7.3/lib/puppet/indirector/facts/facter.rb +78 -0
  251. data/vendor/gems/puppet-3.7.3/lib/puppet/indirector/facts/inventory_active_record.rb +110 -0
  252. data/vendor/gems/puppet-3.7.3/lib/puppet/indirector/facts/inventory_service.rb +20 -0
  253. data/vendor/gems/puppet-3.7.3/lib/puppet/indirector/facts/memory.rb +9 -0
  254. data/vendor/gems/puppet-3.7.3/lib/puppet/indirector/facts/network_device.rb +24 -0
  255. data/vendor/gems/puppet-3.7.3/lib/puppet/indirector/facts/rest.rb +8 -0
  256. data/vendor/gems/puppet-3.7.3/lib/puppet/indirector/facts/store_configs.rb +8 -0
  257. data/vendor/gems/puppet-3.7.3/lib/puppet/indirector/facts/yaml.rb +82 -0
  258. data/vendor/gems/puppet-3.7.3/lib/puppet/indirector/file_bucket_file/file.rb +142 -0
  259. data/vendor/gems/puppet-3.7.3/lib/puppet/indirector/file_bucket_file/rest.rb +8 -0
  260. data/vendor/gems/puppet-3.7.3/lib/puppet/indirector/file_bucket_file/selector.rb +53 -0
  261. data/vendor/gems/puppet-3.7.3/lib/puppet/indirector/file_content.rb +5 -0
  262. data/vendor/gems/puppet-3.7.3/lib/puppet/indirector/file_content/file.rb +7 -0
  263. data/vendor/gems/puppet-3.7.3/lib/puppet/indirector/file_content/file_server.rb +7 -0
  264. data/vendor/gems/puppet-3.7.3/lib/puppet/indirector/file_content/rest.rb +9 -0
  265. data/vendor/gems/puppet-3.7.3/lib/puppet/indirector/file_content/selector.rb +30 -0
  266. data/vendor/gems/puppet-3.7.3/lib/puppet/indirector/file_metadata.rb +5 -0
  267. data/vendor/gems/puppet-3.7.3/lib/puppet/indirector/file_metadata/file.rb +22 -0
  268. data/vendor/gems/puppet-3.7.3/lib/puppet/indirector/file_metadata/file_server.rb +7 -0
  269. data/vendor/gems/puppet-3.7.3/lib/puppet/indirector/file_metadata/rest.rb +9 -0
  270. data/vendor/gems/puppet-3.7.3/lib/puppet/indirector/file_metadata/selector.rb +30 -0
  271. data/vendor/gems/puppet-3.7.3/lib/puppet/indirector/file_server.rb +65 -0
  272. data/vendor/gems/puppet-3.7.3/lib/puppet/indirector/hiera.rb +48 -0
  273. data/vendor/gems/puppet-3.7.3/lib/puppet/indirector/indirection.rb +336 -0
  274. data/vendor/gems/puppet-3.7.3/lib/puppet/indirector/instrumentation_data.rb +3 -0
  275. data/vendor/gems/puppet-3.7.3/lib/puppet/indirector/instrumentation_data/local.rb +22 -0
  276. data/vendor/gems/puppet-3.7.3/lib/puppet/indirector/instrumentation_data/rest.rb +8 -0
  277. data/vendor/gems/puppet-3.7.3/lib/puppet/indirector/instrumentation_listener.rb +3 -0
  278. data/vendor/gems/puppet-3.7.3/lib/puppet/indirector/instrumentation_listener/local.rb +26 -0
  279. data/vendor/gems/puppet-3.7.3/lib/puppet/indirector/instrumentation_listener/rest.rb +8 -0
  280. data/vendor/gems/puppet-3.7.3/lib/puppet/indirector/instrumentation_probe.rb +3 -0
  281. data/vendor/gems/puppet-3.7.3/lib/puppet/indirector/instrumentation_probe/local.rb +27 -0
  282. data/vendor/gems/puppet-3.7.3/lib/puppet/indirector/instrumentation_probe/rest.rb +8 -0
  283. data/vendor/gems/puppet-3.7.3/lib/puppet/indirector/json.rb +76 -0
  284. data/vendor/gems/puppet-3.7.3/lib/puppet/indirector/key/ca.rb +16 -0
  285. data/vendor/gems/puppet-3.7.3/lib/puppet/indirector/key/disabled_ca.rb +22 -0
  286. data/vendor/gems/puppet-3.7.3/lib/puppet/indirector/key/file.rb +49 -0
  287. data/vendor/gems/puppet-3.7.3/lib/puppet/indirector/key/memory.rb +6 -0
  288. data/vendor/gems/puppet-3.7.3/lib/puppet/indirector/ldap.rb +79 -0
  289. data/vendor/gems/puppet-3.7.3/lib/puppet/indirector/memory.rb +34 -0
  290. data/vendor/gems/puppet-3.7.3/lib/puppet/indirector/msgpack.rb +82 -0
  291. data/vendor/gems/puppet-3.7.3/lib/puppet/indirector/node/active_record.rb +22 -0
  292. data/vendor/gems/puppet-3.7.3/lib/puppet/indirector/node/exec.rb +69 -0
  293. data/vendor/gems/puppet-3.7.3/lib/puppet/indirector/node/ldap.rb +257 -0
  294. data/vendor/gems/puppet-3.7.3/lib/puppet/indirector/node/memory.rb +10 -0
  295. data/vendor/gems/puppet-3.7.3/lib/puppet/indirector/node/msgpack.rb +7 -0
  296. data/vendor/gems/puppet-3.7.3/lib/puppet/indirector/node/plain.rb +20 -0
  297. data/vendor/gems/puppet-3.7.3/lib/puppet/indirector/node/rest.rb +7 -0
  298. data/vendor/gems/puppet-3.7.3/lib/puppet/indirector/node/store_configs.rb +8 -0
  299. data/vendor/gems/puppet-3.7.3/lib/puppet/indirector/node/write_only_yaml.rb +32 -0
  300. data/vendor/gems/puppet-3.7.3/lib/puppet/indirector/node/yaml.rb +22 -0
  301. data/vendor/gems/puppet-3.7.3/lib/puppet/indirector/none.rb +9 -0
  302. data/vendor/gems/puppet-3.7.3/lib/puppet/indirector/plain.rb +9 -0
  303. data/vendor/gems/puppet-3.7.3/lib/puppet/indirector/queue.rb +80 -0
  304. data/vendor/gems/puppet-3.7.3/lib/puppet/indirector/report/msgpack.rb +11 -0
  305. data/vendor/gems/puppet-3.7.3/lib/puppet/indirector/report/processor.rb +59 -0
  306. data/vendor/gems/puppet-3.7.3/lib/puppet/indirector/report/rest.rb +15 -0
  307. data/vendor/gems/puppet-3.7.3/lib/puppet/indirector/report/yaml.rb +11 -0
  308. data/vendor/gems/puppet-3.7.3/lib/puppet/indirector/request.rb +317 -0
  309. data/vendor/gems/puppet-3.7.3/lib/puppet/indirector/resource/active_record.rb +104 -0
  310. data/vendor/gems/puppet-3.7.3/lib/puppet/indirector/resource/ral.rb +64 -0
  311. data/vendor/gems/puppet-3.7.3/lib/puppet/indirector/resource/rest.rb +17 -0
  312. data/vendor/gems/puppet-3.7.3/lib/puppet/indirector/resource/store_configs.rb +13 -0
  313. data/vendor/gems/puppet-3.7.3/lib/puppet/indirector/resource/validator.rb +8 -0
  314. data/vendor/gems/puppet-3.7.3/lib/puppet/indirector/resource_type.rb +5 -0
  315. data/vendor/gems/puppet-3.7.3/lib/puppet/indirector/resource_type/parser.rb +101 -0
  316. data/vendor/gems/puppet-3.7.3/lib/puppet/indirector/resource_type/rest.rb +7 -0
  317. data/vendor/gems/puppet-3.7.3/lib/puppet/indirector/rest.rb +267 -0
  318. data/vendor/gems/puppet-3.7.3/lib/puppet/indirector/run/local.rb +15 -0
  319. data/vendor/gems/puppet-3.7.3/lib/puppet/indirector/run/rest.rb +12 -0
  320. data/vendor/gems/puppet-3.7.3/lib/puppet/indirector/ssl_file.rb +180 -0
  321. data/vendor/gems/puppet-3.7.3/lib/puppet/indirector/status.rb +3 -0
  322. data/vendor/gems/puppet-3.7.3/lib/puppet/indirector/status/local.rb +12 -0
  323. data/vendor/gems/puppet-3.7.3/lib/puppet/indirector/status/rest.rb +9 -0
  324. data/vendor/gems/puppet-3.7.3/lib/puppet/indirector/store_configs.rb +30 -0
  325. data/vendor/gems/puppet-3.7.3/lib/puppet/indirector/terminus.rb +169 -0
  326. data/vendor/gems/puppet-3.7.3/lib/puppet/indirector/yaml.rb +63 -0
  327. data/vendor/gems/puppet-3.7.3/lib/puppet/interface.rb +235 -0
  328. data/vendor/gems/puppet-3.7.3/lib/puppet/interface/action.rb +374 -0
  329. data/vendor/gems/puppet-3.7.3/lib/puppet/interface/action_builder.rb +149 -0
  330. data/vendor/gems/puppet-3.7.3/lib/puppet/interface/action_manager.rb +101 -0
  331. data/vendor/gems/puppet-3.7.3/lib/puppet/interface/documentation.rb +342 -0
  332. data/vendor/gems/puppet-3.7.3/lib/puppet/interface/face_collection.rb +125 -0
  333. data/vendor/gems/puppet-3.7.3/lib/puppet/interface/option.rb +150 -0
  334. data/vendor/gems/puppet-3.7.3/lib/puppet/interface/option_builder.rb +93 -0
  335. data/vendor/gems/puppet-3.7.3/lib/puppet/interface/option_manager.rb +99 -0
  336. data/vendor/gems/puppet-3.7.3/lib/puppet/loaders.rb +19 -0
  337. data/vendor/gems/puppet-3.7.3/lib/puppet/metatype/manager.rb +184 -0
  338. data/vendor/gems/puppet-3.7.3/lib/puppet/module.rb +339 -0
  339. data/vendor/gems/puppet-3.7.3/lib/puppet/module_tool.rb +194 -0
  340. data/vendor/gems/puppet-3.7.3/lib/puppet/module_tool/applications.rb +14 -0
  341. data/vendor/gems/puppet-3.7.3/lib/puppet/module_tool/applications/application.rb +98 -0
  342. data/vendor/gems/puppet-3.7.3/lib/puppet/module_tool/applications/builder.rb +148 -0
  343. data/vendor/gems/puppet-3.7.3/lib/puppet/module_tool/applications/checksummer.rb +62 -0
  344. data/vendor/gems/puppet-3.7.3/lib/puppet/module_tool/applications/installer.rb +353 -0
  345. data/vendor/gems/puppet-3.7.3/lib/puppet/module_tool/applications/searcher.rb +29 -0
  346. data/vendor/gems/puppet-3.7.3/lib/puppet/module_tool/applications/uninstaller.rb +117 -0
  347. data/vendor/gems/puppet-3.7.3/lib/puppet/module_tool/applications/unpacker.rb +100 -0
  348. data/vendor/gems/puppet-3.7.3/lib/puppet/module_tool/applications/upgrader.rb +279 -0
  349. data/vendor/gems/puppet-3.7.3/lib/puppet/module_tool/checksums.rb +49 -0
  350. data/vendor/gems/puppet-3.7.3/lib/puppet/module_tool/contents_description.rb +84 -0
  351. data/vendor/gems/puppet-3.7.3/lib/puppet/module_tool/dependency.rb +42 -0
  352. data/vendor/gems/puppet-3.7.3/lib/puppet/module_tool/errors.rb +11 -0
  353. data/vendor/gems/puppet-3.7.3/lib/puppet/module_tool/errors/base.rb +15 -0
  354. data/vendor/gems/puppet-3.7.3/lib/puppet/module_tool/errors/installer.rb +95 -0
  355. data/vendor/gems/puppet-3.7.3/lib/puppet/module_tool/errors/shared.rb +188 -0
  356. data/vendor/gems/puppet-3.7.3/lib/puppet/module_tool/errors/uninstaller.rb +45 -0
  357. data/vendor/gems/puppet-3.7.3/lib/puppet/module_tool/errors/upgrader.rb +63 -0
  358. data/vendor/gems/puppet-3.7.3/lib/puppet/module_tool/install_directory.rb +45 -0
  359. data/vendor/gems/puppet-3.7.3/lib/puppet/module_tool/installed_modules.rb +98 -0
  360. data/vendor/gems/puppet-3.7.3/lib/puppet/module_tool/local_tarball.rb +90 -0
  361. data/vendor/gems/puppet-3.7.3/lib/puppet/module_tool/metadata.rb +209 -0
  362. data/vendor/gems/puppet-3.7.3/lib/puppet/module_tool/modulefile.rb +78 -0
  363. data/vendor/gems/puppet-3.7.3/lib/puppet/module_tool/shared_behaviors.rb +180 -0
  364. data/vendor/gems/puppet-3.7.3/lib/puppet/module_tool/skeleton/templates/generator/Gemfile +7 -0
  365. data/vendor/gems/puppet-3.7.3/lib/puppet/module_tool/skeleton/templates/generator/README.md.erb +79 -0
  366. data/vendor/gems/puppet-3.7.3/lib/puppet/module_tool/skeleton/templates/generator/Rakefile +18 -0
  367. data/vendor/gems/puppet-3.7.3/lib/puppet/module_tool/skeleton/templates/generator/manifests/init.pp.erb +41 -0
  368. data/vendor/gems/puppet-3.7.3/lib/puppet/module_tool/skeleton/templates/generator/metadata.json.erb +1 -0
  369. data/vendor/gems/puppet-3.7.3/lib/puppet/module_tool/skeleton/templates/generator/spec/classes/init_spec.rb.erb +7 -0
  370. data/vendor/gems/puppet-3.7.3/lib/puppet/module_tool/skeleton/templates/generator/spec/spec_helper.rb +1 -0
  371. data/vendor/gems/puppet-3.7.3/lib/puppet/module_tool/skeleton/templates/generator/tests/init.pp.erb +12 -0
  372. data/vendor/gems/puppet-3.7.3/lib/puppet/module_tool/tar.rb +17 -0
  373. data/vendor/gems/puppet-3.7.3/lib/puppet/module_tool/tar/gnu.rb +19 -0
  374. data/vendor/gems/puppet-3.7.3/lib/puppet/module_tool/tar/mini.rb +53 -0
  375. data/vendor/gems/puppet-3.7.3/lib/puppet/network.rb +3 -0
  376. data/vendor/gems/puppet-3.7.3/lib/puppet/network/auth_config_parser.rb +84 -0
  377. data/vendor/gems/puppet-3.7.3/lib/puppet/network/authconfig.rb +76 -0
  378. data/vendor/gems/puppet-3.7.3/lib/puppet/network/authentication.rb +35 -0
  379. data/vendor/gems/puppet-3.7.3/lib/puppet/network/authorization.rb +34 -0
  380. data/vendor/gems/puppet-3.7.3/lib/puppet/network/authstore.rb +282 -0
  381. data/vendor/gems/puppet-3.7.3/lib/puppet/network/client_request.rb +29 -0
  382. data/vendor/gems/puppet-3.7.3/lib/puppet/network/format.rb +110 -0
  383. data/vendor/gems/puppet-3.7.3/lib/puppet/network/format_handler.rb +105 -0
  384. data/vendor/gems/puppet-3.7.3/lib/puppet/network/format_support.rb +124 -0
  385. data/vendor/gems/puppet-3.7.3/lib/puppet/network/formats.rb +216 -0
  386. data/vendor/gems/puppet-3.7.3/lib/puppet/network/http.rb +20 -0
  387. data/vendor/gems/puppet-3.7.3/lib/puppet/network/http/api.rb +2 -0
  388. data/vendor/gems/puppet-3.7.3/lib/puppet/network/http/api/v1.rb +222 -0
  389. data/vendor/gems/puppet-3.7.3/lib/puppet/network/http/api/v2.rb +32 -0
  390. data/vendor/gems/puppet-3.7.3/lib/puppet/network/http/api/v2/authorization.rb +15 -0
  391. data/vendor/gems/puppet-3.7.3/lib/puppet/network/http/api/v2/environments.rb +35 -0
  392. data/vendor/gems/puppet-3.7.3/lib/puppet/network/http/compression.rb +118 -0
  393. data/vendor/gems/puppet-3.7.3/lib/puppet/network/http/connection.rb +240 -0
  394. data/vendor/gems/puppet-3.7.3/lib/puppet/network/http/error.rb +69 -0
  395. data/vendor/gems/puppet-3.7.3/lib/puppet/network/http/factory.rb +44 -0
  396. data/vendor/gems/puppet-3.7.3/lib/puppet/network/http/handler.rb +186 -0
  397. data/vendor/gems/puppet-3.7.3/lib/puppet/network/http/issues.rb +11 -0
  398. data/vendor/gems/puppet-3.7.3/lib/puppet/network/http/memory_response.rb +13 -0
  399. data/vendor/gems/puppet-3.7.3/lib/puppet/network/http/nocache_pool.rb +21 -0
  400. data/vendor/gems/puppet-3.7.3/lib/puppet/network/http/pool.rb +120 -0
  401. data/vendor/gems/puppet-3.7.3/lib/puppet/network/http/rack.rb +33 -0
  402. data/vendor/gems/puppet-3.7.3/lib/puppet/network/http/rack/rest.rb +138 -0
  403. data/vendor/gems/puppet-3.7.3/lib/puppet/network/http/request.rb +56 -0
  404. data/vendor/gems/puppet-3.7.3/lib/puppet/network/http/response.rb +11 -0
  405. data/vendor/gems/puppet-3.7.3/lib/puppet/network/http/route.rb +100 -0
  406. data/vendor/gems/puppet-3.7.3/lib/puppet/network/http/session.rb +17 -0
  407. data/vendor/gems/puppet-3.7.3/lib/puppet/network/http/site.rb +39 -0
  408. data/vendor/gems/puppet-3.7.3/lib/puppet/network/http/webrick.rb +129 -0
  409. data/vendor/gems/puppet-3.7.3/lib/puppet/network/http/webrick/rest.rb +104 -0
  410. data/vendor/gems/puppet-3.7.3/lib/puppet/network/http_pool.rb +61 -0
  411. data/vendor/gems/puppet-3.7.3/lib/puppet/network/resolver.rb +86 -0
  412. data/vendor/gems/puppet-3.7.3/lib/puppet/network/rest_controller.rb +2 -0
  413. data/vendor/gems/puppet-3.7.3/lib/puppet/network/rights.rb +219 -0
  414. data/vendor/gems/puppet-3.7.3/lib/puppet/network/server.rb +39 -0
  415. data/vendor/gems/puppet-3.7.3/lib/puppet/node.rb +184 -0
  416. data/vendor/gems/puppet-3.7.3/lib/puppet/node/environment.rb +595 -0
  417. data/vendor/gems/puppet-3.7.3/lib/puppet/node/facts.rb +155 -0
  418. data/vendor/gems/puppet-3.7.3/lib/puppet/parameter.rb +585 -0
  419. data/vendor/gems/puppet-3.7.3/lib/puppet/parameter/boolean.rb +15 -0
  420. data/vendor/gems/puppet-3.7.3/lib/puppet/parameter/package_options.rb +31 -0
  421. data/vendor/gems/puppet-3.7.3/lib/puppet/parameter/path.rb +57 -0
  422. data/vendor/gems/puppet-3.7.3/lib/puppet/parameter/value.rb +93 -0
  423. data/vendor/gems/puppet-3.7.3/lib/puppet/parameter/value_collection.rb +211 -0
  424. data/vendor/gems/puppet-3.7.3/lib/puppet/parser.rb +7 -0
  425. data/vendor/gems/puppet-3.7.3/lib/puppet/parser/ast.rb +129 -0
  426. data/vendor/gems/puppet-3.7.3/lib/puppet/parser/ast/arithmetic_operator.rb +91 -0
  427. data/vendor/gems/puppet-3.7.3/lib/puppet/parser/ast/astarray.rb +50 -0
  428. data/vendor/gems/puppet-3.7.3/lib/puppet/parser/ast/asthash.rb +37 -0
  429. data/vendor/gems/puppet-3.7.3/lib/puppet/parser/ast/block_expression.rb +40 -0
  430. data/vendor/gems/puppet-3.7.3/lib/puppet/parser/ast/boolean_operator.rb +46 -0
  431. data/vendor/gems/puppet-3.7.3/lib/puppet/parser/ast/branch.rb +22 -0
  432. data/vendor/gems/puppet-3.7.3/lib/puppet/parser/ast/caseopt.rb +52 -0
  433. data/vendor/gems/puppet-3.7.3/lib/puppet/parser/ast/casestatement.rb +41 -0
  434. data/vendor/gems/puppet-3.7.3/lib/puppet/parser/ast/collection.rb +53 -0
  435. data/vendor/gems/puppet-3.7.3/lib/puppet/parser/ast/collexpr.rb +109 -0
  436. data/vendor/gems/puppet-3.7.3/lib/puppet/parser/ast/comparison_operator.rb +38 -0
  437. data/vendor/gems/puppet-3.7.3/lib/puppet/parser/ast/definition.rb +17 -0
  438. data/vendor/gems/puppet-3.7.3/lib/puppet/parser/ast/else.rb +22 -0
  439. data/vendor/gems/puppet-3.7.3/lib/puppet/parser/ast/function.rb +59 -0
  440. data/vendor/gems/puppet-3.7.3/lib/puppet/parser/ast/hostclass.rb +29 -0
  441. data/vendor/gems/puppet-3.7.3/lib/puppet/parser/ast/ifstatement.rb +34 -0
  442. data/vendor/gems/puppet-3.7.3/lib/puppet/parser/ast/in_operator.rb +24 -0
  443. data/vendor/gems/puppet-3.7.3/lib/puppet/parser/ast/lambda.rb +135 -0
  444. data/vendor/gems/puppet-3.7.3/lib/puppet/parser/ast/leaf.rb +232 -0
  445. data/vendor/gems/puppet-3.7.3/lib/puppet/parser/ast/match_operator.rb +28 -0
  446. data/vendor/gems/puppet-3.7.3/lib/puppet/parser/ast/method_call.rb +77 -0
  447. data/vendor/gems/puppet-3.7.3/lib/puppet/parser/ast/minus.rb +23 -0
  448. data/vendor/gems/puppet-3.7.3/lib/puppet/parser/ast/node.rb +25 -0
  449. data/vendor/gems/puppet-3.7.3/lib/puppet/parser/ast/nop.rb +11 -0
  450. data/vendor/gems/puppet-3.7.3/lib/puppet/parser/ast/not.rb +19 -0
  451. data/vendor/gems/puppet-3.7.3/lib/puppet/parser/ast/pops_bridge.rb +242 -0
  452. data/vendor/gems/puppet-3.7.3/lib/puppet/parser/ast/relationship.rb +47 -0
  453. data/vendor/gems/puppet-3.7.3/lib/puppet/parser/ast/resource.rb +67 -0
  454. data/vendor/gems/puppet-3.7.3/lib/puppet/parser/ast/resource_defaults.rb +24 -0
  455. data/vendor/gems/puppet-3.7.3/lib/puppet/parser/ast/resource_instance.rb +9 -0
  456. data/vendor/gems/puppet-3.7.3/lib/puppet/parser/ast/resource_override.rb +62 -0
  457. data/vendor/gems/puppet-3.7.3/lib/puppet/parser/ast/resource_reference.rb +28 -0
  458. data/vendor/gems/puppet-3.7.3/lib/puppet/parser/ast/resourceparam.rb +27 -0
  459. data/vendor/gems/puppet-3.7.3/lib/puppet/parser/ast/selector.rb +50 -0
  460. data/vendor/gems/puppet-3.7.3/lib/puppet/parser/ast/top_level_construct.rb +4 -0
  461. data/vendor/gems/puppet-3.7.3/lib/puppet/parser/ast/vardef.rb +38 -0
  462. data/vendor/gems/puppet-3.7.3/lib/puppet/parser/code_merger.rb +13 -0
  463. data/vendor/gems/puppet-3.7.3/lib/puppet/parser/collector.rb +177 -0
  464. data/vendor/gems/puppet-3.7.3/lib/puppet/parser/compiler.rb +625 -0
  465. data/vendor/gems/puppet-3.7.3/lib/puppet/parser/e4_parser_adapter.rb +81 -0
  466. data/vendor/gems/puppet-3.7.3/lib/puppet/parser/files.rb +137 -0
  467. data/vendor/gems/puppet-3.7.3/lib/puppet/parser/functions.rb +262 -0
  468. data/vendor/gems/puppet-3.7.3/lib/puppet/parser/functions/assert_type.rb +31 -0
  469. data/vendor/gems/puppet-3.7.3/lib/puppet/parser/functions/contain.rb +36 -0
  470. data/vendor/gems/puppet-3.7.3/lib/puppet/parser/functions/create_resources.rb +82 -0
  471. data/vendor/gems/puppet-3.7.3/lib/puppet/parser/functions/defined.rb +73 -0
  472. data/vendor/gems/puppet-3.7.3/lib/puppet/parser/functions/digest.rb +5 -0
  473. data/vendor/gems/puppet-3.7.3/lib/puppet/parser/functions/each.rb +48 -0
  474. data/vendor/gems/puppet-3.7.3/lib/puppet/parser/functions/epp.rb +45 -0
  475. data/vendor/gems/puppet-3.7.3/lib/puppet/parser/functions/extlookup.rb +153 -0
  476. data/vendor/gems/puppet-3.7.3/lib/puppet/parser/functions/fail.rb +4 -0
  477. data/vendor/gems/puppet-3.7.3/lib/puppet/parser/functions/file.rb +31 -0
  478. data/vendor/gems/puppet-3.7.3/lib/puppet/parser/functions/filter.rb +44 -0
  479. data/vendor/gems/puppet-3.7.3/lib/puppet/parser/functions/fqdn_rand.rb +21 -0
  480. data/vendor/gems/puppet-3.7.3/lib/puppet/parser/functions/generate.rb +37 -0
  481. data/vendor/gems/puppet-3.7.3/lib/puppet/parser/functions/hiera.rb +26 -0
  482. data/vendor/gems/puppet-3.7.3/lib/puppet/parser/functions/hiera_array.rb +27 -0
  483. data/vendor/gems/puppet-3.7.3/lib/puppet/parser/functions/hiera_hash.rb +29 -0
  484. data/vendor/gems/puppet-3.7.3/lib/puppet/parser/functions/hiera_include.rb +44 -0
  485. data/vendor/gems/puppet-3.7.3/lib/puppet/parser/functions/include.rb +35 -0
  486. data/vendor/gems/puppet-3.7.3/lib/puppet/parser/functions/inline_epp.rb +76 -0
  487. data/vendor/gems/puppet-3.7.3/lib/puppet/parser/functions/inline_template.rb +21 -0
  488. data/vendor/gems/puppet-3.7.3/lib/puppet/parser/functions/lookup.rb +144 -0
  489. data/vendor/gems/puppet-3.7.3/lib/puppet/parser/functions/map.rb +43 -0
  490. data/vendor/gems/puppet-3.7.3/lib/puppet/parser/functions/match.rb +28 -0
  491. data/vendor/gems/puppet-3.7.3/lib/puppet/parser/functions/md5.rb +5 -0
  492. data/vendor/gems/puppet-3.7.3/lib/puppet/parser/functions/realize.rb +14 -0
  493. data/vendor/gems/puppet-3.7.3/lib/puppet/parser/functions/reduce.rb +71 -0
  494. data/vendor/gems/puppet-3.7.3/lib/puppet/parser/functions/regsubst.rb +116 -0
  495. data/vendor/gems/puppet-3.7.3/lib/puppet/parser/functions/require.rb +61 -0
  496. data/vendor/gems/puppet-3.7.3/lib/puppet/parser/functions/search.rb +12 -0
  497. data/vendor/gems/puppet-3.7.3/lib/puppet/parser/functions/sha1.rb +5 -0
  498. data/vendor/gems/puppet-3.7.3/lib/puppet/parser/functions/shellquote.rb +61 -0
  499. data/vendor/gems/puppet-3.7.3/lib/puppet/parser/functions/slice.rb +48 -0
  500. data/vendor/gems/puppet-3.7.3/lib/puppet/parser/functions/split.rb +28 -0
  501. data/vendor/gems/puppet-3.7.3/lib/puppet/parser/functions/sprintf.rb +36 -0
  502. data/vendor/gems/puppet-3.7.3/lib/puppet/parser/functions/tag.rb +6 -0
  503. data/vendor/gems/puppet-3.7.3/lib/puppet/parser/functions/tagged.rb +18 -0
  504. data/vendor/gems/puppet-3.7.3/lib/puppet/parser/functions/template.rb +30 -0
  505. data/vendor/gems/puppet-3.7.3/lib/puppet/parser/functions/versioncmp.rb +30 -0
  506. data/vendor/gems/puppet-3.7.3/lib/puppet/parser/functions/with.rb +21 -0
  507. data/vendor/gems/puppet-3.7.3/lib/puppet/parser/grammar.ra +806 -0
  508. data/vendor/gems/puppet-3.7.3/lib/puppet/parser/lexer.rb +608 -0
  509. data/vendor/gems/puppet-3.7.3/lib/puppet/parser/makefile +8 -0
  510. data/vendor/gems/puppet-3.7.3/lib/puppet/parser/methods.rb +69 -0
  511. data/vendor/gems/puppet-3.7.3/lib/puppet/parser/parser.rb +2559 -0
  512. data/vendor/gems/puppet-3.7.3/lib/puppet/parser/parser_factory.rb +76 -0
  513. data/vendor/gems/puppet-3.7.3/lib/puppet/parser/parser_support.rb +195 -0
  514. data/vendor/gems/puppet-3.7.3/lib/puppet/parser/relationship.rb +62 -0
  515. data/vendor/gems/puppet-3.7.3/lib/puppet/parser/resource.rb +275 -0
  516. data/vendor/gems/puppet-3.7.3/lib/puppet/parser/resource/param.rb +25 -0
  517. data/vendor/gems/puppet-3.7.3/lib/puppet/parser/scope.rb +906 -0
  518. data/vendor/gems/puppet-3.7.3/lib/puppet/parser/templatewrapper.rb +127 -0
  519. data/vendor/gems/puppet-3.7.3/lib/puppet/parser/type_loader.rb +152 -0
  520. data/vendor/gems/puppet-3.7.3/lib/puppet/parser/yaml_trimmer.rb +7 -0
  521. data/vendor/gems/puppet-3.7.3/lib/puppet/pops.rb +118 -0
  522. data/vendor/gems/puppet-3.7.3/lib/puppet/pops/adaptable.rb +190 -0
  523. data/vendor/gems/puppet-3.7.3/lib/puppet/pops/adapters.rb +109 -0
  524. data/vendor/gems/puppet-3.7.3/lib/puppet/pops/binder/binder.rb +393 -0
  525. data/vendor/gems/puppet-3.7.3/lib/puppet/pops/binder/binder_issues.rb +122 -0
  526. data/vendor/gems/puppet-3.7.3/lib/puppet/pops/binder/bindings_checker.rb +197 -0
  527. data/vendor/gems/puppet-3.7.3/lib/puppet/pops/binder/bindings_composer.rb +175 -0
  528. data/vendor/gems/puppet-3.7.3/lib/puppet/pops/binder/bindings_factory.rb +805 -0
  529. data/vendor/gems/puppet-3.7.3/lib/puppet/pops/binder/bindings_label_provider.rb +43 -0
  530. data/vendor/gems/puppet-3.7.3/lib/puppet/pops/binder/bindings_loader.rb +88 -0
  531. data/vendor/gems/puppet-3.7.3/lib/puppet/pops/binder/bindings_model.rb +68 -0
  532. data/vendor/gems/puppet-3.7.3/lib/puppet/pops/binder/bindings_model_dumper.rb +187 -0
  533. data/vendor/gems/puppet-3.7.3/lib/puppet/pops/binder/bindings_model_meta.rb +215 -0
  534. data/vendor/gems/puppet-3.7.3/lib/puppet/pops/binder/bindings_validator_factory.rb +28 -0
  535. data/vendor/gems/puppet-3.7.3/lib/puppet/pops/binder/config/binder_config.rb +107 -0
  536. data/vendor/gems/puppet-3.7.3/lib/puppet/pops/binder/config/binder_config_checker.rb +142 -0
  537. data/vendor/gems/puppet-3.7.3/lib/puppet/pops/binder/config/diagnostic_producer.rb +32 -0
  538. data/vendor/gems/puppet-3.7.3/lib/puppet/pops/binder/config/issues.rb +86 -0
  539. data/vendor/gems/puppet-3.7.3/lib/puppet/pops/binder/injector.rb +767 -0
  540. data/vendor/gems/puppet-3.7.3/lib/puppet/pops/binder/injector_entry.rb +57 -0
  541. data/vendor/gems/puppet-3.7.3/lib/puppet/pops/binder/key_factory.rb +67 -0
  542. data/vendor/gems/puppet-3.7.3/lib/puppet/pops/binder/lookup.rb +199 -0
  543. data/vendor/gems/puppet-3.7.3/lib/puppet/pops/binder/producers.rb +826 -0
  544. data/vendor/gems/puppet-3.7.3/lib/puppet/pops/binder/scheme_handler/confdir_scheme.rb +34 -0
  545. data/vendor/gems/puppet-3.7.3/lib/puppet/pops/binder/scheme_handler/module_scheme.rb +84 -0
  546. data/vendor/gems/puppet-3.7.3/lib/puppet/pops/binder/scheme_handler/symbolic_scheme.rb +53 -0
  547. data/vendor/gems/puppet-3.7.3/lib/puppet/pops/binder/system_bindings.rb +60 -0
  548. data/vendor/gems/puppet-3.7.3/lib/puppet/pops/containment.rb +104 -0
  549. data/vendor/gems/puppet-3.7.3/lib/puppet/pops/evaluator/access_operator.rb +596 -0
  550. data/vendor/gems/puppet-3.7.3/lib/puppet/pops/evaluator/callable_mismatch_describer.rb +175 -0
  551. data/vendor/gems/puppet-3.7.3/lib/puppet/pops/evaluator/callable_signature.rb +100 -0
  552. data/vendor/gems/puppet-3.7.3/lib/puppet/pops/evaluator/closure.rb +228 -0
  553. data/vendor/gems/puppet-3.7.3/lib/puppet/pops/evaluator/compare_operator.rb +172 -0
  554. data/vendor/gems/puppet-3.7.3/lib/puppet/pops/evaluator/epp_evaluator.rb +88 -0
  555. data/vendor/gems/puppet-3.7.3/lib/puppet/pops/evaluator/evaluator_impl.rb +1115 -0
  556. data/vendor/gems/puppet-3.7.3/lib/puppet/pops/evaluator/external_syntax_support.rb +49 -0
  557. data/vendor/gems/puppet-3.7.3/lib/puppet/pops/evaluator/relationship_operator.rb +157 -0
  558. data/vendor/gems/puppet-3.7.3/lib/puppet/pops/evaluator/runtime3_support.rb +599 -0
  559. data/vendor/gems/puppet-3.7.3/lib/puppet/pops/functions/dispatch.rb +76 -0
  560. data/vendor/gems/puppet-3.7.3/lib/puppet/pops/functions/dispatcher.rb +70 -0
  561. data/vendor/gems/puppet-3.7.3/lib/puppet/pops/functions/function.rb +77 -0
  562. data/vendor/gems/puppet-3.7.3/lib/puppet/pops/issue_reporter.rb +87 -0
  563. data/vendor/gems/puppet-3.7.3/lib/puppet/pops/issues.rb +548 -0
  564. data/vendor/gems/puppet-3.7.3/lib/puppet/pops/label_provider.rb +76 -0
  565. data/vendor/gems/puppet-3.7.3/lib/puppet/pops/loader/base_loader.rb +102 -0
  566. data/vendor/gems/puppet-3.7.3/lib/puppet/pops/loader/dependency_loader.rb +60 -0
  567. data/vendor/gems/puppet-3.7.3/lib/puppet/pops/loader/gem_support.rb +49 -0
  568. data/vendor/gems/puppet-3.7.3/lib/puppet/pops/loader/loader.rb +180 -0
  569. data/vendor/gems/puppet-3.7.3/lib/puppet/pops/loader/loader_paths.rb +118 -0
  570. data/vendor/gems/puppet-3.7.3/lib/puppet/pops/loader/module_loaders.rb +256 -0
  571. data/vendor/gems/puppet-3.7.3/lib/puppet/pops/loader/null_loader.rb +44 -0
  572. data/vendor/gems/puppet-3.7.3/lib/puppet/pops/loader/ruby_function_instantiator.rb +34 -0
  573. data/vendor/gems/puppet-3.7.3/lib/puppet/pops/loader/simple_environment_loader.rb +20 -0
  574. data/vendor/gems/puppet-3.7.3/lib/puppet/pops/loader/static_loader.rb +79 -0
  575. data/vendor/gems/puppet-3.7.3/lib/puppet/pops/loader/uri_helper.rb +22 -0
  576. data/vendor/gems/puppet-3.7.3/lib/puppet/pops/loaders.rb +231 -0
  577. data/vendor/gems/puppet-3.7.3/lib/puppet/pops/model/ast_transformer.rb +643 -0
  578. data/vendor/gems/puppet-3.7.3/lib/puppet/pops/model/ast_tree_dumper.rb +386 -0
  579. data/vendor/gems/puppet-3.7.3/lib/puppet/pops/model/factory.rb +1055 -0
  580. data/vendor/gems/puppet-3.7.3/lib/puppet/pops/model/model.rb +114 -0
  581. data/vendor/gems/puppet-3.7.3/lib/puppet/pops/model/model_label_provider.rb +106 -0
  582. data/vendor/gems/puppet-3.7.3/lib/puppet/pops/model/model_meta.rb +576 -0
  583. data/vendor/gems/puppet-3.7.3/lib/puppet/pops/model/model_tree_dumper.rb +407 -0
  584. data/vendor/gems/puppet-3.7.3/lib/puppet/pops/model/tree_dumper.rb +59 -0
  585. data/vendor/gems/puppet-3.7.3/lib/puppet/pops/parser/code_merger.rb +17 -0
  586. data/vendor/gems/puppet-3.7.3/lib/puppet/pops/parser/egrammar.ra +757 -0
  587. data/vendor/gems/puppet-3.7.3/lib/puppet/pops/parser/eparser.rb +2655 -0
  588. data/vendor/gems/puppet-3.7.3/lib/puppet/pops/parser/epp_parser.rb +51 -0
  589. data/vendor/gems/puppet-3.7.3/lib/puppet/pops/parser/epp_support.rb +247 -0
  590. data/vendor/gems/puppet-3.7.3/lib/puppet/pops/parser/evaluating_parser.rb +140 -0
  591. data/vendor/gems/puppet-3.7.3/lib/puppet/pops/parser/heredoc_support.rb +139 -0
  592. data/vendor/gems/puppet-3.7.3/lib/puppet/pops/parser/interpolation_support.rb +231 -0
  593. data/vendor/gems/puppet-3.7.3/lib/puppet/pops/parser/lexer2.rb +696 -0
  594. data/vendor/gems/puppet-3.7.3/lib/puppet/pops/parser/lexer_support.rb +113 -0
  595. data/vendor/gems/puppet-3.7.3/lib/puppet/pops/parser/locatable.rb +23 -0
  596. data/vendor/gems/puppet-3.7.3/lib/puppet/pops/parser/locator.rb +291 -0
  597. data/vendor/gems/puppet-3.7.3/lib/puppet/pops/parser/parser_support.rb +242 -0
  598. data/vendor/gems/puppet-3.7.3/lib/puppet/pops/parser/slurp_support.rb +95 -0
  599. data/vendor/gems/puppet-3.7.3/lib/puppet/pops/patterns.rb +44 -0
  600. data/vendor/gems/puppet-3.7.3/lib/puppet/pops/semantic_error.rb +17 -0
  601. data/vendor/gems/puppet-3.7.3/lib/puppet/pops/types/class_loader.rb +129 -0
  602. data/vendor/gems/puppet-3.7.3/lib/puppet/pops/types/enumeration.rb +34 -0
  603. data/vendor/gems/puppet-3.7.3/lib/puppet/pops/types/type_calculator.rb +1703 -0
  604. data/vendor/gems/puppet-3.7.3/lib/puppet/pops/types/type_factory.rb +432 -0
  605. data/vendor/gems/puppet-3.7.3/lib/puppet/pops/types/type_parser.rb +475 -0
  606. data/vendor/gems/puppet-3.7.3/lib/puppet/pops/types/types.rb +397 -0
  607. data/vendor/gems/puppet-3.7.3/lib/puppet/pops/types/types_meta.rb +223 -0
  608. data/vendor/gems/puppet-3.7.3/lib/puppet/pops/utils.rb +142 -0
  609. data/vendor/gems/puppet-3.7.3/lib/puppet/pops/validation.rb +432 -0
  610. data/vendor/gems/puppet-3.7.3/lib/puppet/pops/validation/checker4_0.rb +760 -0
  611. data/vendor/gems/puppet-3.7.3/lib/puppet/pops/validation/validator_factory_4_0.rb +30 -0
  612. data/vendor/gems/puppet-3.7.3/lib/puppet/pops/visitable.rb +6 -0
  613. data/vendor/gems/puppet-3.7.3/lib/puppet/pops/visitor.rb +89 -0
  614. data/vendor/gems/puppet-3.7.3/lib/puppet/property.rb +617 -0
  615. data/vendor/gems/puppet-3.7.3/lib/puppet/property/boolean.rb +7 -0
  616. data/vendor/gems/puppet-3.7.3/lib/puppet/property/ensure.rb +105 -0
  617. data/vendor/gems/puppet-3.7.3/lib/puppet/property/keyvalue.rb +95 -0
  618. data/vendor/gems/puppet-3.7.3/lib/puppet/property/list.rb +78 -0
  619. data/vendor/gems/puppet-3.7.3/lib/puppet/property/ordered_list.rb +29 -0
  620. data/vendor/gems/puppet-3.7.3/lib/puppet/provider.rb +651 -0
  621. data/vendor/gems/puppet-3.7.3/lib/puppet/provider/aixobject.rb +392 -0
  622. data/vendor/gems/puppet-3.7.3/lib/puppet/provider/augeas/augeas.rb +509 -0
  623. data/vendor/gems/puppet-3.7.3/lib/puppet/provider/cisco.rb +9 -0
  624. data/vendor/gems/puppet-3.7.3/lib/puppet/provider/command.rb +25 -0
  625. data/vendor/gems/puppet-3.7.3/lib/puppet/provider/computer/computer.rb +20 -0
  626. data/vendor/gems/puppet-3.7.3/lib/puppet/provider/confine.rb +6 -0
  627. data/vendor/gems/puppet-3.7.3/lib/puppet/provider/cron/crontab.rb +260 -0
  628. data/vendor/gems/puppet-3.7.3/lib/puppet/provider/exec.rb +100 -0
  629. data/vendor/gems/puppet-3.7.3/lib/puppet/provider/exec/posix.rb +48 -0
  630. data/vendor/gems/puppet-3.7.3/lib/puppet/provider/exec/shell.rb +25 -0
  631. data/vendor/gems/puppet-3.7.3/lib/puppet/provider/exec/windows.rb +55 -0
  632. data/vendor/gems/puppet-3.7.3/lib/puppet/provider/file/posix.rb +136 -0
  633. data/vendor/gems/puppet-3.7.3/lib/puppet/provider/file/windows.rb +104 -0
  634. data/vendor/gems/puppet-3.7.3/lib/puppet/provider/group/aix.rb +141 -0
  635. data/vendor/gems/puppet-3.7.3/lib/puppet/provider/group/directoryservice.rb +12 -0
  636. data/vendor/gems/puppet-3.7.3/lib/puppet/provider/group/groupadd.rb +85 -0
  637. data/vendor/gems/puppet-3.7.3/lib/puppet/provider/group/ldap.rb +45 -0
  638. data/vendor/gems/puppet-3.7.3/lib/puppet/provider/group/pw.rb +48 -0
  639. data/vendor/gems/puppet-3.7.3/lib/puppet/provider/group/windows_adsi.rb +86 -0
  640. data/vendor/gems/puppet-3.7.3/lib/puppet/provider/host/parsed.rb +44 -0
  641. data/vendor/gems/puppet-3.7.3/lib/puppet/provider/interface/cisco.rb +27 -0
  642. data/vendor/gems/puppet-3.7.3/lib/puppet/provider/ldap.rb +137 -0
  643. data/vendor/gems/puppet-3.7.3/lib/puppet/provider/macauthorization/macauthorization.rb +309 -0
  644. data/vendor/gems/puppet-3.7.3/lib/puppet/provider/mailalias/aliases.rb +39 -0
  645. data/vendor/gems/puppet-3.7.3/lib/puppet/provider/maillist/mailman.rb +108 -0
  646. data/vendor/gems/puppet-3.7.3/lib/puppet/provider/mcx/mcxcontent.rb +172 -0
  647. data/vendor/gems/puppet-3.7.3/lib/puppet/provider/mount.rb +58 -0
  648. data/vendor/gems/puppet-3.7.3/lib/puppet/provider/mount/parsed.rb +123 -0
  649. data/vendor/gems/puppet-3.7.3/lib/puppet/provider/naginator.rb +63 -0
  650. data/vendor/gems/puppet-3.7.3/lib/puppet/provider/nameservice.rb +292 -0
  651. data/vendor/gems/puppet-3.7.3/lib/puppet/provider/nameservice/directoryservice.rb +588 -0
  652. data/vendor/gems/puppet-3.7.3/lib/puppet/provider/nameservice/objectadd.rb +33 -0
  653. data/vendor/gems/puppet-3.7.3/lib/puppet/provider/nameservice/pw.rb +21 -0
  654. data/vendor/gems/puppet-3.7.3/lib/puppet/provider/network_device.rb +68 -0
  655. data/vendor/gems/puppet-3.7.3/lib/puppet/provider/package.rb +52 -0
  656. data/vendor/gems/puppet-3.7.3/lib/puppet/provider/package/aix.rb +152 -0
  657. data/vendor/gems/puppet-3.7.3/lib/puppet/provider/package/appdmg.rb +106 -0
  658. data/vendor/gems/puppet-3.7.3/lib/puppet/provider/package/apple.rb +47 -0
  659. data/vendor/gems/puppet-3.7.3/lib/puppet/provider/package/apt.rb +116 -0
  660. data/vendor/gems/puppet-3.7.3/lib/puppet/provider/package/aptitude.rb +29 -0
  661. data/vendor/gems/puppet-3.7.3/lib/puppet/provider/package/aptrpm.rb +83 -0
  662. data/vendor/gems/puppet-3.7.3/lib/puppet/provider/package/blastwave.rb +111 -0
  663. data/vendor/gems/puppet-3.7.3/lib/puppet/provider/package/dpkg.rb +165 -0
  664. data/vendor/gems/puppet-3.7.3/lib/puppet/provider/package/fink.rb +79 -0
  665. data/vendor/gems/puppet-3.7.3/lib/puppet/provider/package/freebsd.rb +47 -0
  666. data/vendor/gems/puppet-3.7.3/lib/puppet/provider/package/gem.rb +135 -0
  667. data/vendor/gems/puppet-3.7.3/lib/puppet/provider/package/hpux.rb +44 -0
  668. data/vendor/gems/puppet-3.7.3/lib/puppet/provider/package/macports.rb +107 -0
  669. data/vendor/gems/puppet-3.7.3/lib/puppet/provider/package/msi.rb +125 -0
  670. data/vendor/gems/puppet-3.7.3/lib/puppet/provider/package/nim.rb +280 -0
  671. data/vendor/gems/puppet-3.7.3/lib/puppet/provider/package/openbsd.rb +228 -0
  672. data/vendor/gems/puppet-3.7.3/lib/puppet/provider/package/opkg.rb +76 -0
  673. data/vendor/gems/puppet-3.7.3/lib/puppet/provider/package/pacman.rb +234 -0
  674. data/vendor/gems/puppet-3.7.3/lib/puppet/provider/package/pip.rb +119 -0
  675. data/vendor/gems/puppet-3.7.3/lib/puppet/provider/package/pkg.rb +201 -0
  676. data/vendor/gems/puppet-3.7.3/lib/puppet/provider/package/pkgdmg.rb +149 -0
  677. data/vendor/gems/puppet-3.7.3/lib/puppet/provider/package/pkgin.rb +87 -0
  678. data/vendor/gems/puppet-3.7.3/lib/puppet/provider/package/pkgutil.rb +186 -0
  679. data/vendor/gems/puppet-3.7.3/lib/puppet/provider/package/portage.rb +149 -0
  680. data/vendor/gems/puppet-3.7.3/lib/puppet/provider/package/ports.rb +94 -0
  681. data/vendor/gems/puppet-3.7.3/lib/puppet/provider/package/portupgrade.rb +241 -0
  682. data/vendor/gems/puppet-3.7.3/lib/puppet/provider/package/rpm.rb +187 -0
  683. data/vendor/gems/puppet-3.7.3/lib/puppet/provider/package/rug.rb +52 -0
  684. data/vendor/gems/puppet-3.7.3/lib/puppet/provider/package/sun.rb +132 -0
  685. data/vendor/gems/puppet-3.7.3/lib/puppet/provider/package/sunfreeware.rb +9 -0
  686. data/vendor/gems/puppet-3.7.3/lib/puppet/provider/package/up2date.rb +40 -0
  687. data/vendor/gems/puppet-3.7.3/lib/puppet/provider/package/urpmi.rb +55 -0
  688. data/vendor/gems/puppet-3.7.3/lib/puppet/provider/package/windows.rb +113 -0
  689. data/vendor/gems/puppet-3.7.3/lib/puppet/provider/package/windows/exe_package.rb +70 -0
  690. data/vendor/gems/puppet-3.7.3/lib/puppet/provider/package/windows/msi_package.rb +62 -0
  691. data/vendor/gems/puppet-3.7.3/lib/puppet/provider/package/windows/package.rb +92 -0
  692. data/vendor/gems/puppet-3.7.3/lib/puppet/provider/package/yum.rb +199 -0
  693. data/vendor/gems/puppet-3.7.3/lib/puppet/provider/package/yumhelper.py +159 -0
  694. data/vendor/gems/puppet-3.7.3/lib/puppet/provider/package/zypper.rb +90 -0
  695. data/vendor/gems/puppet-3.7.3/lib/puppet/provider/parsedfile.rb +459 -0
  696. data/vendor/gems/puppet-3.7.3/lib/puppet/provider/scheduled_task/win32_taskscheduler.rb +558 -0
  697. data/vendor/gems/puppet-3.7.3/lib/puppet/provider/selboolean/getsetsebool.rb +47 -0
  698. data/vendor/gems/puppet-3.7.3/lib/puppet/provider/selmodule/semodule.rb +134 -0
  699. data/vendor/gems/puppet-3.7.3/lib/puppet/provider/service/base.rb +106 -0
  700. data/vendor/gems/puppet-3.7.3/lib/puppet/provider/service/bsd.rb +51 -0
  701. data/vendor/gems/puppet-3.7.3/lib/puppet/provider/service/daemontools.rb +194 -0
  702. data/vendor/gems/puppet-3.7.3/lib/puppet/provider/service/debian.rb +64 -0
  703. data/vendor/gems/puppet-3.7.3/lib/puppet/provider/service/freebsd.rb +143 -0
  704. data/vendor/gems/puppet-3.7.3/lib/puppet/provider/service/gentoo.rb +45 -0
  705. data/vendor/gems/puppet-3.7.3/lib/puppet/provider/service/init.rb +169 -0
  706. data/vendor/gems/puppet-3.7.3/lib/puppet/provider/service/launchd.rb +353 -0
  707. data/vendor/gems/puppet-3.7.3/lib/puppet/provider/service/openbsd.rb +342 -0
  708. data/vendor/gems/puppet-3.7.3/lib/puppet/provider/service/openrc.rb +71 -0
  709. data/vendor/gems/puppet-3.7.3/lib/puppet/provider/service/openwrt.rb +36 -0
  710. data/vendor/gems/puppet-3.7.3/lib/puppet/provider/service/redhat.rb +67 -0
  711. data/vendor/gems/puppet-3.7.3/lib/puppet/provider/service/runit.rb +111 -0
  712. data/vendor/gems/puppet-3.7.3/lib/puppet/provider/service/service.rb +42 -0
  713. data/vendor/gems/puppet-3.7.3/lib/puppet/provider/service/smf.rb +116 -0
  714. data/vendor/gems/puppet-3.7.3/lib/puppet/provider/service/src.rb +120 -0
  715. data/vendor/gems/puppet-3.7.3/lib/puppet/provider/service/systemd.rb +65 -0
  716. data/vendor/gems/puppet-3.7.3/lib/puppet/provider/service/upstart.rb +355 -0
  717. data/vendor/gems/puppet-3.7.3/lib/puppet/provider/service/windows.rb +106 -0
  718. data/vendor/gems/puppet-3.7.3/lib/puppet/provider/ssh_authorized_key/parsed.rb +105 -0
  719. data/vendor/gems/puppet-3.7.3/lib/puppet/provider/sshkey/parsed.rb +40 -0
  720. data/vendor/gems/puppet-3.7.3/lib/puppet/provider/user/aix.rb +369 -0
  721. data/vendor/gems/puppet-3.7.3/lib/puppet/provider/user/directoryservice.rb +685 -0
  722. data/vendor/gems/puppet-3.7.3/lib/puppet/provider/user/hpux.rb +66 -0
  723. data/vendor/gems/puppet-3.7.3/lib/puppet/provider/user/ldap.rb +128 -0
  724. data/vendor/gems/puppet-3.7.3/lib/puppet/provider/user/pw.rb +97 -0
  725. data/vendor/gems/puppet-3.7.3/lib/puppet/provider/user/user_role_add.rb +210 -0
  726. data/vendor/gems/puppet-3.7.3/lib/puppet/provider/user/useradd.rb +231 -0
  727. data/vendor/gems/puppet-3.7.3/lib/puppet/provider/user/windows_adsi.rb +99 -0
  728. data/vendor/gems/puppet-3.7.3/lib/puppet/provider/vlan/cisco.rb +28 -0
  729. data/vendor/gems/puppet-3.7.3/lib/puppet/provider/yumrepo/inifile.rb +300 -0
  730. data/vendor/gems/puppet-3.7.3/lib/puppet/provider/zfs/zfs.rb +83 -0
  731. data/vendor/gems/puppet-3.7.3/lib/puppet/provider/zone/solaris.rb +361 -0
  732. data/vendor/gems/puppet-3.7.3/lib/puppet/provider/zpool/zpool.rb +120 -0
  733. data/vendor/gems/puppet-3.7.3/lib/puppet/rails.rb +139 -0
  734. data/vendor/gems/puppet-3.7.3/lib/puppet/rails/benchmark.rb +63 -0
  735. data/vendor/gems/puppet-3.7.3/lib/puppet/rails/database/001_add_created_at_to_all_tables.rb +13 -0
  736. data/vendor/gems/puppet-3.7.3/lib/puppet/rails/database/002_remove_duplicated_index_on_all_tables.rb +13 -0
  737. data/vendor/gems/puppet-3.7.3/lib/puppet/rails/database/003_add_environment_to_host.rb +9 -0
  738. data/vendor/gems/puppet-3.7.3/lib/puppet/rails/database/004_add_inventory_service_tables.rb +36 -0
  739. data/vendor/gems/puppet-3.7.3/lib/puppet/rails/database/schema.rb +136 -0
  740. data/vendor/gems/puppet-3.7.3/lib/puppet/rails/fact_name.rb +7 -0
  741. data/vendor/gems/puppet-3.7.3/lib/puppet/rails/fact_value.rb +10 -0
  742. data/vendor/gems/puppet-3.7.3/lib/puppet/rails/host.rb +258 -0
  743. data/vendor/gems/puppet-3.7.3/lib/puppet/rails/inventory_fact.rb +5 -0
  744. data/vendor/gems/puppet-3.7.3/lib/puppet/rails/inventory_node.rb +43 -0
  745. data/vendor/gems/puppet-3.7.3/lib/puppet/rails/param_name.rb +25 -0
  746. data/vendor/gems/puppet-3.7.3/lib/puppet/rails/param_value.rb +74 -0
  747. data/vendor/gems/puppet-3.7.3/lib/puppet/rails/puppet_tag.rb +10 -0
  748. data/vendor/gems/puppet-3.7.3/lib/puppet/rails/resource.rb +235 -0
  749. data/vendor/gems/puppet-3.7.3/lib/puppet/rails/resource_tag.rb +26 -0
  750. data/vendor/gems/puppet-3.7.3/lib/puppet/rails/source_file.rb +8 -0
  751. data/vendor/gems/puppet-3.7.3/lib/puppet/reference/configuration.rb +73 -0
  752. data/vendor/gems/puppet-3.7.3/lib/puppet/reference/function.rb +17 -0
  753. data/vendor/gems/puppet-3.7.3/lib/puppet/reference/indirection.rb +71 -0
  754. data/vendor/gems/puppet-3.7.3/lib/puppet/reference/metaparameter.rb +44 -0
  755. data/vendor/gems/puppet-3.7.3/lib/puppet/reference/providers.rb +119 -0
  756. data/vendor/gems/puppet-3.7.3/lib/puppet/reference/report.rb +23 -0
  757. data/vendor/gems/puppet-3.7.3/lib/puppet/reference/type.rb +116 -0
  758. data/vendor/gems/puppet-3.7.3/lib/puppet/relationship.rb +103 -0
  759. data/vendor/gems/puppet-3.7.3/lib/puppet/reports.rb +89 -0
  760. data/vendor/gems/puppet-3.7.3/lib/puppet/reports/http.rb +31 -0
  761. data/vendor/gems/puppet-3.7.3/lib/puppet/reports/log.rb +14 -0
  762. data/vendor/gems/puppet-3.7.3/lib/puppet/reports/rrdgraph.rb +128 -0
  763. data/vendor/gems/puppet-3.7.3/lib/puppet/reports/store.rb +68 -0
  764. data/vendor/gems/puppet-3.7.3/lib/puppet/reports/tagmail.rb +179 -0
  765. data/vendor/gems/puppet-3.7.3/lib/puppet/resource.rb +605 -0
  766. data/vendor/gems/puppet-3.7.3/lib/puppet/resource/catalog.rb +554 -0
  767. data/vendor/gems/puppet-3.7.3/lib/puppet/resource/status.rb +155 -0
  768. data/vendor/gems/puppet-3.7.3/lib/puppet/resource/type.rb +413 -0
  769. data/vendor/gems/puppet-3.7.3/lib/puppet/resource/type_collection.rb +230 -0
  770. data/vendor/gems/puppet-3.7.3/lib/puppet/resource/type_collection_helper.rb +7 -0
  771. data/vendor/gems/puppet-3.7.3/lib/puppet/run.rb +109 -0
  772. data/vendor/gems/puppet-3.7.3/lib/puppet/scheduler.rb +16 -0
  773. data/vendor/gems/puppet-3.7.3/lib/puppet/scheduler/job.rb +53 -0
  774. data/vendor/gems/puppet-3.7.3/lib/puppet/scheduler/scheduler.rb +44 -0
  775. data/vendor/gems/puppet-3.7.3/lib/puppet/scheduler/splay_job.rb +32 -0
  776. data/vendor/gems/puppet-3.7.3/lib/puppet/scheduler/timer.rb +13 -0
  777. data/vendor/gems/puppet-3.7.3/lib/puppet/settings.rb +1442 -0
  778. data/vendor/gems/puppet-3.7.3/lib/puppet/settings/array_setting.rb +17 -0
  779. data/vendor/gems/puppet-3.7.3/lib/puppet/settings/autosign_setting.rb +22 -0
  780. data/vendor/gems/puppet-3.7.3/lib/puppet/settings/base_setting.rb +195 -0
  781. data/vendor/gems/puppet-3.7.3/lib/puppet/settings/boolean_setting.rb +32 -0
  782. data/vendor/gems/puppet-3.7.3/lib/puppet/settings/config_file.rb +139 -0
  783. data/vendor/gems/puppet-3.7.3/lib/puppet/settings/directory_setting.rb +12 -0
  784. data/vendor/gems/puppet-3.7.3/lib/puppet/settings/duration_setting.rb +32 -0
  785. data/vendor/gems/puppet-3.7.3/lib/puppet/settings/enum_setting.rb +16 -0
  786. data/vendor/gems/puppet-3.7.3/lib/puppet/settings/environment_conf.rb +175 -0
  787. data/vendor/gems/puppet-3.7.3/lib/puppet/settings/errors.rb +11 -0
  788. data/vendor/gems/puppet-3.7.3/lib/puppet/settings/file_or_directory_setting.rb +34 -0
  789. data/vendor/gems/puppet-3.7.3/lib/puppet/settings/file_setting.rb +234 -0
  790. data/vendor/gems/puppet-3.7.3/lib/puppet/settings/ini_file.rb +171 -0
  791. data/vendor/gems/puppet-3.7.3/lib/puppet/settings/path_setting.rb +8 -0
  792. data/vendor/gems/puppet-3.7.3/lib/puppet/settings/priority_setting.rb +42 -0
  793. data/vendor/gems/puppet-3.7.3/lib/puppet/settings/string_setting.rb +9 -0
  794. data/vendor/gems/puppet-3.7.3/lib/puppet/settings/terminus_setting.rb +14 -0
  795. data/vendor/gems/puppet-3.7.3/lib/puppet/settings/ttl_setting.rb +48 -0
  796. data/vendor/gems/puppet-3.7.3/lib/puppet/settings/value_translator.rb +15 -0
  797. data/vendor/gems/puppet-3.7.3/lib/puppet/ssl.rb +13 -0
  798. data/vendor/gems/puppet-3.7.3/lib/puppet/ssl/base.rb +140 -0
  799. data/vendor/gems/puppet-3.7.3/lib/puppet/ssl/certificate.rb +65 -0
  800. data/vendor/gems/puppet-3.7.3/lib/puppet/ssl/certificate_authority.rb +517 -0
  801. data/vendor/gems/puppet-3.7.3/lib/puppet/ssl/certificate_authority/autosign_command.rb +45 -0
  802. data/vendor/gems/puppet-3.7.3/lib/puppet/ssl/certificate_authority/interface.rb +178 -0
  803. data/vendor/gems/puppet-3.7.3/lib/puppet/ssl/certificate_factory.rb +219 -0
  804. data/vendor/gems/puppet-3.7.3/lib/puppet/ssl/certificate_request.rb +299 -0
  805. data/vendor/gems/puppet-3.7.3/lib/puppet/ssl/certificate_request_attributes.rb +37 -0
  806. data/vendor/gems/puppet-3.7.3/lib/puppet/ssl/certificate_revocation_list.rb +110 -0
  807. data/vendor/gems/puppet-3.7.3/lib/puppet/ssl/certificate_signer.rb +22 -0
  808. data/vendor/gems/puppet-3.7.3/lib/puppet/ssl/configuration.rb +64 -0
  809. data/vendor/gems/puppet-3.7.3/lib/puppet/ssl/digest.rb +20 -0
  810. data/vendor/gems/puppet-3.7.3/lib/puppet/ssl/host.rb +372 -0
  811. data/vendor/gems/puppet-3.7.3/lib/puppet/ssl/inventory.rb +55 -0
  812. data/vendor/gems/puppet-3.7.3/lib/puppet/ssl/key.rb +59 -0
  813. data/vendor/gems/puppet-3.7.3/lib/puppet/ssl/oids.rb +78 -0
  814. data/vendor/gems/puppet-3.7.3/lib/puppet/ssl/validator.rb +60 -0
  815. data/vendor/gems/puppet-3.7.3/lib/puppet/ssl/validator/default_validator.rb +175 -0
  816. data/vendor/gems/puppet-3.7.3/lib/puppet/ssl/validator/no_validator.rb +20 -0
  817. data/vendor/gems/puppet-3.7.3/lib/puppet/status.rb +45 -0
  818. data/vendor/gems/puppet-3.7.3/lib/puppet/test/test_helper.rb +243 -0
  819. data/vendor/gems/puppet-3.7.3/lib/puppet/transaction.rb +370 -0
  820. data/vendor/gems/puppet-3.7.3/lib/puppet/transaction/additional_resource_generator.rb +126 -0
  821. data/vendor/gems/puppet-3.7.3/lib/puppet/transaction/event.rb +107 -0
  822. data/vendor/gems/puppet-3.7.3/lib/puppet/transaction/event_manager.rb +122 -0
  823. data/vendor/gems/puppet-3.7.3/lib/puppet/transaction/report.rb +383 -0
  824. data/vendor/gems/puppet-3.7.3/lib/puppet/transaction/resource_harness.rb +251 -0
  825. data/vendor/gems/puppet-3.7.3/lib/puppet/type.rb +2452 -0
  826. data/vendor/gems/puppet-3.7.3/lib/puppet/type/augeas.rb +201 -0
  827. data/vendor/gems/puppet-3.7.3/lib/puppet/type/component.rb +77 -0
  828. data/vendor/gems/puppet-3.7.3/lib/puppet/type/computer.rb +66 -0
  829. data/vendor/gems/puppet-3.7.3/lib/puppet/type/cron.rb +488 -0
  830. data/vendor/gems/puppet-3.7.3/lib/puppet/type/exec.rb +592 -0
  831. data/vendor/gems/puppet-3.7.3/lib/puppet/type/file.rb +933 -0
  832. data/vendor/gems/puppet-3.7.3/lib/puppet/type/file/checksum.rb +43 -0
  833. data/vendor/gems/puppet-3.7.3/lib/puppet/type/file/content.rb +241 -0
  834. data/vendor/gems/puppet-3.7.3/lib/puppet/type/file/ctime.rb +20 -0
  835. data/vendor/gems/puppet-3.7.3/lib/puppet/type/file/ensure.rb +189 -0
  836. data/vendor/gems/puppet-3.7.3/lib/puppet/type/file/group.rb +41 -0
  837. data/vendor/gems/puppet-3.7.3/lib/puppet/type/file/mode.rb +168 -0
  838. data/vendor/gems/puppet-3.7.3/lib/puppet/type/file/mtime.rb +18 -0
  839. data/vendor/gems/puppet-3.7.3/lib/puppet/type/file/owner.rb +44 -0
  840. data/vendor/gems/puppet-3.7.3/lib/puppet/type/file/selcontext.rb +124 -0
  841. data/vendor/gems/puppet-3.7.3/lib/puppet/type/file/source.rb +259 -0
  842. data/vendor/gems/puppet-3.7.3/lib/puppet/type/file/target.rb +87 -0
  843. data/vendor/gems/puppet-3.7.3/lib/puppet/type/file/type.rb +19 -0
  844. data/vendor/gems/puppet-3.7.3/lib/puppet/type/filebucket.rb +122 -0
  845. data/vendor/gems/puppet-3.7.3/lib/puppet/type/group.rb +188 -0
  846. data/vendor/gems/puppet-3.7.3/lib/puppet/type/host.rb +86 -0
  847. data/vendor/gems/puppet-3.7.3/lib/puppet/type/interface.rb +116 -0
  848. data/vendor/gems/puppet-3.7.3/lib/puppet/type/k5login.rb +88 -0
  849. data/vendor/gems/puppet-3.7.3/lib/puppet/type/macauthorization.rb +167 -0
  850. data/vendor/gems/puppet-3.7.3/lib/puppet/type/mailalias.rb +48 -0
  851. data/vendor/gems/puppet-3.7.3/lib/puppet/type/maillist.rb +62 -0
  852. data/vendor/gems/puppet-3.7.3/lib/puppet/type/mcx.rb +98 -0
  853. data/vendor/gems/puppet-3.7.3/lib/puppet/type/mount.rb +286 -0
  854. data/vendor/gems/puppet-3.7.3/lib/puppet/type/nagios_command.rb +3 -0
  855. data/vendor/gems/puppet-3.7.3/lib/puppet/type/nagios_contact.rb +3 -0
  856. data/vendor/gems/puppet-3.7.3/lib/puppet/type/nagios_contactgroup.rb +3 -0
  857. data/vendor/gems/puppet-3.7.3/lib/puppet/type/nagios_host.rb +3 -0
  858. data/vendor/gems/puppet-3.7.3/lib/puppet/type/nagios_hostdependency.rb +3 -0
  859. data/vendor/gems/puppet-3.7.3/lib/puppet/type/nagios_hostescalation.rb +3 -0
  860. data/vendor/gems/puppet-3.7.3/lib/puppet/type/nagios_hostextinfo.rb +3 -0
  861. data/vendor/gems/puppet-3.7.3/lib/puppet/type/nagios_hostgroup.rb +3 -0
  862. data/vendor/gems/puppet-3.7.3/lib/puppet/type/nagios_service.rb +3 -0
  863. data/vendor/gems/puppet-3.7.3/lib/puppet/type/nagios_servicedependency.rb +3 -0
  864. data/vendor/gems/puppet-3.7.3/lib/puppet/type/nagios_serviceescalation.rb +3 -0
  865. data/vendor/gems/puppet-3.7.3/lib/puppet/type/nagios_serviceextinfo.rb +3 -0
  866. data/vendor/gems/puppet-3.7.3/lib/puppet/type/nagios_servicegroup.rb +3 -0
  867. data/vendor/gems/puppet-3.7.3/lib/puppet/type/nagios_timeperiod.rb +3 -0
  868. data/vendor/gems/puppet-3.7.3/lib/puppet/type/notify.rb +44 -0
  869. data/vendor/gems/puppet-3.7.3/lib/puppet/type/package.rb +466 -0
  870. data/vendor/gems/puppet-3.7.3/lib/puppet/type/resources.rb +187 -0
  871. data/vendor/gems/puppet-3.7.3/lib/puppet/type/router.rb +17 -0
  872. data/vendor/gems/puppet-3.7.3/lib/puppet/type/schedule.rb +469 -0
  873. data/vendor/gems/puppet-3.7.3/lib/puppet/type/scheduled_task.rb +169 -0
  874. data/vendor/gems/puppet-3.7.3/lib/puppet/type/selboolean.rb +26 -0
  875. data/vendor/gems/puppet-3.7.3/lib/puppet/type/selmodule.rb +59 -0
  876. data/vendor/gems/puppet-3.7.3/lib/puppet/type/service.rb +234 -0
  877. data/vendor/gems/puppet-3.7.3/lib/puppet/type/ssh_authorized_key.rb +153 -0
  878. data/vendor/gems/puppet-3.7.3/lib/puppet/type/sshkey.rb +73 -0
  879. data/vendor/gems/puppet-3.7.3/lib/puppet/type/stage.rb +27 -0
  880. data/vendor/gems/puppet-3.7.3/lib/puppet/type/tidy.rb +324 -0
  881. data/vendor/gems/puppet-3.7.3/lib/puppet/type/user.rb +698 -0
  882. data/vendor/gems/puppet-3.7.3/lib/puppet/type/vlan.rb +26 -0
  883. data/vendor/gems/puppet-3.7.3/lib/puppet/type/whit.rb +34 -0
  884. data/vendor/gems/puppet-3.7.3/lib/puppet/type/yumrepo.rb +363 -0
  885. data/vendor/gems/puppet-3.7.3/lib/puppet/type/zfs.rb +150 -0
  886. data/vendor/gems/puppet-3.7.3/lib/puppet/type/zone.rb +382 -0
  887. data/vendor/gems/puppet-3.7.3/lib/puppet/type/zpool.rb +91 -0
  888. data/vendor/gems/puppet-3.7.3/lib/puppet/util.rb +554 -0
  889. data/vendor/gems/puppet-3.7.3/lib/puppet/util/autoload.rb +231 -0
  890. data/vendor/gems/puppet-3.7.3/lib/puppet/util/backups.rb +86 -0
  891. data/vendor/gems/puppet-3.7.3/lib/puppet/util/cacher.rb +74 -0
  892. data/vendor/gems/puppet-3.7.3/lib/puppet/util/checksums.rb +202 -0
  893. data/vendor/gems/puppet-3.7.3/lib/puppet/util/classgen.rb +236 -0
  894. data/vendor/gems/puppet-3.7.3/lib/puppet/util/colors.rb +217 -0
  895. data/vendor/gems/puppet-3.7.3/lib/puppet/util/command_line.rb +199 -0
  896. data/vendor/gems/puppet-3.7.3/lib/puppet/util/command_line/puppet_option_parser.rb +87 -0
  897. data/vendor/gems/puppet-3.7.3/lib/puppet/util/command_line/trollop.rb +824 -0
  898. data/vendor/gems/puppet-3.7.3/lib/puppet/util/constant_inflector.rb +24 -0
  899. data/vendor/gems/puppet-3.7.3/lib/puppet/util/diff.rb +79 -0
  900. data/vendor/gems/puppet-3.7.3/lib/puppet/util/docs.rb +128 -0
  901. data/vendor/gems/puppet-3.7.3/lib/puppet/util/errors.rb +106 -0
  902. data/vendor/gems/puppet-3.7.3/lib/puppet/util/execution.rb +327 -0
  903. data/vendor/gems/puppet-3.7.3/lib/puppet/util/execution_stub.rb +26 -0
  904. data/vendor/gems/puppet-3.7.3/lib/puppet/util/feature.rb +97 -0
  905. data/vendor/gems/puppet-3.7.3/lib/puppet/util/file_watcher.rb +28 -0
  906. data/vendor/gems/puppet-3.7.3/lib/puppet/util/fileparsing.rb +376 -0
  907. data/vendor/gems/puppet-3.7.3/lib/puppet/util/filetype.rb +303 -0
  908. data/vendor/gems/puppet-3.7.3/lib/puppet/util/http_proxy.rb +65 -0
  909. data/vendor/gems/puppet-3.7.3/lib/puppet/util/inifile.rb +341 -0
  910. data/vendor/gems/puppet-3.7.3/lib/puppet/util/inline_docs.rb +26 -0
  911. data/vendor/gems/puppet-3.7.3/lib/puppet/util/instance_loader.rb +81 -0
  912. data/vendor/gems/puppet-3.7.3/lib/puppet/util/instrumentation.rb +152 -0
  913. data/vendor/gems/puppet-3.7.3/lib/puppet/util/instrumentation/data.rb +46 -0
  914. data/vendor/gems/puppet-3.7.3/lib/puppet/util/instrumentation/indirection_probe.rb +41 -0
  915. data/vendor/gems/puppet-3.7.3/lib/puppet/util/instrumentation/instrumentable.rb +136 -0
  916. data/vendor/gems/puppet-3.7.3/lib/puppet/util/instrumentation/listener.rb +72 -0
  917. data/vendor/gems/puppet-3.7.3/lib/puppet/util/instrumentation/listeners/log.rb +23 -0
  918. data/vendor/gems/puppet-3.7.3/lib/puppet/util/instrumentation/listeners/performance.rb +24 -0
  919. data/vendor/gems/puppet-3.7.3/lib/puppet/util/json_lockfile.rb +44 -0
  920. data/vendor/gems/puppet-3.7.3/lib/puppet/util/ldap.rb +2 -0
  921. data/vendor/gems/puppet-3.7.3/lib/puppet/util/ldap/connection.rb +71 -0
  922. data/vendor/gems/puppet-3.7.3/lib/puppet/util/ldap/generator.rb +42 -0
  923. data/vendor/gems/puppet-3.7.3/lib/puppet/util/ldap/manager.rb +278 -0
  924. data/vendor/gems/puppet-3.7.3/lib/puppet/util/libuser.conf +15 -0
  925. data/vendor/gems/puppet-3.7.3/lib/puppet/util/libuser.rb +12 -0
  926. data/vendor/gems/puppet-3.7.3/lib/puppet/util/limits.rb +12 -0
  927. data/vendor/gems/puppet-3.7.3/lib/puppet/util/lockfile.rb +66 -0
  928. data/vendor/gems/puppet-3.7.3/lib/puppet/util/log.rb +343 -0
  929. data/vendor/gems/puppet-3.7.3/lib/puppet/util/log/destination.rb +49 -0
  930. data/vendor/gems/puppet-3.7.3/lib/puppet/util/log/destinations.rb +232 -0
  931. data/vendor/gems/puppet-3.7.3/lib/puppet/util/log/rate_limited_logger.rb +40 -0
  932. data/vendor/gems/puppet-3.7.3/lib/puppet/util/logging.rb +181 -0
  933. data/vendor/gems/puppet-3.7.3/lib/puppet/util/metaid.rb +21 -0
  934. data/vendor/gems/puppet-3.7.3/lib/puppet/util/methodhelper.rb +32 -0
  935. data/vendor/gems/puppet-3.7.3/lib/puppet/util/metric.rb +210 -0
  936. data/vendor/gems/puppet-3.7.3/lib/puppet/util/monkey_patches.rb +225 -0
  937. data/vendor/gems/puppet-3.7.3/lib/puppet/util/monkey_patches/lines.rb +13 -0
  938. data/vendor/gems/puppet-3.7.3/lib/puppet/util/nagios_maker.rb +85 -0
  939. data/vendor/gems/puppet-3.7.3/lib/puppet/util/network_device.rb +17 -0
  940. data/vendor/gems/puppet-3.7.3/lib/puppet/util/network_device/base.rb +27 -0
  941. data/vendor/gems/puppet-3.7.3/lib/puppet/util/network_device/cisco.rb +4 -0
  942. data/vendor/gems/puppet-3.7.3/lib/puppet/util/network_device/cisco/device.rb +267 -0
  943. data/vendor/gems/puppet-3.7.3/lib/puppet/util/network_device/cisco/facts.rb +72 -0
  944. data/vendor/gems/puppet-3.7.3/lib/puppet/util/network_device/cisco/interface.rb +82 -0
  945. data/vendor/gems/puppet-3.7.3/lib/puppet/util/network_device/config.rb +93 -0
  946. data/vendor/gems/puppet-3.7.3/lib/puppet/util/network_device/ipcalc.rb +68 -0
  947. data/vendor/gems/puppet-3.7.3/lib/puppet/util/network_device/transport.rb +5 -0
  948. data/vendor/gems/puppet-3.7.3/lib/puppet/util/network_device/transport/base.rb +26 -0
  949. data/vendor/gems/puppet-3.7.3/lib/puppet/util/network_device/transport/ssh.rb +122 -0
  950. data/vendor/gems/puppet-3.7.3/lib/puppet/util/network_device/transport/telnet.rb +44 -0
  951. data/vendor/gems/puppet-3.7.3/lib/puppet/util/package.rb +31 -0
  952. data/vendor/gems/puppet-3.7.3/lib/puppet/util/pidlock.rb +62 -0
  953. data/vendor/gems/puppet-3.7.3/lib/puppet/util/platform.rb +22 -0
  954. data/vendor/gems/puppet-3.7.3/lib/puppet/util/plugins.rb +82 -0
  955. data/vendor/gems/puppet-3.7.3/lib/puppet/util/posix.rb +137 -0
  956. data/vendor/gems/puppet-3.7.3/lib/puppet/util/profiler.rb +53 -0
  957. data/vendor/gems/puppet-3.7.3/lib/puppet/util/profiler/aggregate.rb +85 -0
  958. data/vendor/gems/puppet-3.7.3/lib/puppet/util/profiler/around_profiler.rb +67 -0
  959. data/vendor/gems/puppet-3.7.3/lib/puppet/util/profiler/logging.rb +48 -0
  960. data/vendor/gems/puppet-3.7.3/lib/puppet/util/profiler/object_counts.rb +17 -0
  961. data/vendor/gems/puppet-3.7.3/lib/puppet/util/profiler/wall_clock.rb +35 -0
  962. data/vendor/gems/puppet-3.7.3/lib/puppet/util/provider_features.rb +184 -0
  963. data/vendor/gems/puppet-3.7.3/lib/puppet/util/pson.rb +13 -0
  964. data/vendor/gems/puppet-3.7.3/lib/puppet/util/queue.rb +96 -0
  965. data/vendor/gems/puppet-3.7.3/lib/puppet/util/queue/stomp.rb +60 -0
  966. data/vendor/gems/puppet-3.7.3/lib/puppet/util/rails/cache_accumulator.rb +65 -0
  967. data/vendor/gems/puppet-3.7.3/lib/puppet/util/rails/collection_merger.rb +17 -0
  968. data/vendor/gems/puppet-3.7.3/lib/puppet/util/rails/reference_serializer.rb +32 -0
  969. data/vendor/gems/puppet-3.7.3/lib/puppet/util/rdoc.rb +96 -0
  970. data/vendor/gems/puppet-3.7.3/lib/puppet/util/reference.rb +124 -0
  971. data/vendor/gems/puppet-3.7.3/lib/puppet/util/resource_template.rb +61 -0
  972. data/vendor/gems/puppet-3.7.3/lib/puppet/util/retryaction.rb +47 -0
  973. data/vendor/gems/puppet-3.7.3/lib/puppet/util/rubygems.rb +75 -0
  974. data/vendor/gems/puppet-3.7.3/lib/puppet/util/run_mode.rb +82 -0
  975. data/vendor/gems/puppet-3.7.3/lib/puppet/util/selinux.rb +222 -0
  976. data/vendor/gems/puppet-3.7.3/lib/puppet/util/ssl.rb +53 -0
  977. data/vendor/gems/puppet-3.7.3/lib/puppet/util/storage.rb +89 -0
  978. data/vendor/gems/puppet-3.7.3/lib/puppet/util/suidmanager.rb +191 -0
  979. data/vendor/gems/puppet-3.7.3/lib/puppet/util/symbolic_file_mode.rb +144 -0
  980. data/vendor/gems/puppet-3.7.3/lib/puppet/util/tag_set.rb +41 -0
  981. data/vendor/gems/puppet-3.7.3/lib/puppet/util/tagging.rb +56 -0
  982. data/vendor/gems/puppet-3.7.3/lib/puppet/util/terminal.rb +16 -0
  983. data/vendor/gems/puppet-3.7.3/lib/puppet/util/user_attr.rb +21 -0
  984. data/vendor/gems/puppet-3.7.3/lib/puppet/util/warnings.rb +32 -0
  985. data/vendor/gems/puppet-3.7.3/lib/puppet/util/watched_file.rb +37 -0
  986. data/vendor/gems/puppet-3.7.3/lib/puppet/util/watcher.rb +17 -0
  987. data/vendor/gems/puppet-3.7.3/lib/puppet/util/watcher/change_watcher.rb +33 -0
  988. data/vendor/gems/puppet-3.7.3/lib/puppet/util/watcher/periodic_watcher.rb +37 -0
  989. data/vendor/gems/puppet-3.7.3/lib/puppet/util/watcher/timer.rb +19 -0
  990. data/vendor/gems/puppet-3.7.3/lib/puppet/util/windows.rb +28 -0
  991. data/vendor/gems/puppet-3.7.3/lib/puppet/util/windows/access_control_entry.rb +84 -0
  992. data/vendor/gems/puppet-3.7.3/lib/puppet/util/windows/access_control_list.rb +113 -0
  993. data/vendor/gems/puppet-3.7.3/lib/puppet/util/windows/adsi.rb +430 -0
  994. data/vendor/gems/puppet-3.7.3/lib/puppet/util/windows/api_types.rb +255 -0
  995. data/vendor/gems/puppet-3.7.3/lib/puppet/util/windows/com.rb +224 -0
  996. data/vendor/gems/puppet-3.7.3/lib/puppet/util/windows/error.rb +83 -0
  997. data/vendor/gems/puppet-3.7.3/lib/puppet/util/windows/file.rb +401 -0
  998. data/vendor/gems/puppet-3.7.3/lib/puppet/util/windows/process.rb +354 -0
  999. data/vendor/gems/puppet-3.7.3/lib/puppet/util/windows/registry.rb +80 -0
  1000. data/vendor/gems/puppet-3.7.3/lib/puppet/util/windows/root_certs.rb +108 -0
  1001. data/vendor/gems/puppet-3.7.3/lib/puppet/util/windows/security.rb +920 -0
  1002. data/vendor/gems/puppet-3.7.3/lib/puppet/util/windows/security_descriptor.rb +62 -0
  1003. data/vendor/gems/puppet-3.7.3/lib/puppet/util/windows/sid.rb +162 -0
  1004. data/vendor/gems/puppet-3.7.3/lib/puppet/util/windows/string.rb +16 -0
  1005. data/vendor/gems/puppet-3.7.3/lib/puppet/util/windows/taskscheduler.rb +1241 -0
  1006. data/vendor/gems/puppet-3.7.3/lib/puppet/util/windows/user.rb +292 -0
  1007. data/vendor/gems/puppet-3.7.3/lib/puppet/util/yaml.rb +24 -0
  1008. data/vendor/gems/puppet-3.7.3/lib/puppet/util/zaml.rb +419 -0
  1009. data/vendor/gems/puppet-3.7.3/lib/puppet/vendor.rb +57 -0
  1010. data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/load_pathspec.rb +1 -0
  1011. data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/load_rgen.rb +1 -0
  1012. data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/load_safe_yaml.rb +1 -0
  1013. data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/load_semantic.rb +1 -0
  1014. data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/pathspec/CHANGELOG.md +2 -0
  1015. data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/pathspec/LICENSE +201 -0
  1016. data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/pathspec/PUPPET_README.md +6 -0
  1017. data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/pathspec/README.md +53 -0
  1018. data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/pathspec/lib/pathspec.rb +121 -0
  1019. data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/pathspec/lib/pathspec/gitignorespec.rb +275 -0
  1020. data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/pathspec/lib/pathspec/regexspec.rb +17 -0
  1021. data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/pathspec/lib/pathspec/spec.rb +14 -0
  1022. data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/require_vendored.rb +9 -0
  1023. data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/CHANGELOG +197 -0
  1024. data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/MIT-LICENSE +20 -0
  1025. data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/PUPPET_README.md +6 -0
  1026. data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/README.rdoc +78 -0
  1027. data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/Rakefile +41 -0
  1028. data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/TODO +41 -0
  1029. data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/anounce.txt +61 -0
  1030. data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/design_rationale.txt +71 -0
  1031. data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/lib/ea_support/ea_support.rb +54 -0
  1032. data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/lib/ea_support/id_store.rb +32 -0
  1033. data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/lib/ea_support/uml13_ea_metamodel.rb +562 -0
  1034. data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/lib/ea_support/uml13_ea_metamodel_ext.rb +45 -0
  1035. data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/lib/ea_support/uml13_ea_metamodel_generator.rb +43 -0
  1036. data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/lib/ea_support/uml13_ea_to_uml13.rb +103 -0
  1037. data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/lib/ea_support/uml13_to_uml13_ea.rb +89 -0
  1038. data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/lib/metamodels/uml13_metamodel.rb +559 -0
  1039. data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/lib/metamodels/uml13_metamodel_ext.rb +26 -0
  1040. data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/lib/mmgen/metamodel_generator.rb +20 -0
  1041. data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/lib/mmgen/mm_ext/ecore_mmgen_ext.rb +91 -0
  1042. data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/lib/mmgen/mmgen.rb +28 -0
  1043. data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/lib/mmgen/templates/annotations.tpl +37 -0
  1044. data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/lib/mmgen/templates/metamodel_generator.tpl +172 -0
  1045. data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/lib/rgen/array_extensions.rb +45 -0
  1046. data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/lib/rgen/ecore/ecore.rb +218 -0
  1047. data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/lib/rgen/ecore/ecore_builder_methods.rb +81 -0
  1048. data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/lib/rgen/ecore/ecore_ext.rb +69 -0
  1049. data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/lib/rgen/ecore/ecore_interface.rb +47 -0
  1050. data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/lib/rgen/ecore/ecore_to_ruby.rb +167 -0
  1051. data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/lib/rgen/ecore/ruby_to_ecore.rb +91 -0
  1052. data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/lib/rgen/environment.rb +129 -0
  1053. data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/lib/rgen/fragment/dump_file_cache.rb +63 -0
  1054. data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/lib/rgen/fragment/fragmented_model.rb +140 -0
  1055. data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/lib/rgen/fragment/model_fragment.rb +289 -0
  1056. data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/lib/rgen/instantiator/abstract_instantiator.rb +66 -0
  1057. data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/lib/rgen/instantiator/abstract_xml_instantiator.rb +66 -0
  1058. data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/lib/rgen/instantiator/default_xml_instantiator.rb +117 -0
  1059. data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/lib/rgen/instantiator/ecore_xml_instantiator.rb +169 -0
  1060. data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/lib/rgen/instantiator/json_instantiator.rb +126 -0
  1061. data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/lib/rgen/instantiator/json_parser.rb +331 -0
  1062. data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/lib/rgen/instantiator/json_parser.y +94 -0
  1063. data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/lib/rgen/instantiator/nodebased_xml_instantiator.rb +137 -0
  1064. data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/lib/rgen/instantiator/qualified_name_resolver.rb +97 -0
  1065. data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/lib/rgen/instantiator/reference_resolver.rb +128 -0
  1066. data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/lib/rgen/instantiator/resolution_helper.rb +47 -0
  1067. data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/lib/rgen/instantiator/xmi11_instantiator.rb +168 -0
  1068. data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/lib/rgen/metamodel_builder.rb +224 -0
  1069. data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/lib/rgen/metamodel_builder/builder_extensions.rb +556 -0
  1070. data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/lib/rgen/metamodel_builder/builder_runtime.rb +174 -0
  1071. data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/lib/rgen/metamodel_builder/constant_order_helper.rb +89 -0
  1072. data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/lib/rgen/metamodel_builder/data_types.rb +77 -0
  1073. data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/lib/rgen/metamodel_builder/intermediate/annotation.rb +30 -0
  1074. data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/lib/rgen/metamodel_builder/intermediate/feature.rb +168 -0
  1075. data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/lib/rgen/metamodel_builder/mm_multiple.rb +23 -0
  1076. data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/lib/rgen/metamodel_builder/module_extension.rb +42 -0
  1077. data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/lib/rgen/model_builder.rb +32 -0
  1078. data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/lib/rgen/model_builder/builder_context.rb +334 -0
  1079. data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/lib/rgen/model_builder/model_serializer.rb +225 -0
  1080. data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/lib/rgen/model_builder/reference_resolver.rb +156 -0
  1081. data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/lib/rgen/serializer/json_serializer.rb +121 -0
  1082. data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/lib/rgen/serializer/opposite_reference_filter.rb +18 -0
  1083. data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/lib/rgen/serializer/qualified_name_provider.rb +47 -0
  1084. data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/lib/rgen/serializer/xmi11_serializer.rb +116 -0
  1085. data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/lib/rgen/serializer/xmi20_serializer.rb +71 -0
  1086. data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/lib/rgen/serializer/xml_serializer.rb +98 -0
  1087. data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/lib/rgen/template_language.rb +297 -0
  1088. data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/lib/rgen/template_language/directory_template_container.rb +83 -0
  1089. data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/lib/rgen/template_language/output_handler.rb +87 -0
  1090. data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/lib/rgen/template_language/template_container.rb +234 -0
  1091. data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/lib/rgen/template_language/template_helper.rb +26 -0
  1092. data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/lib/rgen/transformer.rb +475 -0
  1093. data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/lib/rgen/util/auto_class_creator.rb +61 -0
  1094. data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/lib/rgen/util/cached_glob.rb +67 -0
  1095. data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/lib/rgen/util/file_cache_map.rb +124 -0
  1096. data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/lib/rgen/util/file_change_detector.rb +84 -0
  1097. data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/lib/rgen/util/method_delegation.rb +114 -0
  1098. data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/lib/rgen/util/model_comparator.rb +68 -0
  1099. data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/lib/rgen/util/model_comparator_base.rb +142 -0
  1100. data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/lib/rgen/util/model_dumper.rb +29 -0
  1101. data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/lib/rgen/util/name_helper.rb +42 -0
  1102. data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/lib/rgen/util/pattern_matcher.rb +329 -0
  1103. data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/lib/transformers/ecore_to_uml13.rb +79 -0
  1104. data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/lib/transformers/uml13_to_ecore.rb +127 -0
  1105. data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/test/array_extensions_test.rb +64 -0
  1106. data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/test/ea_instantiator_test.rb +35 -0
  1107. data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/test/ea_serializer_test.rb +23 -0
  1108. data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/test/ecore_self_test.rb +54 -0
  1109. data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/test/environment_test.rb +90 -0
  1110. data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/test/json_test.rb +171 -0
  1111. data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/test/metamodel_builder_test.rb +1482 -0
  1112. data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/test/metamodel_from_ecore_test.rb +57 -0
  1113. data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/test/metamodel_order_test.rb +131 -0
  1114. data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/test/metamodel_roundtrip_test.rb +98 -0
  1115. data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/test/metamodel_roundtrip_test/TestModel.rb +70 -0
  1116. data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/test/metamodel_roundtrip_test/houseMetamodel.ecore +42 -0
  1117. data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/test/metamodel_roundtrip_test/houseMetamodel_from_ecore.rb +44 -0
  1118. data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/test/metamodel_roundtrip_test/using_builtin_types.ecore +9 -0
  1119. data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/test/method_delegation_test.rb +178 -0
  1120. data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/test/model_builder/builder_context_test.rb +59 -0
  1121. data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/test/model_builder/builder_test.rb +242 -0
  1122. data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/test/model_builder/ecore_original.rb +163 -0
  1123. data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/test/model_builder/ecore_original_regenerated.rb +163 -0
  1124. data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/test/model_builder/reference_resolver_test.rb +156 -0
  1125. data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/test/model_builder/serializer_test.rb +94 -0
  1126. data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/test/model_builder/statemachine_metamodel.rb +42 -0
  1127. data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/test/model_builder/test_model/statemachine1.rb +23 -0
  1128. data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/test/model_builder_test.rb +6 -0
  1129. data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/test/model_fragment_test.rb +30 -0
  1130. data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/test/output_handler_test.rb +58 -0
  1131. data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/test/qualified_name_provider_test.rb +48 -0
  1132. data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/test/qualified_name_resolver_test.rb +102 -0
  1133. data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/test/reference_resolver_test.rb +117 -0
  1134. data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/test/rgen_test.rb +26 -0
  1135. data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/test/template_language_test.rb +163 -0
  1136. data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/test/template_language_test/expected_result1.txt +29 -0
  1137. data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/test/template_language_test/expected_result2.txt +9 -0
  1138. data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/test/template_language_test/expected_result3.txt +4 -0
  1139. data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/test/template_language_test/indentStringTestDefaultIndent.out +1 -0
  1140. data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/test/template_language_test/indentStringTestTabIndent.out +1 -0
  1141. data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/test/template_language_test/templates/callback_indent_test/a.tpl +12 -0
  1142. data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/test/template_language_test/templates/callback_indent_test/b.tpl +5 -0
  1143. data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/test/template_language_test/templates/code/array.tpl +11 -0
  1144. data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/test/template_language_test/templates/content/author.tpl +7 -0
  1145. data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/test/template_language_test/templates/content/chapter.tpl +5 -0
  1146. data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/test/template_language_test/templates/define_local_test/local.tpl +8 -0
  1147. data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/test/template_language_test/templates/define_local_test/test.tpl +8 -0
  1148. data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/test/template_language_test/templates/evaluate_test/test.tpl +7 -0
  1149. data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/test/template_language_test/templates/indent_string_test.tpl +12 -0
  1150. data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/test/template_language_test/templates/index/c/cmod.tpl +1 -0
  1151. data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/test/template_language_test/templates/index/chapter.tpl +3 -0
  1152. data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/test/template_language_test/templates/no_backslash_r_test.tpl +5 -0
  1153. data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/test/template_language_test/templates/no_indent_test/no_indent.tpl +3 -0
  1154. data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/test/template_language_test/templates/no_indent_test/sub1/no_indent.tpl +3 -0
  1155. data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/test/template_language_test/templates/no_indent_test/test.tpl +24 -0
  1156. data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/test/template_language_test/templates/no_indent_test/test2.tpl +13 -0
  1157. data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/test/template_language_test/templates/no_indent_test/test3.tpl +10 -0
  1158. data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/test/template_language_test/templates/null_context_test.tpl +17 -0
  1159. data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/test/template_language_test/templates/root.tpl +31 -0
  1160. data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/test/template_language_test/templates/template_resolution_test/sub1.tpl +9 -0
  1161. data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/test/template_language_test/templates/template_resolution_test/sub1/sub1.tpl +3 -0
  1162. data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/test/template_language_test/templates/template_resolution_test/test.tpl +4 -0
  1163. data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/test/template_language_test/testout.txt +29 -0
  1164. data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/test/testmodel/class_model_checker.rb +119 -0
  1165. data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/test/testmodel/ea_testmodel.eap +0 -0
  1166. data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/test/testmodel/ea_testmodel.xml +1029 -0
  1167. data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/test/testmodel/ea_testmodel_partial.xml +317 -0
  1168. data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/test/testmodel/ecore_model_checker.rb +101 -0
  1169. data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/test/testmodel/manual_testmodel.xml +22 -0
  1170. data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/test/testmodel/object_model_checker.rb +67 -0
  1171. data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/test/transformer_test.rb +254 -0
  1172. data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/test/util/file_cache_map_test.rb +99 -0
  1173. data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/test/util/pattern_matcher_test.rb +97 -0
  1174. data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/test/util_test.rb +5 -0
  1175. data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/test/xml_instantiator_test.rb +160 -0
  1176. data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/test/xml_instantiator_test/simple_ecore_model_checker.rb +94 -0
  1177. data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/test/xml_instantiator_test/simple_xmi_ecore_instantiator.rb +53 -0
  1178. data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/test/xml_instantiator_test/simple_xmi_metamodel.rb +49 -0
  1179. data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/rgen/test/xml_instantiator_test/simple_xmi_to_ecore.rb +75 -0
  1180. data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/safe_yaml/CHANGES.md +104 -0
  1181. data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/safe_yaml/Gemfile +11 -0
  1182. data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/safe_yaml/LICENSE.txt +22 -0
  1183. data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/safe_yaml/PUPPET_README.md +6 -0
  1184. data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/safe_yaml/README.md +179 -0
  1185. data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/safe_yaml/Rakefile +6 -0
  1186. data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/safe_yaml/lib/safe_yaml.rb +253 -0
  1187. data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/safe_yaml/lib/safe_yaml/deep.rb +34 -0
  1188. data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/safe_yaml/lib/safe_yaml/parse/date.rb +27 -0
  1189. data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/safe_yaml/lib/safe_yaml/parse/hexadecimal.rb +12 -0
  1190. data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/safe_yaml/lib/safe_yaml/parse/sexagesimal.rb +26 -0
  1191. data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/safe_yaml/lib/safe_yaml/psych_handler.rb +92 -0
  1192. data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/safe_yaml/lib/safe_yaml/psych_resolver.rb +52 -0
  1193. data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/safe_yaml/lib/safe_yaml/resolver.rb +94 -0
  1194. data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/safe_yaml/lib/safe_yaml/safe_to_ruby_visitor.rb +17 -0
  1195. data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/safe_yaml/lib/safe_yaml/syck_hack.rb +36 -0
  1196. data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/safe_yaml/lib/safe_yaml/syck_node_monkeypatch.rb +43 -0
  1197. data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/safe_yaml/lib/safe_yaml/syck_resolver.rb +38 -0
  1198. data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/safe_yaml/lib/safe_yaml/transform.rb +41 -0
  1199. data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/safe_yaml/lib/safe_yaml/transform/to_boolean.rb +21 -0
  1200. data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/safe_yaml/lib/safe_yaml/transform/to_date.rb +11 -0
  1201. data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/safe_yaml/lib/safe_yaml/transform/to_float.rb +33 -0
  1202. data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/safe_yaml/lib/safe_yaml/transform/to_integer.rb +25 -0
  1203. data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/safe_yaml/lib/safe_yaml/transform/to_nil.rb +18 -0
  1204. data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/safe_yaml/lib/safe_yaml/transform/to_symbol.rb +13 -0
  1205. data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/safe_yaml/lib/safe_yaml/transform/transformation_map.rb +47 -0
  1206. data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/safe_yaml/lib/safe_yaml/version.rb +3 -0
  1207. data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/safe_yaml/run_specs_all_ruby_versions.sh +21 -0
  1208. data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/safe_yaml/safe_yaml.gemspec +18 -0
  1209. data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/safe_yaml/spec/exploit.1.9.2.yaml +2 -0
  1210. data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/safe_yaml/spec/exploit.1.9.3.yaml +2 -0
  1211. data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/safe_yaml/spec/psych_resolver_spec.rb +10 -0
  1212. data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/safe_yaml/spec/resolver_specs.rb +250 -0
  1213. data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/safe_yaml/spec/safe_yaml_spec.rb +702 -0
  1214. data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/safe_yaml/spec/spec_helper.rb +18 -0
  1215. data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/safe_yaml/spec/support/exploitable_back_door.rb +29 -0
  1216. data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/safe_yaml/spec/syck_resolver_spec.rb +10 -0
  1217. data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/safe_yaml/spec/transform/base64_spec.rb +11 -0
  1218. data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/safe_yaml/spec/transform/to_date_spec.rb +34 -0
  1219. data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/safe_yaml/spec/transform/to_float_spec.rb +42 -0
  1220. data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/safe_yaml/spec/transform/to_integer_spec.rb +59 -0
  1221. data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/safe_yaml/spec/transform/to_symbol_spec.rb +49 -0
  1222. data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/safe_yaml_patches.rb +9 -0
  1223. data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/semantic/Gemfile +20 -0
  1224. data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/semantic/PUPPET_README.md +6 -0
  1225. data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/semantic/Rakefile +69 -0
  1226. data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/semantic/lib/semantic.rb +7 -0
  1227. data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/semantic/lib/semantic/dependency.rb +181 -0
  1228. data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/semantic/lib/semantic/dependency/graph.rb +60 -0
  1229. data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/semantic/lib/semantic/dependency/graph_node.rb +117 -0
  1230. data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/semantic/lib/semantic/dependency/module_release.rb +46 -0
  1231. data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/semantic/lib/semantic/dependency/source.rb +25 -0
  1232. data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/semantic/lib/semantic/dependency/unsatisfiable_graph.rb +31 -0
  1233. data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/semantic/lib/semantic/version.rb +168 -0
  1234. data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/semantic/lib/semantic/version_range.rb +424 -0
  1235. data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/semantic/spec/spec_helper.rb +24 -0
  1236. data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/semantic/spec/unit/semantic/dependency/graph_node_spec.rb +141 -0
  1237. data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/semantic/spec/unit/semantic/dependency/graph_spec.rb +162 -0
  1238. data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/semantic/spec/unit/semantic/dependency/module_release_spec.rb +143 -0
  1239. data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/semantic/spec/unit/semantic/dependency/source_spec.rb +5 -0
  1240. data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/semantic/spec/unit/semantic/dependency/unsatisfiable_graph_spec.rb +44 -0
  1241. data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/semantic/spec/unit/semantic/dependency_spec.rb +383 -0
  1242. data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/semantic/spec/unit/semantic/version_range_spec.rb +307 -0
  1243. data/vendor/gems/puppet-3.7.3/lib/puppet/vendor/semantic/spec/unit/semantic/version_spec.rb +608 -0
  1244. data/vendor/gems/puppet-3.7.3/lib/puppet/version.rb +89 -0
  1245. data/vendor/gems/puppet-3.7.3/lib/puppetx.rb +89 -0
  1246. data/vendor/gems/puppet-3.7.3/lib/puppetx/puppet/bindings_scheme_handler.rb +130 -0
  1247. data/vendor/gems/puppet-3.7.3/lib/puppetx/puppet/syntax_checker.rb +91 -0
  1248. data/vendor/gems/puppet-3.7.3/lib/puppetx/puppetlabs/syntax_checkers/json.rb +37 -0
  1249. data/vendor/gems/puppet-3.7.3/lib/semver.rb +124 -0
  1250. data/vendor/gems/puppet-3.7.3/puppet-3.7.3.gemspec +3648 -0
  1251. data/vendor/gems/puppet-3.7.3/tasks/benchmark.rake +144 -0
  1252. data/vendor/gems/puppet-3.7.3/tasks/ci.rake +29 -0
  1253. data/vendor/gems/puppet-3.7.3/tasks/manpages.rake +84 -0
  1254. data/vendor/gems/puppet-3.7.3/tasks/memwalk.rake +195 -0
  1255. data/vendor/gems/puppet-3.7.3/tasks/parallel.rake +408 -0
  1256. data/vendor/gems/puppet-3.7.3/tasks/parser.rake +19 -0
  1257. data/vendor/gems/puppet-3.7.3/tasks/yard.rake +59 -0
  1258. metadata +1351 -35
@@ -0,0 +1,56 @@
1
+ # @api private
2
+ class Puppet::Context::TrustedInformation
3
+ # one of 'remote', 'local', or false, where 'remote' is authenticated via cert,
4
+ # 'local' is trusted by virtue of running on the same machine (not a remote
5
+ # request), and false is an unauthenticated remote request.
6
+ #
7
+ # @return [String, Boolean]
8
+ attr_reader :authenticated
9
+
10
+ # The validated certificate name used for the request
11
+ #
12
+ # @return [String]
13
+ attr_reader :certname
14
+
15
+ # Extra information that comes from the trusted certificate's extensions.
16
+ #
17
+ # @return [Hash{Object => Object}]
18
+ attr_reader :extensions
19
+
20
+ def initialize(authenticated, certname, extensions)
21
+ @authenticated = authenticated.freeze
22
+ @certname = certname.freeze
23
+ @extensions = extensions.freeze
24
+ end
25
+
26
+ def self.remote(authenticated, node_name, certificate)
27
+ if authenticated
28
+ extensions = {}
29
+ if certificate.nil?
30
+ Puppet.info('TrustedInformation expected a certificate, but none was given.')
31
+ else
32
+ extensions = Hash[certificate.custom_extensions.collect do |ext|
33
+ [ext['oid'].freeze, ext['value'].freeze]
34
+ end]
35
+ end
36
+ new('remote', node_name, extensions)
37
+ else
38
+ new(false, nil, {})
39
+ end
40
+ end
41
+
42
+ def self.local(node)
43
+ # Always trust local data by picking up the available parameters.
44
+ client_cert = node ? node.parameters['clientcert'] : nil
45
+
46
+ new('local', client_cert, {})
47
+ end
48
+
49
+ def to_h
50
+ {
51
+ 'authenticated'.freeze => authenticated,
52
+ 'certname'.freeze => certname,
53
+ 'extensions'.freeze => extensions
54
+ }.freeze
55
+ end
56
+ end
@@ -0,0 +1,182 @@
1
+ require 'puppet/application'
2
+ require 'puppet/scheduler'
3
+
4
+ # Run periodic actions and a network server in a daemonized process.
5
+ #
6
+ # A Daemon has 3 parts:
7
+ # * config reparse
8
+ # * (optional) an agent that responds to #run
9
+ # * (optional) a server that response to #stop, #start, and #wait_for_shutdown
10
+ #
11
+ # The config reparse will occur periodically based on Settings. The server will
12
+ # be started and is expected to manage its own run loop (and so not block the
13
+ # start call). The server will, however, still be waited for by using the
14
+ # #wait_for_shutdown method. The agent is run periodically and a time interval
15
+ # based on Settings. The config reparse will update this time interval when
16
+ # needed.
17
+ #
18
+ # The Daemon is also responsible for signal handling, starting, stopping,
19
+ # running the agent on demand, and reloading the entire process. It ensures
20
+ # that only one Daemon is running by using a lockfile.
21
+ #
22
+ # @api private
23
+ class Puppet::Daemon
24
+ attr_accessor :agent, :server, :argv
25
+
26
+ def initialize(pidfile, scheduler = Puppet::Scheduler::Scheduler.new())
27
+ @scheduler = scheduler
28
+ @pidfile = pidfile
29
+ end
30
+
31
+ def daemonname
32
+ Puppet.run_mode.name
33
+ end
34
+
35
+ # Put the daemon into the background.
36
+ def daemonize
37
+ if pid = fork
38
+ Process.detach(pid)
39
+ exit(0)
40
+ end
41
+
42
+ create_pidfile
43
+
44
+ # Get rid of console logging
45
+ Puppet::Util::Log.close(:console)
46
+
47
+ Process.setsid
48
+ Dir.chdir("/")
49
+
50
+ close_streams
51
+ end
52
+
53
+ # Close stdin/stdout/stderr so that we can finish our transition into 'daemon' mode.
54
+ # @return nil
55
+ def self.close_streams()
56
+ Puppet.debug("Closing streams for daemon mode")
57
+ begin
58
+ $stdin.reopen "/dev/null"
59
+ $stdout.reopen "/dev/null", "a"
60
+ $stderr.reopen $stdout
61
+ Puppet::Util::Log.reopen
62
+ Puppet.debug("Finished closing streams for daemon mode")
63
+ rescue => detail
64
+ Puppet.err "Could not start #{Puppet.run_mode.name}: #{detail}"
65
+ Puppet::Util::replace_file("/tmp/daemonout", 0644) do |f|
66
+ f.puts "Could not start #{Puppet.run_mode.name}: #{detail}"
67
+ end
68
+ exit(12)
69
+ end
70
+ end
71
+
72
+ # Convenience signature for calling Puppet::Daemon.close_streams
73
+ def close_streams()
74
+ Puppet::Daemon.close_streams
75
+ end
76
+
77
+ def reexec
78
+ raise Puppet::DevError, "Cannot reexec unless ARGV arguments are set" unless argv
79
+ command = $0 + " " + argv.join(" ")
80
+ Puppet.notice "Restarting with '#{command}'"
81
+ stop(:exit => false)
82
+ exec(command)
83
+ end
84
+
85
+ def reload
86
+ return unless agent
87
+ if agent.running?
88
+ Puppet.notice "Not triggering already-running agent"
89
+ return
90
+ end
91
+
92
+ agent.run({:splay => false})
93
+ end
94
+
95
+ def restart
96
+ Puppet::Application.restart!
97
+ reexec unless agent and agent.running?
98
+ end
99
+
100
+ def reopen_logs
101
+ Puppet::Util::Log.reopen
102
+ end
103
+
104
+ # Trap a couple of the main signals. This should probably be handled
105
+ # in a way that anyone else can register callbacks for traps, but, eh.
106
+ def set_signal_traps
107
+ signals = {:INT => :stop, :TERM => :stop }
108
+ # extended signals not supported under windows
109
+ signals.update({:HUP => :restart, :USR1 => :reload, :USR2 => :reopen_logs }) unless Puppet.features.microsoft_windows?
110
+ signals.each do |signal, method|
111
+ Signal.trap(signal) do
112
+ Puppet.notice "Caught #{signal}; calling #{method}"
113
+ send(method)
114
+ end
115
+ end
116
+ end
117
+
118
+ # Stop everything
119
+ def stop(args = {:exit => true})
120
+ Puppet::Application.stop!
121
+
122
+ server.stop if server
123
+
124
+ remove_pidfile
125
+
126
+ Puppet::Util::Log.close_all
127
+
128
+ exit if args[:exit]
129
+ end
130
+
131
+ def start
132
+ set_signal_traps
133
+
134
+ create_pidfile
135
+
136
+ raise Puppet::DevError, "Daemons must have an agent, server, or both" unless agent or server
137
+
138
+ # Start the listening server, if required.
139
+ server.start if server
140
+
141
+ # Finally, loop forever running events - or, at least, until we exit.
142
+ run_event_loop
143
+
144
+ server.wait_for_shutdown if server
145
+ end
146
+
147
+ private
148
+
149
+ # Create a pidfile for our daemon, so we can be stopped and others
150
+ # don't try to start.
151
+ def create_pidfile
152
+ raise "Could not create PID file: #{@pidfile.file_path}" unless @pidfile.lock
153
+ end
154
+
155
+ # Remove the pid file for our daemon.
156
+ def remove_pidfile
157
+ @pidfile.unlock
158
+ end
159
+
160
+ def run_event_loop
161
+ agent_run = Puppet::Scheduler.create_job(Puppet[:runinterval], Puppet[:splay], Puppet[:splaylimit]) do
162
+ # Splay for the daemon is handled in the scheduler
163
+ agent.run(:splay => false)
164
+ end
165
+
166
+ reparse_run = Puppet::Scheduler.create_job(Puppet[:filetimeout]) do
167
+ Puppet.settings.reparse_config_files
168
+ agent_run.run_interval = Puppet[:runinterval]
169
+ if Puppet[:filetimeout] == 0
170
+ reparse_run.disable
171
+ else
172
+ reparse_run.run_interval = Puppet[:filetimeout]
173
+ end
174
+ end
175
+
176
+ reparse_run.disable if Puppet[:filetimeout] == 0
177
+ agent_run.disable unless agent
178
+
179
+ @scheduler.run_loop([reparse_run, agent_run])
180
+ end
181
+ end
182
+
@@ -0,0 +1,12 @@
1
+ require 'puppet/indirector'
2
+
3
+ # A class for managing data lookups
4
+ class Puppet::DataBinding
5
+ class LookupError < Puppet::Error; end
6
+
7
+ # Set up indirection, so that data can be looked for in the compiler
8
+ extend Puppet::Indirector
9
+
10
+ indirects(:data_binding, :terminus_setting => :data_binding_terminus,
11
+ :doc => "Where to find external data bindings.")
12
+ end
@@ -0,0 +1,2084 @@
1
+ module Puppet
2
+
3
+ def self.default_diffargs
4
+ if (Facter.value(:kernel) == "AIX" && Facter.value(:kernelmajversion) == "5300")
5
+ ""
6
+ else
7
+ "-u"
8
+ end
9
+ end
10
+
11
+ ############################################################################################
12
+ # NOTE: For information about the available values for the ":type" property of settings,
13
+ # see the docs for Settings.define_settings
14
+ ############################################################################################
15
+
16
+ AS_DURATION = %q{This setting can be a time interval in seconds (30 or 30s), minutes (30m), hours (6h), days (2d), or years (5y).}
17
+ STORECONFIGS_ONLY = %q{This setting is only used by the ActiveRecord storeconfigs and inventory backends, which are deprecated.}
18
+
19
+ # This is defined first so that the facter implementation is replaced before other setting defaults are evaluated.
20
+ define_settings(:main,
21
+ :cfacter => {
22
+ :default => false,
23
+ :type => :boolean,
24
+ :desc => 'Whether or not to use the native facter (cfacter) implementation instead of the Ruby one (facter). Defaults to false.',
25
+ :hook => proc do |value|
26
+ return unless value
27
+ raise ArgumentError, 'facter has already evaluated facts.' if Facter.instance_variable_get(:@collection)
28
+ raise ArgumentError, 'cfacter version 0.2.0 or later is not installed.' unless Puppet.features.cfacter?
29
+ CFacter.initialize
30
+ end
31
+ }
32
+ )
33
+
34
+ define_settings(:main,
35
+ :confdir => {
36
+ :default => nil,
37
+ :type => :directory,
38
+ :desc => "The main Puppet configuration directory. The default for this setting
39
+ is calculated based on the user. If the process is running as root or
40
+ the user that Puppet is supposed to run as, it defaults to a system
41
+ directory, but if it's running as any other user, it defaults to being
42
+ in the user's home directory.",
43
+ },
44
+ :vardir => {
45
+ :default => nil,
46
+ :type => :directory,
47
+ :owner => "service",
48
+ :group => "service",
49
+ :desc => "Where Puppet stores dynamic and growing data. The default for this
50
+ setting is calculated specially, like `confdir`_.",
51
+ },
52
+
53
+ ### NOTE: this setting is usually being set to a symbol value. We don't officially have a
54
+ ### setting type for that yet, but we might want to consider creating one.
55
+ :name => {
56
+ :default => nil,
57
+ :desc => "The name of the application, if we are running as one. The
58
+ default is essentially $0 without the path or `.rb`.",
59
+ }
60
+ )
61
+
62
+ define_settings(:main,
63
+ :logdir => {
64
+ :default => nil,
65
+ :type => :directory,
66
+ :mode => "0750",
67
+ :owner => "service",
68
+ :group => "service",
69
+ :desc => "The directory in which to store log files",
70
+ },
71
+ :log_level => {
72
+ :default => 'notice',
73
+ :type => :enum,
74
+ :values => ["debug","info","notice","warning","err","alert","emerg","crit"],
75
+ :desc => "Default logging level for messages from Puppet. Allowed values are:
76
+
77
+ * debug
78
+ * info
79
+ * notice
80
+ * warning
81
+ * err
82
+ * alert
83
+ * emerg
84
+ * crit
85
+ ",
86
+ },
87
+ :disable_warnings => {
88
+ :default => [],
89
+ :type => :array,
90
+ :desc => "A comma-separated list of warning types to suppress. If large numbers
91
+ of warnings are making Puppet's logs too large or difficult to use, you
92
+ can temporarily silence them with this setting.
93
+
94
+ If you are preparing to upgrade Puppet to a new major version, you
95
+ should re-enable all warnings for a while.
96
+
97
+ Valid values for this setting are:
98
+
99
+ * `deprecations` --- disables deprecation warnings.",
100
+ :hook => proc do |value|
101
+ values = munge(value)
102
+ valid = %w[deprecations]
103
+ invalid = values - (values & valid)
104
+ if not invalid.empty?
105
+ raise ArgumentError, "Cannot disable unrecognized warning types #{invalid.inspect}. Valid values are #{valid.inspect}."
106
+ end
107
+ end
108
+ }
109
+ )
110
+
111
+ define_settings(:main,
112
+ :priority => {
113
+ :default => nil,
114
+ :type => :priority,
115
+ :desc => "The scheduling priority of the process. Valid values are 'high',
116
+ 'normal', 'low', or 'idle', which are mapped to platform-specific
117
+ values. The priority can also be specified as an integer value and
118
+ will be passed as is, e.g. -5. Puppet must be running as a privileged
119
+ user in order to increase scheduling priority.",
120
+ },
121
+ :trace => {
122
+ :default => false,
123
+ :type => :boolean,
124
+ :desc => "Whether to print stack traces on some errors",
125
+ },
126
+ :profile => {
127
+ :default => false,
128
+ :type => :boolean,
129
+ :desc => "Whether to enable experimental performance profiling",
130
+ },
131
+ :autoflush => {
132
+ :default => true,
133
+ :type => :boolean,
134
+ :desc => "Whether log files should always flush to disk.",
135
+ :hook => proc { |value| Log.autoflush = value }
136
+ },
137
+ :syslogfacility => {
138
+ :default => "daemon",
139
+ :desc => "What syslog facility to use when logging to syslog.
140
+ Syslog has a fixed list of valid facilities, and you must
141
+ choose one of those; you cannot just make one up."
142
+ },
143
+ :statedir => {
144
+ :default => "$vardir/state",
145
+ :type => :directory,
146
+ :mode => "01755",
147
+ :desc => "The directory where Puppet state is stored. Generally,
148
+ this directory can be removed without causing harm (although it
149
+ might result in spurious service restarts)."
150
+ },
151
+ :rundir => {
152
+ :default => nil,
153
+ :type => :directory,
154
+ :mode => "0755",
155
+ :owner => "service",
156
+ :group => "service",
157
+ :desc => "Where Puppet PID files are kept."
158
+ },
159
+ :genconfig => {
160
+ :default => false,
161
+ :type => :boolean,
162
+ :desc => "When true, causes Puppet applications to print an example config file
163
+ to stdout and exit. The example will include descriptions of each
164
+ setting, and the current (or default) value of each setting,
165
+ incorporating any settings overridden on the CLI (with the exception
166
+ of `genconfig` itself). This setting only makes sense when specified
167
+ on the command line as `--genconfig`.",
168
+ },
169
+ :genmanifest => {
170
+ :default => false,
171
+ :type => :boolean,
172
+ :desc => "Whether to just print a manifest to stdout and exit. Only makes
173
+ sense when specified on the command line as `--genmanifest`. Takes into account arguments specified
174
+ on the CLI.",
175
+ },
176
+ :configprint => {
177
+ :default => "",
178
+ :desc => "Print the value of a specific configuration setting. If the name of a
179
+ setting is provided for this, then the value is printed and puppet
180
+ exits. Comma-separate multiple values. For a list of all values,
181
+ specify 'all'.",
182
+ },
183
+ :color => {
184
+ :default => "ansi",
185
+ :type => :string,
186
+ :desc => "Whether to use colors when logging to the console. Valid values are
187
+ `ansi` (equivalent to `true`), `html`, and `false`, which produces no color.
188
+ Defaults to false on Windows, as its console does not support ansi colors.",
189
+ },
190
+ :mkusers => {
191
+ :default => false,
192
+ :type => :boolean,
193
+ :desc => "Whether to create the necessary user and group that puppet agent will run as.",
194
+ },
195
+ :manage_internal_file_permissions => {
196
+ :default => true,
197
+ :type => :boolean,
198
+ :desc => "Whether Puppet should manage the owner, group, and mode of files it uses internally",
199
+ },
200
+ :onetime => {
201
+ :default => false,
202
+ :type => :boolean,
203
+ :desc => "Perform one configuration run and exit, rather than spawning a long-running
204
+ daemon. This is useful for interactively running puppet agent, or
205
+ running puppet agent from cron.",
206
+ :short => 'o',
207
+ },
208
+ :path => {
209
+ :default => "none",
210
+ :desc => "The shell search path. Defaults to whatever is inherited
211
+ from the parent process.",
212
+ :call_hook => :on_define_and_write,
213
+ :hook => proc do |value|
214
+ ENV["PATH"] = "" if ENV["PATH"].nil?
215
+ ENV["PATH"] = value unless value == "none"
216
+ paths = ENV["PATH"].split(File::PATH_SEPARATOR)
217
+ Puppet::Util::Platform.default_paths.each do |path|
218
+ ENV["PATH"] += File::PATH_SEPARATOR + path unless paths.include?(path)
219
+ end
220
+ value
221
+ end
222
+ },
223
+ :libdir => {
224
+ :type => :directory,
225
+ :default => "$vardir/lib",
226
+ :desc => "An extra search path for Puppet. This is only useful
227
+ for those files that Puppet will load on demand, and is only
228
+ guaranteed to work for those cases. In fact, the autoload
229
+ mechanism is responsible for making sure this directory
230
+ is in Ruby's search path\n",
231
+ :call_hook => :on_initialize_and_write,
232
+ :hook => proc do |value|
233
+ $LOAD_PATH.delete(@oldlibdir) if defined?(@oldlibdir) and $LOAD_PATH.include?(@oldlibdir)
234
+ @oldlibdir = value
235
+ $LOAD_PATH << value
236
+ end
237
+ },
238
+ :ignoreimport => {
239
+ :default => false,
240
+ :type => :boolean,
241
+ :desc => "If true, allows the parser to continue without requiring
242
+ all files referenced with `import` statements to exist. This setting was primarily
243
+ designed for use with commit hooks for parse-checking.",
244
+ },
245
+ :environment => {
246
+ :default => "production",
247
+ :desc => "The environment Puppet is running in. For clients
248
+ (e.g., `puppet agent`) this determines the environment itself, which
249
+ is used to find modules and much more. For servers (i.e., `puppet master`)
250
+ this provides the default environment for nodes we know nothing about."
251
+ },
252
+ :environmentpath => {
253
+ :default => "",
254
+ :desc => "A search path for directory environments, as a list of directories
255
+ separated by the system path separator character. (The POSIX path separator
256
+ is ':', and the Windows path separator is ';'.)
257
+
258
+ This setting must have a value set to enable **directory environments.** The
259
+ recommended value is `$confdir/environments`. For more details, see
260
+ http://docs.puppetlabs.com/puppet/latest/reference/environments.html",
261
+ :type => :path,
262
+ },
263
+ :always_cache_features => {
264
+ :type => :boolean,
265
+ :default => false,
266
+ :desc => <<-'EOT'
267
+ Affects how we cache attempts to load Puppet 'features'. If false, then
268
+ calls to `Puppet.features.<feature>?` will always attempt to load the
269
+ feature (which can be an expensive operation) unless it has already been
270
+ loaded successfully. This makes it possible for a single agent run to,
271
+ e.g., install a package that provides the underlying capabilities for
272
+ a feature, and then later load that feature during the same run (even if
273
+ the feature had been tested earlier and had not been available).
274
+
275
+ If this setting is set to true, then features will only be checked once,
276
+ and if they are not available, the negative result is cached and returned
277
+ for all subsequent attempts to load the feature. This behavior is almost
278
+ always appropriate for the server, and can result in a significant performance
279
+ improvement for features that are checked frequently.
280
+ EOT
281
+ },
282
+ :diff_args => {
283
+ :default => lambda { default_diffargs },
284
+ :desc => "Which arguments to pass to the diff command when printing differences between
285
+ files. The command to use can be chosen with the `diff` setting.",
286
+ },
287
+ :diff => {
288
+ :default => (Puppet.features.microsoft_windows? ? "" : "diff"),
289
+ :desc => "Which diff command to use when printing differences between files. This setting
290
+ has no default value on Windows, as standard `diff` is not available, but Puppet can use many
291
+ third-party diff tools.",
292
+ },
293
+ :show_diff => {
294
+ :type => :boolean,
295
+ :default => false,
296
+ :desc => "Whether to log and report a contextual diff when files are being replaced.
297
+ This causes partial file contents to pass through Puppet's normal
298
+ logging and reporting system, so this setting should be used with
299
+ caution if you are sending Puppet's reports to an insecure
300
+ destination. This feature currently requires the `diff/lcs` Ruby
301
+ library.",
302
+ },
303
+ :daemonize => {
304
+ :type => :boolean,
305
+ :default => (Puppet.features.microsoft_windows? ? false : true),
306
+ :desc => "Whether to send the process into the background. This defaults
307
+ to true on POSIX systems, and to false on Windows (where Puppet
308
+ currently cannot daemonize).",
309
+ :short => "D",
310
+ :hook => proc do |value|
311
+ if value and Puppet.features.microsoft_windows?
312
+ raise "Cannot daemonize on Windows"
313
+ end
314
+ end
315
+ },
316
+ :maximum_uid => {
317
+ :default => 4294967290,
318
+ :desc => "The maximum allowed UID. Some platforms use negative UIDs
319
+ but then ship with tools that do not know how to handle signed ints,
320
+ so the UIDs show up as huge numbers that can then not be fed back into
321
+ the system. This is a hackish way to fail in a slightly more useful
322
+ way when that happens.",
323
+ },
324
+ :route_file => {
325
+ :default => "$confdir/routes.yaml",
326
+ :desc => "The YAML file containing indirector route configuration.",
327
+ },
328
+ :node_terminus => {
329
+ :type => :terminus,
330
+ :default => "plain",
331
+ :desc => "Where to find information about nodes.",
332
+ },
333
+ :node_cache_terminus => {
334
+ :type => :terminus,
335
+ :default => nil,
336
+ :desc => "How to store cached nodes.
337
+ Valid values are (none), 'json', 'msgpack', 'yaml' or write only yaml ('write_only_yaml').
338
+ The master application defaults to 'write_only_yaml', all others to none.",
339
+ },
340
+ :data_binding_terminus => {
341
+ :type => :terminus,
342
+ :default => "hiera",
343
+ :desc => "Where to retrive information about data.",
344
+ },
345
+ :hiera_config => {
346
+ :default => "$confdir/hiera.yaml",
347
+ :desc => "The hiera configuration file. Puppet only reads this file on startup, so you must restart the puppet master every time you edit it.",
348
+ :type => :file,
349
+ },
350
+ :binder => {
351
+ :default => false,
352
+ :desc => "Turns the binding system on or off. This includes bindings in modules.
353
+ The binding system aggregates data from modules and other locations and makes them available for lookup.
354
+ The binding system is experimental and any or all of it may change.",
355
+ :type => :boolean,
356
+ },
357
+ :binder_config => {
358
+ :default => nil,
359
+ :desc => "The binder configuration file. Puppet reads this file on each request to configure the bindings system.
360
+ If set to nil (the default), a $confdir/binder_config.yaml is optionally loaded. If it does not exists, a default configuration
361
+ is used. If the setting :binding_config is specified, it must reference a valid and existing yaml file.",
362
+ :type => :file,
363
+ },
364
+ :catalog_terminus => {
365
+ :type => :terminus,
366
+ :default => "compiler",
367
+ :desc => "Where to get node catalogs. This is useful to change if, for instance,
368
+ you'd like to pre-compile catalogs and store them in memcached or some other easily-accessed store.",
369
+ },
370
+ :catalog_cache_terminus => {
371
+ :type => :terminus,
372
+ :default => nil,
373
+ :desc => "How to store cached catalogs. Valid values are 'json', 'msgpack' and 'yaml'. The agent application defaults to 'json'."
374
+ },
375
+ :facts_terminus => {
376
+ :default => 'facter',
377
+ :desc => "The node facts terminus.",
378
+ :call_hook => :on_initialize_and_write,
379
+ :hook => proc do |value|
380
+ require 'puppet/node/facts'
381
+ # Cache to YAML if we're uploading facts away
382
+ if %w[rest inventory_service].include? value.to_s
383
+ Puppet.info "configuring the YAML fact cache because a remote terminus is active"
384
+ Puppet::Node::Facts.indirection.cache_class = :yaml
385
+ end
386
+ end
387
+ },
388
+ :inventory_terminus => {
389
+ :type => :terminus,
390
+ :default => "$facts_terminus",
391
+ :desc => "Should usually be the same as the facts terminus",
392
+ },
393
+ :default_file_terminus => {
394
+ :type => :terminus,
395
+ :default => "rest",
396
+ :desc => "The default source for files if no server is given in a
397
+ uri, e.g. puppet:///file. The default of `rest` causes the file to be
398
+ retrieved using the `server` setting. When running `apply` the default
399
+ is `file_server`, causing requests to be filled locally."
400
+ },
401
+ :httplog => {
402
+ :default => "$logdir/http.log",
403
+ :type => :file,
404
+ :owner => "root",
405
+ :mode => "0640",
406
+ :desc => "Where the puppet agent web server logs.",
407
+ },
408
+ :http_proxy_host => {
409
+ :default => "none",
410
+ :desc => "The HTTP proxy host to use for outgoing connections. Note: You
411
+ may need to use a FQDN for the server hostname when using a proxy. Environment variable
412
+ http_proxy or HTTP_PROXY will override this value",
413
+ },
414
+ :http_proxy_port => {
415
+ :default => 3128,
416
+ :desc => "The HTTP proxy port to use for outgoing connections",
417
+ },
418
+ :http_proxy_user => {
419
+ :default => "none",
420
+ :desc => "The user name for an authenticated HTTP proxy. Requires the `http_proxy_host` setting.",
421
+ },
422
+ :http_proxy_password =>{
423
+ :default => "none",
424
+ :hook => proc do |value|
425
+ if Puppet.settings[:http_proxy_password] =~ /[@!# \/]/
426
+ raise "Passwords set in the http_proxy_password setting must be valid as part of a URL, and any reserved characters must be URL-encoded. We received: #{value}"
427
+ end
428
+ end,
429
+ :desc => "The password for the user of an authenticated HTTP proxy.
430
+ Requires the `http_proxy_user` setting.
431
+
432
+ Note that passwords must be valid when used as part of a URL. If a password
433
+ contains any characters with special meanings in URLs (as specified by RFC 3986
434
+ section 2.2), they must be URL-encoded. (For example, `#` would become `%23`.)",
435
+ },
436
+ :http_keepalive_timeout => {
437
+ :default => "4s",
438
+ :type => :duration,
439
+ :desc => "The maximum amount of time a persistent HTTP connection can remain idle in the connection pool, before it is closed. This timeout should be shorter than the keepalive timeout used on the HTTP server, e.g. Apache KeepAliveTimeout directive.
440
+ #{AS_DURATION}"
441
+ },
442
+ :http_debug => {
443
+ :default => false,
444
+ :type => :boolean,
445
+ :desc => "Whether to write HTTP request and responses to stderr. This should never be used in a production environment."
446
+ },
447
+ :filetimeout => {
448
+ :default => "15s",
449
+ :type => :duration,
450
+ :desc => "The minimum time to wait between checking for updates in
451
+ configuration files. This timeout determines how quickly Puppet checks whether
452
+ a file (such as manifests or templates) has changed on disk. #{AS_DURATION}",
453
+ },
454
+ :environment_timeout => {
455
+ :default => "3m",
456
+ :type => :ttl,
457
+ :desc => "The time to live for a cached environment.
458
+ #{AS_DURATION}
459
+ This setting can also be set to `unlimited`, which causes the environment to
460
+ be cached until the master is restarted."
461
+ },
462
+ :queue_type => {
463
+ :default => "stomp",
464
+ :desc => "Which type of queue to use for asynchronous processing.",
465
+ },
466
+ :queue_type => {
467
+ :default => "stomp",
468
+ :desc => "Which type of queue to use for asynchronous processing.",
469
+ },
470
+ :queue_source => {
471
+ :default => "stomp://localhost:61613/",
472
+ :desc => "Which type of queue to use for asynchronous processing. If your stomp server requires
473
+ authentication, you can include it in the URI as long as your stomp client library is at least 1.1.1",
474
+ },
475
+ :async_storeconfigs => {
476
+ :default => false,
477
+ :type => :boolean,
478
+ :desc => "Whether to use a queueing system to provide asynchronous database integration.
479
+ Requires that `puppet queue` be running.",
480
+ :hook => proc do |value|
481
+ if value
482
+ # This reconfigures the termini for Node, Facts, and Catalog
483
+ Puppet.settings.override_default(:storeconfigs, true)
484
+
485
+ # But then we modify the configuration
486
+ Puppet::Resource::Catalog.indirection.cache_class = :queue
487
+ Puppet.settings.override_default(:catalog_cache_terminus, :queue)
488
+ else
489
+ raise "Cannot disable asynchronous storeconfigs in a running process"
490
+ end
491
+ end
492
+ },
493
+ :thin_storeconfigs => {
494
+ :default => false,
495
+ :type => :boolean,
496
+ :desc =>
497
+ "Boolean; whether Puppet should store only facts and exported resources in the storeconfigs
498
+ database. This will improve the performance of exported resources with the older
499
+ `active_record` backend, but will disable external tools that search the storeconfigs database.
500
+ Thinning catalogs is generally unnecessary when using PuppetDB to store catalogs.",
501
+ :hook => proc do |value|
502
+ Puppet.settings.override_default(:storeconfigs, true) if value
503
+ end
504
+ },
505
+ :config_version => {
506
+ :default => "",
507
+ :desc => "How to determine the configuration version. By default, it will be the
508
+ time that the configuration is parsed, but you can provide a shell script to override how the
509
+ version is determined. The output of this script will be added to every log message in the
510
+ reports, allowing you to correlate changes on your hosts to the source version on the server.
511
+
512
+ Setting a global value for config_version in puppet.conf is deprecated. Please set a
513
+ per-environment value in environment.conf instead. For more info, see
514
+ http://docs.puppetlabs.com/puppet/latest/reference/environments.html",
515
+ :deprecated => :allowed_on_commandline,
516
+ },
517
+ :zlib => {
518
+ :default => true,
519
+ :type => :boolean,
520
+ :desc => "Boolean; whether to use the zlib library",
521
+ },
522
+ :prerun_command => {
523
+ :default => "",
524
+ :desc => "A command to run before every agent run. If this command returns a non-zero
525
+ return code, the entire Puppet run will fail.",
526
+ },
527
+ :postrun_command => {
528
+ :default => "",
529
+ :desc => "A command to run after every agent run. If this command returns a non-zero
530
+ return code, the entire Puppet run will be considered to have failed, even though it might have
531
+ performed work during the normal run.",
532
+ },
533
+ :freeze_main => {
534
+ :default => false,
535
+ :type => :boolean,
536
+ :desc => "Freezes the 'main' class, disallowing any code to be added to it. This
537
+ essentially means that you can't have any code outside of a node,
538
+ class, or definition other than in the site manifest.",
539
+ },
540
+ :stringify_facts => {
541
+ :default => true,
542
+ :type => :boolean,
543
+ :desc => "Flatten fact values to strings using #to_s. Means you can't have arrays or
544
+ hashes as fact values. (DEPRECATED) This option will be removed in Puppet 4.0.",
545
+ },
546
+ :trusted_node_data => {
547
+ :default => false,
548
+ :type => :boolean,
549
+ :desc => "Stores trusted node data in a hash called $trusted.
550
+ When true also prevents $trusted from being overridden in any scope.",
551
+ },
552
+ :immutable_node_data => {
553
+ :default => '$trusted_node_data',
554
+ :type => :boolean,
555
+ :desc => "When true, also prevents $trusted and $facts from being overridden in any scope",
556
+ }
557
+ )
558
+ Puppet.define_settings(:module_tool,
559
+ :module_repository => {
560
+ :default => 'https://forgeapi.puppetlabs.com',
561
+ :desc => "The module repository",
562
+ },
563
+ :module_working_dir => {
564
+ :default => '$vardir/puppet-module',
565
+ :desc => "The directory into which module tool data is stored",
566
+ },
567
+ :module_skeleton_dir => {
568
+ :default => '$module_working_dir/skeleton',
569
+ :desc => "The directory which the skeleton for module tool generate is stored.",
570
+ },
571
+ :forge_authorization => {
572
+ :default => nil,
573
+ :desc => "The authorization key to connect to the Puppet Forge. Leave blank for unauthorized or license based connections",
574
+ },
575
+ :module_groups => {
576
+ :default => nil,
577
+ :desc => "Extra module groups to request from the Puppet Forge",
578
+ }
579
+ )
580
+
581
+ Puppet.define_settings(
582
+ :main,
583
+
584
+ # We have to downcase the fqdn, because the current ssl stuff (as oppsed to in master) doesn't have good facilities for
585
+ # manipulating naming.
586
+ :certname => {
587
+ :default => lambda { Puppet::Settings.default_certname.downcase },
588
+ :desc => "The name to use when handling certificates. When a node
589
+ requests a certificate from the CA puppet master, it uses the value of the
590
+ `certname` setting as its requested Subject CN.
591
+
592
+ This is the name used when managing a node's permissions in
593
+ [auth.conf](http://docs.puppetlabs.com/puppet/latest/reference/config_file_auth.html).
594
+ In most cases, it is also used as the node's name when matching
595
+ [node definitions](http://docs.puppetlabs.com/puppet/latest/reference/lang_node_definitions.html)
596
+ and requesting data from an ENC. (This can be changed with the `node_name_value`
597
+ and `node_name_fact` settings, although you should only do so if you have
598
+ a compelling reason.)
599
+
600
+ A node's certname is available in Puppet manifests as `$trusted['certname']`. (See
601
+ [Facts and Built-In Variables](http://docs.puppetlabs.com/puppet/latest/reference/lang_facts_and_builtin_vars.html)
602
+ for more details.)
603
+
604
+ * For best compatibility, you should limit the value of `certname` to
605
+ only use letters, numbers, periods, underscores, and dashes. (That is,
606
+ it should match `/\A[a-z0-9._-]+\Z/`.)
607
+ * The special value `ca` is reserved, and can't be used as the certname
608
+ for a normal node.
609
+
610
+ Defaults to the node's fully qualified domain name.",
611
+ :hook => proc { |value| raise(ArgumentError, "Certificate names must be lower case; see #1168") unless value == value.downcase }},
612
+ :certdnsnames => {
613
+ :default => '',
614
+ :hook => proc do |value|
615
+ unless value.nil? or value == '' then
616
+ Puppet.warning <<WARN
617
+ The `certdnsnames` setting is no longer functional,
618
+ after CVE-2011-3872. We ignore the value completely.
619
+
620
+ For your own certificate request you can set `dns_alt_names` in the
621
+ configuration and it will apply locally. There is no configuration option to
622
+ set DNS alt names, or any other `subjectAltName` value, for another nodes
623
+ certificate.
624
+
625
+ Alternately you can use the `--dns_alt_names` command line option to set the
626
+ labels added while generating your own CSR.
627
+ WARN
628
+ end
629
+ end,
630
+ :desc => <<EOT
631
+ The `certdnsnames` setting is no longer functional,
632
+ after CVE-2011-3872. We ignore the value completely.
633
+
634
+ For your own certificate request you can set `dns_alt_names` in the
635
+ configuration and it will apply locally. There is no configuration option to
636
+ set DNS alt names, or any other `subjectAltName` value, for another nodes
637
+ certificate.
638
+
639
+ Alternately you can use the `--dns_alt_names` command line option to set the
640
+ labels added while generating your own CSR.
641
+ EOT
642
+ },
643
+ :dns_alt_names => {
644
+ :default => '',
645
+ :desc => <<EOT,
646
+ The comma-separated list of alternative DNS names to use for the local host.
647
+
648
+ When the node generates a CSR for itself, these are added to the request
649
+ as the desired `subjectAltName` in the certificate: additional DNS labels
650
+ that the certificate is also valid answering as.
651
+
652
+ This is generally required if you use a non-hostname `certname`, or if you
653
+ want to use `puppet kick` or `puppet resource -H` and the primary certname
654
+ does not match the DNS name you use to communicate with the host.
655
+
656
+ This is unnecessary for agents, unless you intend to use them as a server for
657
+ `puppet kick` or remote `puppet resource` management.
658
+
659
+ It is rarely necessary for servers; it is usually helpful only if you need to
660
+ have a pool of multiple load balanced masters, or for the same master to
661
+ respond on two physically separate networks under different names.
662
+ EOT
663
+ },
664
+ :csr_attributes => {
665
+ :default => "$confdir/csr_attributes.yaml",
666
+ :type => :file,
667
+ :desc => <<EOT
668
+ An optional file containing custom attributes to add to certificate signing
669
+ requests (CSRs). You should ensure that this file does not exist on your CA
670
+ puppet master; if it does, unwanted certificate extensions may leak into
671
+ certificates created with the `puppet cert generate` command.
672
+
673
+ If present, this file must be a YAML hash containing a `custom_attributes` key
674
+ and/or an `extension_requests` key. The value of each key must be a hash, where
675
+ each key is a valid OID and each value is an object that can be cast to a string.
676
+
677
+ Custom attributes can be used by the CA when deciding whether to sign the
678
+ certificate, but are then discarded. Attribute OIDs can be any OID value except
679
+ the standard CSR attributes (i.e. attributes described in RFC 2985 section 5.4).
680
+ This is useful for embedding a pre-shared key for autosigning policy executables
681
+ (see the `autosign` setting), often by using the `1.2.840.113549.1.9.7`
682
+ ("challenge password") OID.
683
+
684
+ Extension requests will be permanently embedded in the final certificate.
685
+ Extension OIDs must be in the "ppRegCertExt" (`1.3.6.1.4.1.34380.1.1`) or
686
+ "ppPrivCertExt" (`1.3.6.1.4.1.34380.1.2`) OID arcs. The ppRegCertExt arc is
687
+ reserved for four of the most common pieces of data to embed: `pp_uuid` (`.1`),
688
+ `pp_instance_id` (`.2`), `pp_image_name` (`.3`), and `pp_preshared_key` (`.4`)
689
+ --- in the YAML file, these can be referred to by their short descriptive names
690
+ instead of their full OID. The ppPrivCertExt arc is unregulated, and can be used
691
+ for site-specific extensions.
692
+ EOT
693
+ },
694
+ :certdir => {
695
+ :default => "$ssldir/certs",
696
+ :type => :directory,
697
+ :mode => "0755",
698
+ :owner => "service",
699
+ :group => "service",
700
+ :desc => "The certificate directory."
701
+ },
702
+ :ssldir => {
703
+ :default => "$confdir/ssl",
704
+ :type => :directory,
705
+ :mode => "0771",
706
+ :owner => "service",
707
+ :group => "service",
708
+ :desc => "Where SSL certificates are kept."
709
+ },
710
+ :publickeydir => {
711
+ :default => "$ssldir/public_keys",
712
+ :type => :directory,
713
+ :mode => "0755",
714
+ :owner => "service",
715
+ :group => "service",
716
+ :desc => "The public key directory."
717
+ },
718
+ :requestdir => {
719
+ :default => "$ssldir/certificate_requests",
720
+ :type => :directory,
721
+ :mode => "0755",
722
+ :owner => "service",
723
+ :group => "service",
724
+ :desc => "Where host certificate requests are stored."
725
+ },
726
+ :privatekeydir => {
727
+ :default => "$ssldir/private_keys",
728
+ :type => :directory,
729
+ :mode => "0750",
730
+ :owner => "service",
731
+ :group => "service",
732
+ :desc => "The private key directory."
733
+ },
734
+ :privatedir => {
735
+ :default => "$ssldir/private",
736
+ :type => :directory,
737
+ :mode => "0750",
738
+ :owner => "service",
739
+ :group => "service",
740
+ :desc => "Where the client stores private certificate information."
741
+ },
742
+ :passfile => {
743
+ :default => "$privatedir/password",
744
+ :type => :file,
745
+ :mode => "0640",
746
+ :owner => "service",
747
+ :group => "service",
748
+ :desc => "Where puppet agent stores the password for its private key.
749
+ Generally unused."
750
+ },
751
+ :hostcsr => {
752
+ :default => "$ssldir/csr_$certname.pem",
753
+ :type => :file,
754
+ :mode => "0644",
755
+ :owner => "service",
756
+ :group => "service",
757
+ :desc => "Where individual hosts store and look for their certificate requests."
758
+ },
759
+ :hostcert => {
760
+ :default => "$certdir/$certname.pem",
761
+ :type => :file,
762
+ :mode => "0644",
763
+ :owner => "service",
764
+ :group => "service",
765
+ :desc => "Where individual hosts store and look for their certificates."
766
+ },
767
+ :hostprivkey => {
768
+ :default => "$privatekeydir/$certname.pem",
769
+ :type => :file,
770
+ :mode => "0640",
771
+ :owner => "service",
772
+ :group => "service",
773
+ :desc => "Where individual hosts store and look for their private key."
774
+ },
775
+ :hostpubkey => {
776
+ :default => "$publickeydir/$certname.pem",
777
+ :type => :file,
778
+ :mode => "0644",
779
+ :owner => "service",
780
+ :group => "service",
781
+ :desc => "Where individual hosts store and look for their public key."
782
+ },
783
+ :localcacert => {
784
+ :default => "$certdir/ca.pem",
785
+ :type => :file,
786
+ :mode => "0644",
787
+ :owner => "service",
788
+ :group => "service",
789
+ :desc => "Where each client stores the CA certificate."
790
+ },
791
+ :ssl_client_ca_auth => {
792
+ :type => :file,
793
+ :mode => "0644",
794
+ :owner => "service",
795
+ :group => "service",
796
+ :desc => "Certificate authorities who issue server certificates. SSL servers will not be
797
+ considered authentic unless they possess a certificate issued by an authority
798
+ listed in this file. If this setting has no value then the Puppet master's CA
799
+ certificate (localcacert) will be used."
800
+ },
801
+ :ssl_server_ca_auth => {
802
+ :type => :file,
803
+ :mode => "0644",
804
+ :owner => "service",
805
+ :group => "service",
806
+ :desc => "Certificate authorities who issue client certificates. SSL clients will not be
807
+ considered authentic unless they possess a certificate issued by an authority
808
+ listed in this file. If this setting has no value then the Puppet master's CA
809
+ certificate (localcacert) will be used."
810
+ },
811
+ :hostcrl => {
812
+ :default => "$ssldir/crl.pem",
813
+ :type => :file,
814
+ :mode => "0644",
815
+ :owner => "service",
816
+ :group => "service",
817
+ :desc => "Where the host's certificate revocation list can be found.
818
+ This is distinct from the certificate authority's CRL."
819
+ },
820
+ :certificate_revocation => {
821
+ :default => true,
822
+ :type => :boolean,
823
+ :desc => "Whether certificate revocation should be supported by downloading a
824
+ Certificate Revocation List (CRL)
825
+ to all clients. If enabled, CA chaining will almost definitely not work.",
826
+ },
827
+ :certificate_expire_warning => {
828
+ :default => "60d",
829
+ :type => :duration,
830
+ :desc => "The window of time leading up to a certificate's expiration that a notification
831
+ will be logged. This applies to CA, master, and agent certificates. #{AS_DURATION}"
832
+ },
833
+ :digest_algorithm => {
834
+ :default => 'md5',
835
+ :type => :enum,
836
+ :values => ["md5", "sha256"],
837
+ :desc => 'Which digest algorithm to use for file resources and the filebucket.
838
+ Valid values are md5, sha256. Default is md5.',
839
+ }
840
+ )
841
+
842
+ define_settings(
843
+ :ca,
844
+ :ca_name => {
845
+ :default => "Puppet CA: $certname",
846
+ :desc => "The name to use the Certificate Authority certificate.",
847
+ },
848
+ :cadir => {
849
+ :default => "$ssldir/ca",
850
+ :type => :directory,
851
+ :owner => "service",
852
+ :group => "service",
853
+ :mode => "0755",
854
+ :desc => "The root directory for the certificate authority."
855
+ },
856
+ :cacert => {
857
+ :default => "$cadir/ca_crt.pem",
858
+ :type => :file,
859
+ :owner => "service",
860
+ :group => "service",
861
+ :mode => "0644",
862
+ :desc => "The CA certificate."
863
+ },
864
+ :cakey => {
865
+ :default => "$cadir/ca_key.pem",
866
+ :type => :file,
867
+ :owner => "service",
868
+ :group => "service",
869
+ :mode => "0640",
870
+ :desc => "The CA private key."
871
+ },
872
+ :capub => {
873
+ :default => "$cadir/ca_pub.pem",
874
+ :type => :file,
875
+ :owner => "service",
876
+ :group => "service",
877
+ :mode => "0644",
878
+ :desc => "The CA public key."
879
+ },
880
+ :cacrl => {
881
+ :default => "$cadir/ca_crl.pem",
882
+ :type => :file,
883
+ :owner => "service",
884
+ :group => "service",
885
+ :mode => "0644",
886
+ :desc => "The certificate revocation list (CRL) for the CA. Will be used if present but otherwise ignored.",
887
+ },
888
+ :caprivatedir => {
889
+ :default => "$cadir/private",
890
+ :type => :directory,
891
+ :owner => "service",
892
+ :group => "service",
893
+ :mode => "0750",
894
+ :desc => "Where the CA stores private certificate information."
895
+ },
896
+ :csrdir => {
897
+ :default => "$cadir/requests",
898
+ :type => :directory,
899
+ :owner => "service",
900
+ :group => "service",
901
+ :mode => "0755",
902
+ :desc => "Where the CA stores certificate requests"
903
+ },
904
+ :signeddir => {
905
+ :default => "$cadir/signed",
906
+ :type => :directory,
907
+ :owner => "service",
908
+ :group => "service",
909
+ :mode => "0755",
910
+ :desc => "Where the CA stores signed certificates."
911
+ },
912
+ :capass => {
913
+ :default => "$caprivatedir/ca.pass",
914
+ :type => :file,
915
+ :owner => "service",
916
+ :group => "service",
917
+ :mode => "0640",
918
+ :desc => "Where the CA stores the password for the private key."
919
+ },
920
+ :serial => {
921
+ :default => "$cadir/serial",
922
+ :type => :file,
923
+ :owner => "service",
924
+ :group => "service",
925
+ :mode => "0644",
926
+ :desc => "Where the serial number for certificates is stored."
927
+ },
928
+ :autosign => {
929
+ :default => "$confdir/autosign.conf",
930
+ :type => :autosign,
931
+ :desc => "Whether (and how) to autosign certificate requests. This setting
932
+ is only relevant on a puppet master acting as a certificate authority (CA).
933
+
934
+ Valid values are true (autosigns all certificate requests; not recommended),
935
+ false (disables autosigning certificates), or the absolute path to a file.
936
+
937
+ The file specified in this setting may be either a **configuration file**
938
+ or a **custom policy executable.** Puppet will automatically determine
939
+ what it is: If the Puppet user (see the `user` setting) can execute the
940
+ file, it will be treated as a policy executable; otherwise, it will be
941
+ treated as a config file.
942
+
943
+ If a custom policy executable is configured, the CA puppet master will run it
944
+ every time it receives a CSR. The executable will be passed the subject CN of the
945
+ request _as a command line argument,_ and the contents of the CSR in PEM format
946
+ _on stdin._ It should exit with a status of 0 if the cert should be autosigned
947
+ and non-zero if the cert should not be autosigned.
948
+
949
+ If a certificate request is not autosigned, it will persist for review. An admin
950
+ user can use the `puppet cert sign` command to manually sign it, or can delete
951
+ the request.
952
+
953
+ For info on autosign configuration files, see
954
+ [the guide to Puppet's config files](http://docs.puppetlabs.com/guides/configuring.html).",
955
+ },
956
+ :allow_duplicate_certs => {
957
+ :default => false,
958
+ :type => :boolean,
959
+ :desc => "Whether to allow a new certificate
960
+ request to overwrite an existing certificate.",
961
+ },
962
+ :ca_ttl => {
963
+ :default => "5y",
964
+ :type => :duration,
965
+ :desc => "The default TTL for new certificates.
966
+ #{AS_DURATION}"
967
+ },
968
+ :req_bits => {
969
+ :default => 4096,
970
+ :desc => "The bit length of the certificates.",
971
+ },
972
+ :keylength => {
973
+ :default => 4096,
974
+ :desc => "The bit length of keys.",
975
+ },
976
+ :cert_inventory => {
977
+ :default => "$cadir/inventory.txt",
978
+ :type => :file,
979
+ :mode => "0644",
980
+ :owner => "service",
981
+ :group => "service",
982
+ :desc => "The inventory file. This is a text file to which the CA writes a
983
+ complete listing of all certificates."
984
+ }
985
+ )
986
+
987
+ # Define the config default.
988
+
989
+ define_settings(:application,
990
+ :config_file_name => {
991
+ :type => :string,
992
+ :default => Puppet::Settings.default_config_file_name,
993
+ :desc => "The name of the puppet config file.",
994
+ },
995
+ :config => {
996
+ :type => :file,
997
+ :default => "$confdir/${config_file_name}",
998
+ :desc => "The configuration file for the current puppet application.",
999
+ },
1000
+ :pidfile => {
1001
+ :type => :file,
1002
+ :default => "$rundir/${run_mode}.pid",
1003
+ :desc => "The file containing the PID of a running process.
1004
+ This file is intended to be used by service management frameworks
1005
+ and monitoring systems to determine if a puppet process is still in
1006
+ the process table.",
1007
+ },
1008
+ :bindaddress => {
1009
+ :default => "0.0.0.0",
1010
+ :desc => "The address a listening server should bind to.",
1011
+ }
1012
+ )
1013
+
1014
+ define_settings(:master,
1015
+ :user => {
1016
+ :default => "puppet",
1017
+ :desc => "The user puppet master should run as.",
1018
+ },
1019
+ :group => {
1020
+ :default => "puppet",
1021
+ :desc => "The group puppet master should run as.",
1022
+ },
1023
+ :manifestdir => {
1024
+ :default => "$confdir/manifests",
1025
+ :type => :directory,
1026
+ :desc => "Used to build the default value of the `manifest` setting. Has no other purpose.
1027
+
1028
+ This setting is deprecated.",
1029
+ :deprecated => :completely,
1030
+ },
1031
+ :manifest => {
1032
+ :default => "$manifestdir/site.pp",
1033
+ :type => :file_or_directory,
1034
+ :desc => "The entry-point manifest for puppet master. This can be one file
1035
+ or a directory of manifests to be evaluated in alphabetical order. Puppet manages
1036
+ this path as a directory if one exists or if the path ends with a / or \\.
1037
+
1038
+ Setting a global value for `manifest` in puppet.conf is deprecated. Please use
1039
+ directory environments instead. If you need to use something other than the
1040
+ environment's `manifests` directory as the main manifest, you can set
1041
+ `manifest` in environment.conf. For more info, see
1042
+ http://docs.puppetlabs.com/puppet/latest/reference/environments.html",
1043
+ :deprecated => :allowed_on_commandline,
1044
+ },
1045
+ :default_manifest => {
1046
+ :default => "./manifests",
1047
+ :type => :string,
1048
+ :desc => "The default main manifest for directory environments. Any environment that
1049
+ doesn't set the `manifest` setting in its `environment.conf` file will use
1050
+ this manifest.
1051
+
1052
+ This setting's value can be an absolute or relative path. An absolute path
1053
+ will make all environments default to the same main manifest; a relative
1054
+ path will allow each environment to use its own manifest, and Puppet will
1055
+ resolve the path relative to each environment's main directory.
1056
+
1057
+ In either case, the path can point to a single file or to a directory of
1058
+ manifests to be evaluated in alphabetical order.",
1059
+ },
1060
+ :disable_per_environment_manifest => {
1061
+ :default => false,
1062
+ :type => :boolean,
1063
+ :desc => "Whether to disallow an environment-specific main manifest. When set
1064
+ to `true`, Puppet will use the manifest specified in the `default_manifest` setting
1065
+ for all environments. If an environment specifies a different main manifest in its
1066
+ `environment.conf` file, catalog requests for that environment will fail with an error.
1067
+
1068
+ This setting requires `default_manifest` to be set to an absolute path.",
1069
+ :hook => proc do |value|
1070
+ if value && !Pathname.new(Puppet[:default_manifest]).absolute?
1071
+ raise(Puppet::Settings::ValidationError,
1072
+ "The 'default_manifest' setting must be set to an absolute path when 'disable_per_environment_manifest' is true")
1073
+ end
1074
+ end,
1075
+ },
1076
+ :code => {
1077
+ :default => "",
1078
+ :desc => "Code to parse directly. This is essentially only used
1079
+ by `puppet`, and should only be set if you're writing your own Puppet
1080
+ executable.",
1081
+ },
1082
+ :masterlog => {
1083
+ :default => "$logdir/puppetmaster.log",
1084
+ :type => :file,
1085
+ :owner => "service",
1086
+ :group => "service",
1087
+ :mode => "0660",
1088
+ :desc => "This file is literally never used, although Puppet may create it
1089
+ as an empty file. For more context, see the `puppetdlog` setting and
1090
+ puppet master's `--logdest` command line option.
1091
+
1092
+ This setting is deprecated and will be removed in a future version of Puppet.",
1093
+ :deprecated => :completely
1094
+ },
1095
+ :masterhttplog => {
1096
+ :default => "$logdir/masterhttp.log",
1097
+ :type => :file,
1098
+ :owner => "service",
1099
+ :group => "service",
1100
+ :mode => "0660",
1101
+ :create => true,
1102
+ :desc => "Where the puppet master web server saves its access log. This is
1103
+ only used when running a WEBrick puppet master. When puppet master is
1104
+ running under a Rack server like Passenger, that web server will have
1105
+ its own logging behavior."
1106
+ },
1107
+ :masterport => {
1108
+ :default => 8140,
1109
+ :desc => "The port for puppet master traffic. For puppet master,
1110
+ this is the port to listen on; for puppet agent, this is the port
1111
+ to make requests on. Both applications use this setting to get the port.",
1112
+ },
1113
+ :node_name => {
1114
+ :default => "cert",
1115
+ :desc => "How the puppet master determines the client's identity
1116
+ and sets the 'hostname', 'fqdn' and 'domain' facts for use in the manifest,
1117
+ in particular for determining which 'node' statement applies to the client.
1118
+ Possible values are 'cert' (use the subject's CN in the client's
1119
+ certificate) and 'facter' (use the hostname that the client
1120
+ reported in its facts)",
1121
+ },
1122
+ :bucketdir => {
1123
+ :default => "$vardir/bucket",
1124
+ :type => :directory,
1125
+ :mode => "0750",
1126
+ :owner => "service",
1127
+ :group => "service",
1128
+ :desc => "Where FileBucket files are stored."
1129
+ },
1130
+ :rest_authconfig => {
1131
+ :default => "$confdir/auth.conf",
1132
+ :type => :file,
1133
+ :desc => "The configuration file that defines the rights to the different
1134
+ rest indirections. This can be used as a fine-grained
1135
+ authorization system for `puppet master`.",
1136
+ },
1137
+ :ca => {
1138
+ :default => true,
1139
+ :type => :boolean,
1140
+ :desc => "Whether the master should function as a certificate authority.",
1141
+ },
1142
+ :basemodulepath => {
1143
+ :default => "$confdir/modules#{File::PATH_SEPARATOR}/usr/share/puppet/modules",
1144
+ :type => :path,
1145
+ :desc => "The search path for **global** modules. Should be specified as a
1146
+ list of directories separated by the system path separator character. (The
1147
+ POSIX path separator is ':', and the Windows path separator is ';'.)
1148
+
1149
+ If you are using directory environments, these are the modules that will
1150
+ be used by _all_ environments. Note that the `modules` directory of the active
1151
+ environment will have priority over any global directories. For more info, see
1152
+ http://docs.puppetlabs.com/puppet/latest/reference/environments.html
1153
+
1154
+ This setting also provides the default value for the deprecated `modulepath`
1155
+ setting, which is used when directory environments are disabled.",
1156
+ },
1157
+ :modulepath => {
1158
+ :default => "$basemodulepath",
1159
+ :type => :path,
1160
+ :desc => "The search path for modules, as a list of directories separated by the system
1161
+ path separator character. (The POSIX path separator is ':', and the
1162
+ Windows path separator is ';'.)
1163
+
1164
+ Setting a global value for `modulepath` in puppet.conf is deprecated. Please use
1165
+ directory environments instead. If you need to use something other than the
1166
+ default modulepath of `<ACTIVE ENVIRONMENT'S MODULES DIR>:$basemodulepath`,
1167
+ you can set `modulepath` in environment.conf. For more info, see
1168
+ http://docs.puppetlabs.com/puppet/latest/reference/environments.html",
1169
+ :deprecated => :allowed_on_commandline,
1170
+ },
1171
+ :ssl_client_header => {
1172
+ :default => "HTTP_X_CLIENT_DN",
1173
+ :desc => "The header containing an authenticated client's SSL DN.
1174
+ This header must be set by the proxy to the authenticated client's SSL
1175
+ DN (e.g., `/CN=puppet.puppetlabs.com`). Puppet will parse out the Common
1176
+ Name (CN) from the Distinguished Name (DN) and use the value of the CN
1177
+ field for authorization.
1178
+
1179
+ Note that the name of the HTTP header gets munged by the web server
1180
+ common gateway inteface: an `HTTP_` prefix is added, dashes are converted
1181
+ to underscores, and all letters are uppercased. Thus, to use the
1182
+ `X-Client-DN` header, this setting should be `HTTP_X_CLIENT_DN`.",
1183
+ },
1184
+ :ssl_client_verify_header => {
1185
+ :default => "HTTP_X_CLIENT_VERIFY",
1186
+ :desc => "The header containing the status message of the client
1187
+ verification. This header must be set by the proxy to 'SUCCESS' if the
1188
+ client successfully authenticated, and anything else otherwise.
1189
+
1190
+ Note that the name of the HTTP header gets munged by the web server
1191
+ common gateway inteface: an `HTTP_` prefix is added, dashes are converted
1192
+ to underscores, and all letters are uppercased. Thus, to use the
1193
+ `X-Client-Verify` header, this setting should be
1194
+ `HTTP_X_CLIENT_VERIFY`.",
1195
+ },
1196
+ # To make sure this directory is created before we try to use it on the server, we need
1197
+ # it to be in the server section (#1138).
1198
+ :yamldir => {
1199
+ :default => "$vardir/yaml",
1200
+ :type => :directory,
1201
+ :owner => "service",
1202
+ :group => "service",
1203
+ :mode => "0750",
1204
+ :desc => "The directory in which YAML data is stored, usually in a subdirectory."},
1205
+ :server_datadir => {
1206
+ :default => "$vardir/server_data",
1207
+ :type => :directory,
1208
+ :owner => "service",
1209
+ :group => "service",
1210
+ :mode => "0750",
1211
+ :desc => "The directory in which serialized data is stored, usually in a subdirectory."},
1212
+ :reports => {
1213
+ :default => "store",
1214
+ :desc => "The list of report handlers to use. When using multiple report handlers,
1215
+ their names should be comma-separated, with whitespace allowed. (For example,
1216
+ `reports = http, tagmail`.)
1217
+
1218
+ This setting is relevant to puppet master and puppet apply. The puppet
1219
+ master will call these report handlers with the reports it receives from
1220
+ agent nodes, and puppet apply will call them with its own report. (In
1221
+ all cases, the node applying the catalog must have `report = true`.)
1222
+
1223
+ See the report reference for information on the built-in report
1224
+ handlers; custom report handlers can also be loaded from modules.
1225
+ (Report handlers are loaded from the lib directory, at
1226
+ `puppet/reports/NAME.rb`.)",
1227
+ },
1228
+ :reportdir => {
1229
+ :default => "$vardir/reports",
1230
+ :type => :directory,
1231
+ :mode => "0750",
1232
+ :owner => "service",
1233
+ :group => "service",
1234
+ :desc => "The directory in which to store reports. Each node gets
1235
+ a separate subdirectory in this directory. This setting is only
1236
+ used when the `store` report processor is enabled (see the
1237
+ `reports` setting)."},
1238
+ :reporturl => {
1239
+ :default => "http://localhost:3000/reports/upload",
1240
+ :desc => "The URL that reports should be forwarded to. This setting
1241
+ is only used when the `http` report processor is enabled (see the
1242
+ `reports` setting).",
1243
+ },
1244
+ :fileserverconfig => {
1245
+ :default => "$confdir/fileserver.conf",
1246
+ :type => :file,
1247
+ :desc => "Where the fileserver configuration is stored.",
1248
+ },
1249
+ :strict_hostname_checking => {
1250
+ :default => false,
1251
+ :desc => "Whether to only search for the complete
1252
+ hostname as it is in the certificate when searching for node information
1253
+ in the catalogs.",
1254
+ }
1255
+ )
1256
+
1257
+ define_settings(:metrics,
1258
+ :rrddir => {
1259
+ :type => :directory,
1260
+ :default => "$vardir/rrd",
1261
+ :mode => "0750",
1262
+ :owner => "service",
1263
+ :group => "service",
1264
+ :desc => "The directory where RRD database files are stored.
1265
+ Directories for each reporting host will be created under
1266
+ this directory."
1267
+ },
1268
+ :rrdinterval => {
1269
+ :default => "$runinterval",
1270
+ :type => :duration,
1271
+ :desc => "How often RRD should expect data.
1272
+ This should match how often the hosts report back to the server. #{AS_DURATION}",
1273
+ }
1274
+ )
1275
+
1276
+ define_settings(:device,
1277
+ :devicedir => {
1278
+ :default => "$vardir/devices",
1279
+ :type => :directory,
1280
+ :mode => "0750",
1281
+ :desc => "The root directory of devices' $vardir.",
1282
+ },
1283
+ :deviceconfig => {
1284
+ :default => "$confdir/device.conf",
1285
+ :desc => "Path to the device config file for puppet device.",
1286
+ }
1287
+ )
1288
+
1289
+ define_settings(:agent,
1290
+ :node_name_value => {
1291
+ :default => "$certname",
1292
+ :desc => "The explicit value used for the node name for all requests the agent
1293
+ makes to the master. WARNING: This setting is mutually exclusive with
1294
+ node_name_fact. Changing this setting also requires changes to the default
1295
+ auth.conf configuration on the Puppet Master. Please see
1296
+ http://links.puppetlabs.com/node_name_value for more information."
1297
+ },
1298
+ :node_name_fact => {
1299
+ :default => "",
1300
+ :desc => "The fact name used to determine the node name used for all requests the agent
1301
+ makes to the master. WARNING: This setting is mutually exclusive with
1302
+ node_name_value. Changing this setting also requires changes to the default
1303
+ auth.conf configuration on the Puppet Master. Please see
1304
+ http://links.puppetlabs.com/node_name_fact for more information.",
1305
+ :hook => proc do |value|
1306
+ if !value.empty? and Puppet[:node_name_value] != Puppet[:certname]
1307
+ raise "Cannot specify both the node_name_value and node_name_fact settings"
1308
+ end
1309
+ end
1310
+ },
1311
+ :localconfig => {
1312
+ :default => "$statedir/localconfig",
1313
+ :type => :file,
1314
+ :owner => "root",
1315
+ :mode => "0660",
1316
+ :desc => "Where puppet agent caches the local configuration. An
1317
+ extension indicating the cache format is added automatically."},
1318
+ :statefile => {
1319
+ :default => "$statedir/state.yaml",
1320
+ :type => :file,
1321
+ :mode => "0660",
1322
+ :desc => "Where puppet agent and puppet master store state associated
1323
+ with the running configuration. In the case of puppet master,
1324
+ this file reflects the state discovered through interacting
1325
+ with clients."
1326
+ },
1327
+ :clientyamldir => {
1328
+ :default => "$vardir/client_yaml",
1329
+ :type => :directory,
1330
+ :mode => "0750",
1331
+ :desc => "The directory in which client-side YAML data is stored."
1332
+ },
1333
+ :client_datadir => {
1334
+ :default => "$vardir/client_data",
1335
+ :type => :directory,
1336
+ :mode => "0750",
1337
+ :desc => "The directory in which serialized data is stored on the client."
1338
+ },
1339
+ :classfile => {
1340
+ :default => "$statedir/classes.txt",
1341
+ :type => :file,
1342
+ :owner => "root",
1343
+ :mode => "0640",
1344
+ :desc => "The file in which puppet agent stores a list of the classes
1345
+ associated with the retrieved configuration. Can be loaded in
1346
+ the separate `puppet` executable using the `--loadclasses`
1347
+ option."},
1348
+ :resourcefile => {
1349
+ :default => "$statedir/resources.txt",
1350
+ :type => :file,
1351
+ :owner => "root",
1352
+ :mode => "0640",
1353
+ :desc => "The file in which puppet agent stores a list of the resources
1354
+ associated with the retrieved configuration." },
1355
+ :puppetdlog => {
1356
+ :default => "$logdir/puppetd.log",
1357
+ :type => :file,
1358
+ :owner => "root",
1359
+ :mode => "0640",
1360
+ :desc => "The fallback log file. This is only used when the `--logdest` option
1361
+ is not specified AND Puppet is running on an operating system where both
1362
+ the POSIX syslog service and the Windows Event Log are unavailable. (Currently,
1363
+ no supported operating systems match that description.)
1364
+
1365
+ Despite the name, both puppet agent and puppet master will use this file
1366
+ as the fallback logging destination.
1367
+
1368
+ For control over logging destinations, see the `--logdest` command line
1369
+ option in the manual pages for puppet master, puppet agent, and puppet
1370
+ apply. You can see man pages by running `puppet <SUBCOMMAND> --help`,
1371
+ or read them online at http://docs.puppetlabs.com/references/latest/man/."
1372
+ },
1373
+ :server => {
1374
+ :default => "puppet",
1375
+ :desc => "The puppet master server to which the puppet agent should connect."
1376
+ },
1377
+ :use_srv_records => {
1378
+ :default => false,
1379
+ :type => :boolean,
1380
+ :desc => "Whether the server will search for SRV records in DNS for the current domain.",
1381
+ },
1382
+ :srv_domain => {
1383
+ :default => lambda { Puppet::Settings.domain_fact },
1384
+ :desc => "The domain which will be queried to find the SRV records of servers to use.",
1385
+ },
1386
+ :ignoreschedules => {
1387
+ :default => false,
1388
+ :type => :boolean,
1389
+ :desc => "Boolean; whether puppet agent should ignore schedules. This is useful
1390
+ for initial puppet agent runs.",
1391
+ },
1392
+ :default_schedules => {
1393
+ :default => true,
1394
+ :type => :boolean,
1395
+ :desc => "Boolean; whether to generate the default schedule resources. Setting this to
1396
+ false is useful for keeping external report processors clean of skipped schedule resources.",
1397
+ },
1398
+ :puppetport => {
1399
+ :default => 8139,
1400
+ :desc => "Which port puppet agent listens on.",
1401
+ },
1402
+ :noop => {
1403
+ :default => false,
1404
+ :type => :boolean,
1405
+ :desc => "Whether to apply catalogs in noop mode, which allows Puppet to
1406
+ partially simulate a normal run. This setting affects puppet agent and
1407
+ puppet apply.
1408
+
1409
+ When running in noop mode, Puppet will check whether each resource is in sync,
1410
+ like it does when running normally. However, if a resource attribute is not in
1411
+ the desired state (as declared in the catalog), Puppet will take no
1412
+ action, and will instead report the changes it _would_ have made. These
1413
+ simulated changes will appear in the report sent to the puppet master, or
1414
+ be shown on the console if running puppet agent or puppet apply in the
1415
+ foreground. The simulated changes will not send refresh events to any
1416
+ subscribing or notified resources, although Puppet will log that a refresh
1417
+ event _would_ have been sent.
1418
+
1419
+ **Important note:**
1420
+ [The `noop` metaparameter](http://docs.puppetlabs.com/references/latest/metaparameter.html#noop)
1421
+ allows you to apply individual resources in noop mode, and will override
1422
+ the global value of the `noop` setting. This means a resource with
1423
+ `noop => false` _will_ be changed if necessary, even when running puppet
1424
+ agent with `noop = true` or `--noop`. (Conversely, a resource with
1425
+ `noop => true` will only be simulated, even when noop mode is globally disabled.)",
1426
+ },
1427
+ :runinterval => {
1428
+ :default => "30m",
1429
+ :type => :duration,
1430
+ :desc => "How often puppet agent applies the catalog.
1431
+ Note that a runinterval of 0 means \"run continuously\" rather than
1432
+ \"never run.\" If you want puppet agent to never run, you should start
1433
+ it with the `--no-client` option. #{AS_DURATION}",
1434
+ },
1435
+ :listen => {
1436
+ :default => false,
1437
+ :type => :boolean,
1438
+ :desc => "Whether puppet agent should listen for
1439
+ connections. If this is true, then puppet agent will accept incoming
1440
+ REST API requests, subject to the default ACLs and the ACLs set in
1441
+ the `rest_authconfig` file. Puppet agent can respond usefully to
1442
+ requests on the `run`, `facts`, `certificate`, and `resource` endpoints.",
1443
+ },
1444
+ :ca_server => {
1445
+ :default => "$server",
1446
+ :desc => "The server to use for certificate
1447
+ authority requests. It's a separate server because it cannot
1448
+ and does not need to horizontally scale.",
1449
+ },
1450
+ :ca_port => {
1451
+ :default => "$masterport",
1452
+ :desc => "The port to use for the certificate authority.",
1453
+ },
1454
+ :catalog_format => {
1455
+ :default => "",
1456
+ :desc => "(Deprecated for 'preferred_serialization_format') What format to
1457
+ use to dump the catalog. Only supports 'marshal' and 'yaml'. Only
1458
+ matters on the client, since it asks the server for a specific format.",
1459
+ :hook => proc { |value|
1460
+ if value
1461
+ Puppet.deprecation_warning "Setting 'catalog_format' is deprecated; use 'preferred_serialization_format' instead."
1462
+ Puppet.settings.override_default(:preferred_serialization_format, value)
1463
+ end
1464
+ }
1465
+ },
1466
+ :preferred_serialization_format => {
1467
+ :default => "pson",
1468
+ :desc => "The preferred means of serializing
1469
+ ruby instances for passing over the wire. This won't guarantee that all
1470
+ instances will be serialized using this method, since not all classes
1471
+ can be guaranteed to support this format, but it will be used for all
1472
+ classes that support it.",
1473
+ },
1474
+ :report_serialization_format => {
1475
+ :default => "pson",
1476
+ :type => :enum,
1477
+ :values => ["pson", "yaml"],
1478
+ :desc => "The serialization format to use when sending reports to the
1479
+ `report_server`. Possible values are `pson` and `yaml`. This setting
1480
+ affects puppet agent, but not puppet apply (which processes its own
1481
+ reports).
1482
+
1483
+ This should almost always be set to `pson`. It can be temporarily set to
1484
+ `yaml` to let agents using this Puppet version connect to a puppet master
1485
+ running Puppet 3.0.0 through 3.2.x.
1486
+
1487
+ Note that this is set to 'yaml' automatically if the agent detects an
1488
+ older master, so should never need to be set explicitly."
1489
+ },
1490
+ :legacy_query_parameter_serialization => {
1491
+ :default => false,
1492
+ :type => :boolean,
1493
+ :desc => "The serialization format to use when sending file_metadata
1494
+ query parameters. Older versions of puppet master expect certain query
1495
+ parameters to be serialized as yaml, which is deprecated.
1496
+
1497
+ This should almost always be false. It can be temporarily set to true
1498
+ to let agents using this Puppet version connect to a puppet master
1499
+ running Puppet 3.0.0 through 3.2.x.
1500
+
1501
+ Note that this is set to true automatically if the agent detects an
1502
+ older master, so should never need to be set explicitly."
1503
+ },
1504
+ :agent_catalog_run_lockfile => {
1505
+ :default => "$statedir/agent_catalog_run.lock",
1506
+ :type => :string, # (#2888) Ensure this file is not added to the settings catalog.
1507
+ :desc => "A lock file to indicate that a puppet agent catalog run is currently in progress.
1508
+ The file contains the pid of the process that holds the lock on the catalog run.",
1509
+ },
1510
+ :agent_disabled_lockfile => {
1511
+ :default => "$statedir/agent_disabled.lock",
1512
+ :type => :file,
1513
+ :desc => "A lock file to indicate that puppet agent runs have been administratively
1514
+ disabled. File contains a JSON object with state information.",
1515
+ },
1516
+ :usecacheonfailure => {
1517
+ :default => true,
1518
+ :type => :boolean,
1519
+ :desc => "Whether to use the cached configuration when the remote
1520
+ configuration will not compile. This option is useful for testing
1521
+ new configurations, where you want to fix the broken configuration
1522
+ rather than reverting to a known-good one.",
1523
+ },
1524
+ :use_cached_catalog => {
1525
+ :default => false,
1526
+ :type => :boolean,
1527
+ :desc => "Whether to only use the cached catalog rather than compiling a new catalog
1528
+ on every run. Puppet can be run with this enabled by default and then selectively
1529
+ disabled when a recompile is desired.",
1530
+ },
1531
+ :ignoremissingtypes => {
1532
+ :default => false,
1533
+ :type => :boolean,
1534
+ :desc => "Skip searching for classes and definitions that were missing during a
1535
+ prior compilation. The list of missing objects is maintained per-environment and
1536
+ persists until the environment is cleared or the master is restarted.",
1537
+ },
1538
+ :ignorecache => {
1539
+ :default => false,
1540
+ :type => :boolean,
1541
+ :desc => "Ignore cache and always recompile the configuration. This is
1542
+ useful for testing new configurations, where the local cache may in
1543
+ fact be stale even if the timestamps are up to date - if the facts
1544
+ change or if the server changes.",
1545
+ },
1546
+ :dynamicfacts => {
1547
+ :default => "memorysize,memoryfree,swapsize,swapfree",
1548
+ :desc => "(Deprecated) Facts that are dynamic; these facts will be ignored when deciding whether
1549
+ changed facts should result in a recompile. Multiple facts should be
1550
+ comma-separated.",
1551
+ :hook => proc { |value|
1552
+ if value
1553
+ Puppet.deprecation_warning "The dynamicfacts setting is deprecated and will be ignored."
1554
+ end
1555
+ }
1556
+ },
1557
+ :splaylimit => {
1558
+ :default => "$runinterval",
1559
+ :type => :duration,
1560
+ :desc => "The maximum time to delay before runs. Defaults to being the same as the
1561
+ run interval. #{AS_DURATION}",
1562
+ },
1563
+ :splay => {
1564
+ :default => false,
1565
+ :type => :boolean,
1566
+ :desc => "Whether to sleep for a pseudo-random (but consistent) amount of time before
1567
+ a run.",
1568
+ },
1569
+ :clientbucketdir => {
1570
+ :default => "$vardir/clientbucket",
1571
+ :type => :directory,
1572
+ :mode => "0750",
1573
+ :desc => "Where FileBucket files are stored locally."
1574
+ },
1575
+ :configtimeout => {
1576
+ :default => "2m",
1577
+ :type => :duration,
1578
+ :desc => "How long the client should wait for the configuration to be retrieved
1579
+ before considering it a failure. This can help reduce flapping if too
1580
+ many clients contact the server at one time. #{AS_DURATION}",
1581
+ },
1582
+ :report_server => {
1583
+ :default => "$server",
1584
+ :desc => "The server to send transaction reports to.",
1585
+ },
1586
+ :report_port => {
1587
+ :default => "$masterport",
1588
+ :desc => "The port to communicate with the report_server.",
1589
+ },
1590
+ :inventory_server => {
1591
+ :default => "$server",
1592
+ :desc => "The server to send facts to.",
1593
+ },
1594
+ :inventory_port => {
1595
+ :default => "$masterport",
1596
+ :desc => "The port to communicate with the inventory_server.",
1597
+ },
1598
+ :report => {
1599
+ :default => true,
1600
+ :type => :boolean,
1601
+ :desc => "Whether to send reports after every transaction.",
1602
+ },
1603
+ :lastrunfile => {
1604
+ :default => "$statedir/last_run_summary.yaml",
1605
+ :type => :file,
1606
+ :mode => "0644",
1607
+ :desc => "Where puppet agent stores the last run report summary in yaml format."
1608
+ },
1609
+ :lastrunreport => {
1610
+ :default => "$statedir/last_run_report.yaml",
1611
+ :type => :file,
1612
+ :mode => "0640",
1613
+ :desc => "Where puppet agent stores the last run report in yaml format."
1614
+ },
1615
+ :graph => {
1616
+ :default => false,
1617
+ :type => :boolean,
1618
+ :desc => "Whether to create dot graph files for the different
1619
+ configuration graphs. These dot files can be interpreted by tools
1620
+ like OmniGraffle or dot (which is part of ImageMagick).",
1621
+ },
1622
+ :graphdir => {
1623
+ :default => "$statedir/graphs",
1624
+ :type => :directory,
1625
+ :desc => "Where to store dot-outputted graphs.",
1626
+ },
1627
+ :http_compression => {
1628
+ :default => false,
1629
+ :type => :boolean,
1630
+ :desc => "Allow http compression in REST communication with the master.
1631
+ This setting might improve performance for agent -> master
1632
+ communications over slow WANs. Your puppet master needs to support
1633
+ compression (usually by activating some settings in a reverse-proxy in
1634
+ front of the puppet master, which rules out webrick). It is harmless to
1635
+ activate this settings if your master doesn't support compression, but
1636
+ if it supports it, this setting might reduce performance on high-speed LANs.",
1637
+ },
1638
+ :waitforcert => {
1639
+ :default => "2m",
1640
+ :type => :duration,
1641
+ :desc => "How frequently puppet agent should ask for a signed certificate.
1642
+
1643
+ When starting for the first time, puppet agent will submit a certificate
1644
+ signing request (CSR) to the server named in the `ca_server` setting
1645
+ (usually the puppet master); this may be autosigned, or may need to be
1646
+ approved by a human, depending on the CA server's configuration.
1647
+
1648
+ Puppet agent cannot apply configurations until its approved certificate is
1649
+ available. Since the certificate may or may not be available immediately,
1650
+ puppet agent will repeatedly try to fetch it at this interval. You can
1651
+ turn off waiting for certificates by specifying a time of 0, in which case
1652
+ puppet agent will exit if it cannot get a cert.
1653
+ #{AS_DURATION}",
1654
+ },
1655
+ :ordering => {
1656
+ :type => :enum,
1657
+ :values => ["manifest", "title-hash", "random"],
1658
+ :default => "title-hash",
1659
+ :desc => "How unrelated resources should be ordered when applying a catalog.
1660
+ Allowed values are `title-hash`, `manifest`, and `random`. This
1661
+ setting affects puppet agent and puppet apply, but not puppet master.
1662
+
1663
+ * `title-hash` (the default) will order resources randomly, but will use
1664
+ the same order across runs and across nodes.
1665
+ * `manifest` will use the order in which the resources were declared in
1666
+ their manifest files.
1667
+ * `random` will order resources randomly and change their order with each
1668
+ run. This can work like a fuzzer for shaking out undeclared dependencies.
1669
+
1670
+ Regardless of this setting's value, Puppet will always obey explicit
1671
+ dependencies set with the before/require/notify/subscribe metaparameters
1672
+ and the `->`/`~>` chaining arrows; this setting only affects the relative
1673
+ ordering of _unrelated_ resources."
1674
+ }
1675
+ )
1676
+
1677
+ define_settings(:inspect,
1678
+ :archive_files => {
1679
+ :type => :boolean,
1680
+ :default => false,
1681
+ :desc => "During an inspect run, whether to archive files whose contents are audited to a file bucket.",
1682
+ },
1683
+ :archive_file_server => {
1684
+ :default => "$server",
1685
+ :desc => "During an inspect run, the file bucket server to archive files to if archive_files is set.",
1686
+ }
1687
+ )
1688
+
1689
+ # Plugin information.
1690
+
1691
+ define_settings(
1692
+ :main,
1693
+ :plugindest => {
1694
+ :type => :directory,
1695
+ :default => "$libdir",
1696
+ :desc => "Where Puppet should store plugins that it pulls down from the central
1697
+ server.",
1698
+ },
1699
+ :pluginsource => {
1700
+ :default => "puppet://$server/plugins",
1701
+ :desc => "From where to retrieve plugins. The standard Puppet `file` type
1702
+ is used for retrieval, so anything that is a valid file source can
1703
+ be used here.",
1704
+ },
1705
+ :pluginfactdest => {
1706
+ :type => :directory,
1707
+ :default => "$vardir/facts.d",
1708
+ :desc => "Where Puppet should store external facts that are being handled by pluginsync",
1709
+ },
1710
+ :pluginfactsource => {
1711
+ :default => "puppet://$server/pluginfacts",
1712
+ :desc => "Where to retrieve external facts for pluginsync",
1713
+ },
1714
+ :pluginsync => {
1715
+ :default => true,
1716
+ :type => :boolean,
1717
+ :desc => "Whether plugins should be synced with the central server.",
1718
+ },
1719
+
1720
+ :pluginsignore => {
1721
+ :default => ".svn CVS .git",
1722
+ :desc => "What files to ignore when pulling down plugins.",
1723
+ }
1724
+ )
1725
+
1726
+ # Central fact information.
1727
+
1728
+ define_settings(
1729
+ :main,
1730
+ :factpath => {
1731
+ :type => :path,
1732
+ :default => "$vardir/lib/facter#{File::PATH_SEPARATOR}$vardir/facts",
1733
+ :desc => "Where Puppet should look for facts. Multiple directories should
1734
+ be separated by the system path separator character. (The POSIX path
1735
+ separator is ':', and the Windows path separator is ';'.)",
1736
+
1737
+ :call_hook => :on_initialize_and_write, # Call our hook with the default value, so we always get the value added to facter.
1738
+ :hook => proc do |value|
1739
+ paths = value.split(File::PATH_SEPARATOR)
1740
+ Facter.search(*paths)
1741
+ end
1742
+ }
1743
+ )
1744
+
1745
+
1746
+ define_settings(
1747
+ :tagmail,
1748
+ :tagmap => {
1749
+ :default => "$confdir/tagmail.conf",
1750
+ :desc => "The mapping between reporting tags and email addresses.",
1751
+ },
1752
+ :sendmail => {
1753
+ :default => which('sendmail') || '',
1754
+ :desc => "Where to find the sendmail binary with which to send email.",
1755
+ },
1756
+
1757
+ :reportfrom => {
1758
+ :default => lambda { "report@#{Puppet::Settings.default_certname.downcase}" },
1759
+ :desc => "The 'from' email address for the reports.",
1760
+ },
1761
+
1762
+ :smtpserver => {
1763
+ :default => "none",
1764
+ :desc => "The server through which to send email reports.",
1765
+ },
1766
+ :smtpport => {
1767
+ :default => 25,
1768
+ :desc => "The TCP port through which to send email reports.",
1769
+ },
1770
+ :smtphelo => {
1771
+ :default => lambda { Facter.value 'fqdn' },
1772
+ :desc => "The name by which we identify ourselves in SMTP HELO for reports.
1773
+ If you send to a smtpserver which does strict HELO checking (as with Postfix's
1774
+ `smtpd_helo_restrictions` access controls), you may need to ensure this resolves.",
1775
+ }
1776
+ )
1777
+
1778
+ define_settings(
1779
+ :rails,
1780
+ :dblocation => {
1781
+ :default => "$statedir/clientconfigs.sqlite3",
1782
+ :type => :file,
1783
+ :mode => "0660",
1784
+ :owner => "service",
1785
+ :group => "service",
1786
+ :desc => "The sqlite database file. #{STORECONFIGS_ONLY}"
1787
+ },
1788
+ :dbadapter => {
1789
+ :default => "sqlite3",
1790
+ :desc => "The type of database to use. #{STORECONFIGS_ONLY}",
1791
+ },
1792
+ :dbmigrate => {
1793
+ :default => false,
1794
+ :type => :boolean,
1795
+ :desc => "Whether to automatically migrate the database. #{STORECONFIGS_ONLY}",
1796
+ },
1797
+ :dbname => {
1798
+ :default => "puppet",
1799
+ :desc => "The name of the database to use. #{STORECONFIGS_ONLY}",
1800
+ },
1801
+ :dbserver => {
1802
+ :default => "localhost",
1803
+ :desc => "The database server for caching. Only
1804
+ used when networked databases are used.",
1805
+ },
1806
+ :dbport => {
1807
+ :default => "",
1808
+ :desc => "The database password for caching. Only
1809
+ used when networked databases are used. #{STORECONFIGS_ONLY}",
1810
+ },
1811
+ :dbuser => {
1812
+ :default => "puppet",
1813
+ :desc => "The database user for caching. Only
1814
+ used when networked databases are used. #{STORECONFIGS_ONLY}",
1815
+ },
1816
+ :dbpassword => {
1817
+ :default => "puppet",
1818
+ :desc => "The database password for caching. Only
1819
+ used when networked databases are used. #{STORECONFIGS_ONLY}",
1820
+ },
1821
+ :dbconnections => {
1822
+ :default => '',
1823
+ :desc => "The number of database connections for networked
1824
+ databases. Will be ignored unless the value is a positive integer. #{STORECONFIGS_ONLY}",
1825
+ },
1826
+ :dbsocket => {
1827
+ :default => "",
1828
+ :desc => "The database socket location. Only used when networked
1829
+ databases are used. Will be ignored if the value is an empty string. #{STORECONFIGS_ONLY}",
1830
+ },
1831
+ :railslog => {
1832
+ :default => "$logdir/rails.log",
1833
+ :type => :file,
1834
+ :mode => "0600",
1835
+ :owner => "service",
1836
+ :group => "service",
1837
+ :desc => "Where Rails-specific logs are sent. #{STORECONFIGS_ONLY}"
1838
+ },
1839
+
1840
+ :rails_loglevel => {
1841
+ :default => "info",
1842
+ :desc => "The log level for Rails connections. The value must be
1843
+ a valid log level within Rails. Production environments normally use `info`
1844
+ and other environments normally use `debug`. #{STORECONFIGS_ONLY}",
1845
+ }
1846
+ )
1847
+
1848
+ define_settings(
1849
+ :couchdb,
1850
+
1851
+ :couchdb_url => {
1852
+ :default => "http://127.0.0.1:5984/puppet",
1853
+ :desc => "The url where the puppet couchdb database will be created.
1854
+ Only used when `facts_terminus` is set to `couch`.",
1855
+ }
1856
+ )
1857
+
1858
+ define_settings(
1859
+ :transaction,
1860
+ :tags => {
1861
+ :default => "",
1862
+ :desc => "Tags to use to find resources. If this is set, then
1863
+ only resources tagged with the specified tags will be applied.
1864
+ Values must be comma-separated.",
1865
+ },
1866
+ :evaltrace => {
1867
+ :default => false,
1868
+ :type => :boolean,
1869
+ :desc => "Whether each resource should log when it is
1870
+ being evaluated. This allows you to interactively see exactly
1871
+ what is being done.",
1872
+ },
1873
+ :summarize => {
1874
+ :default => false,
1875
+ :type => :boolean,
1876
+ :desc => "Whether to print a transaction summary.",
1877
+ }
1878
+ )
1879
+
1880
+ define_settings(
1881
+ :main,
1882
+ :external_nodes => {
1883
+ :default => "none",
1884
+ :desc => "An external command that can produce node information. The command's output
1885
+ must be a YAML dump of a hash, and that hash must have a `classes` key and/or
1886
+ a `parameters` key, where `classes` is an array or hash and
1887
+ `parameters` is a hash. For unknown nodes, the command should
1888
+ exit with a non-zero exit code.
1889
+
1890
+ This command makes it straightforward to store your node mapping
1891
+ information in other data sources like databases.",
1892
+ }
1893
+ )
1894
+
1895
+ define_settings(
1896
+ :ldap,
1897
+ :ldapssl => {
1898
+ :default => false,
1899
+ :type => :boolean,
1900
+ :desc => "Whether SSL should be used when searching for nodes.
1901
+ Defaults to false because SSL usually requires certificates
1902
+ to be set up on the client side.",
1903
+ },
1904
+ :ldaptls => {
1905
+ :default => false,
1906
+ :type => :boolean,
1907
+ :desc => "Whether TLS should be used when searching for nodes.
1908
+ Defaults to false because TLS usually requires certificates
1909
+ to be set up on the client side.",
1910
+ },
1911
+ :ldapserver => {
1912
+ :default => "ldap",
1913
+ :desc => "The LDAP server. Only used if `node_terminus` is set to `ldap`.",
1914
+ },
1915
+ :ldapport => {
1916
+ :default => 389,
1917
+ :desc => "The LDAP port. Only used if `node_terminus` is set to `ldap`.",
1918
+ },
1919
+
1920
+ :ldapstring => {
1921
+ :default => "(&(objectclass=puppetClient)(cn=%s))",
1922
+ :desc => "The search string used to find an LDAP node.",
1923
+ },
1924
+ :ldapclassattrs => {
1925
+ :default => "puppetclass",
1926
+ :desc => "The LDAP attributes to use to define Puppet classes. Values
1927
+ should be comma-separated.",
1928
+ },
1929
+ :ldapstackedattrs => {
1930
+ :default => "puppetvar",
1931
+ :desc => "The LDAP attributes that should be stacked to arrays by adding
1932
+ the values in all hierarchy elements of the tree. Values
1933
+ should be comma-separated.",
1934
+ },
1935
+ :ldapattrs => {
1936
+ :default => "all",
1937
+ :desc => "The LDAP attributes to include when querying LDAP for nodes. All
1938
+ returned attributes are set as variables in the top-level scope.
1939
+ Multiple values should be comma-separated. The value 'all' returns
1940
+ all attributes.",
1941
+ },
1942
+ :ldapparentattr => {
1943
+ :default => "parentnode",
1944
+ :desc => "The attribute to use to define the parent node.",
1945
+ },
1946
+ :ldapuser => {
1947
+ :default => "",
1948
+ :desc => "The user to use to connect to LDAP. Must be specified as a
1949
+ full DN.",
1950
+ },
1951
+ :ldappassword => {
1952
+ :default => "",
1953
+ :desc => "The password to use to connect to LDAP.",
1954
+ },
1955
+ :ldapbase => {
1956
+ :default => "",
1957
+ :desc => "The search base for LDAP searches. It's impossible to provide
1958
+ a meaningful default here, although the LDAP libraries might
1959
+ have one already set. Generally, it should be the 'ou=Hosts'
1960
+ branch under your main directory.",
1961
+ }
1962
+ )
1963
+
1964
+ define_settings(:master,
1965
+ :storeconfigs => {
1966
+ :default => false,
1967
+ :type => :boolean,
1968
+ :desc => "Whether to store each client's configuration, including catalogs, facts,
1969
+ and related data. This also enables the import and export of resources in
1970
+ the Puppet language - a mechanism for exchange resources between nodes.
1971
+
1972
+ By default this uses ActiveRecord and an SQL database to store and query
1973
+ the data; this, in turn, will depend on Rails being available.
1974
+
1975
+ You can adjust the backend using the storeconfigs_backend setting.",
1976
+ # Call our hook with the default value, so we always get the libdir set.
1977
+ :call_hook => :on_initialize_and_write,
1978
+ :hook => proc do |value|
1979
+ require 'puppet/node'
1980
+ require 'puppet/node/facts'
1981
+ if value
1982
+ if not Puppet.settings[:async_storeconfigs]
1983
+ Puppet::Resource::Catalog.indirection.cache_class = :store_configs
1984
+ Puppet.settings.override_default(:catalog_cache_terminus, :store_configs)
1985
+ end
1986
+ Puppet::Node::Facts.indirection.cache_class = :store_configs
1987
+
1988
+ Puppet::Resource.indirection.terminus_class = :store_configs
1989
+ end
1990
+ end
1991
+ },
1992
+ :storeconfigs_backend => {
1993
+ :type => :terminus,
1994
+ :default => "active_record",
1995
+ :desc => "Configure the backend terminus used for StoreConfigs.
1996
+ By default, this uses the ActiveRecord store, which directly talks to the
1997
+ database from within the Puppet Master process."
1998
+ }
1999
+ )
2000
+
2001
+ define_settings(:parser,
2002
+ :templatedir => {
2003
+ :default => "$vardir/templates",
2004
+ :type => :directory,
2005
+ :desc => "Where Puppet looks for template files. Can be a list of colon-separated
2006
+ directories.
2007
+
2008
+ This setting is deprecated. Please put your templates in modules instead.",
2009
+ :deprecated => :completely,
2010
+ },
2011
+
2012
+ :allow_variables_with_dashes => {
2013
+ :default => false,
2014
+ :desc => <<-'EOT'
2015
+ Permit hyphens (`-`) in variable names and issue deprecation warnings about
2016
+ them. This setting **should always be `false`;** setting it to `true`
2017
+ will cause subtle and wide-ranging bugs. It will be removed in a future version.
2018
+
2019
+ Hyphenated variables caused major problems in the language, but were allowed
2020
+ between Puppet 2.7.3 and 2.7.14. If you used them during this window, we
2021
+ apologize for the inconvenience --- you can temporarily set this to `true`
2022
+ in order to upgrade, and can rename your variables at your leisure. Please
2023
+ revert it to `false` after you have renamed all affected variables.
2024
+ EOT
2025
+ },
2026
+ :parser => {
2027
+ :default => "current",
2028
+ :desc => <<-'EOT'
2029
+ Selects the parser to use for parsing puppet manifests (in puppet DSL
2030
+ language/'.pp' files). Available choices are `current` (the default)
2031
+ and `future`.
2032
+
2033
+ The `current` parser means that the released version of the parser should
2034
+ be used.
2035
+
2036
+ The `future` parser is a "time travel to the future" allowing early
2037
+ exposure to new language features. What these features are will vary from
2038
+ release to release and they may be invididually configurable.
2039
+
2040
+ Available Since Puppet 3.2.
2041
+ EOT
2042
+ },
2043
+ :max_errors => {
2044
+ :default => 10,
2045
+ :desc => <<-'EOT'
2046
+ Sets the max number of logged/displayed parser validation errors in case
2047
+ multiple errors have been detected. A value of 0 is the same as a value of 1; a
2048
+ minimum of one error is always raised. The count is per manifest.
2049
+ EOT
2050
+ },
2051
+ :max_warnings => {
2052
+ :default => 10,
2053
+ :desc => <<-'EOT'
2054
+ Sets the max number of logged/displayed parser validation warnings in
2055
+ case multiple warnings have been detected. A value of 0 blocks logging of
2056
+ warnings. The count is per manifest.
2057
+ EOT
2058
+ },
2059
+ :max_deprecations => {
2060
+ :default => 10,
2061
+ :desc => <<-'EOT'
2062
+ Sets the max number of logged/displayed parser validation deprecation
2063
+ warnings in case multiple deprecation warnings have been detected. A value of 0
2064
+ blocks the logging of deprecation warnings. The count is per manifest.
2065
+ EOT
2066
+ },
2067
+ :strict_variables => {
2068
+ :default => false,
2069
+ :type => :boolean,
2070
+ :desc => <<-'EOT'
2071
+ Makes the parser raise errors when referencing unknown variables. (This does not affect
2072
+ referencing variables that are explicitly set to undef).
2073
+ EOT
2074
+ }
2075
+ )
2076
+ define_settings(:puppetdoc,
2077
+ :document_all => {
2078
+ :default => false,
2079
+ :type => :boolean,
2080
+ :desc => "Whether to document all resources when using `puppet doc` to
2081
+ generate manifest documentation.",
2082
+ }
2083
+ )
2084
+ end