puppet-parse 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/.travis.yml +0 -5
- data/README.md +1 -3
- data/lib/puppet-parse/version.rb +1 -1
- data/lib/puppet-parse.rb +2 -2
- data/lib/vendor/puppet/agent/locker.rb +46 -0
- data/lib/vendor/puppet/agent.rb +99 -0
- data/lib/vendor/puppet/application/agent.rb +489 -0
- data/lib/vendor/puppet/application/apply.rb +266 -0
- data/lib/vendor/puppet/application/ca.rb +5 -0
- data/lib/vendor/puppet/application/catalog.rb +4 -0
- data/lib/vendor/puppet/application/cert.rb +240 -0
- data/lib/vendor/puppet/application/certificate.rb +13 -0
- data/lib/vendor/puppet/application/certificate_request.rb +4 -0
- data/lib/vendor/puppet/application/certificate_revocation_list.rb +4 -0
- data/lib/vendor/puppet/application/config.rb +4 -0
- data/lib/vendor/puppet/application/describe.rb +256 -0
- data/lib/vendor/puppet/application/device.rb +242 -0
- data/lib/vendor/puppet/application/doc.rb +275 -0
- data/lib/vendor/puppet/application/face_base.rb +264 -0
- data/lib/vendor/puppet/application/facts.rb +4 -0
- data/lib/vendor/puppet/application/file.rb +4 -0
- data/lib/vendor/puppet/application/filebucket.rb +191 -0
- data/lib/vendor/puppet/application/help.rb +4 -0
- data/lib/vendor/puppet/application/indirection_base.rb +4 -0
- data/lib/vendor/puppet/application/inspect.rb +191 -0
- data/lib/vendor/puppet/application/instrumentation_data.rb +4 -0
- data/lib/vendor/puppet/application/instrumentation_listener.rb +4 -0
- data/lib/vendor/puppet/application/instrumentation_probe.rb +4 -0
- data/lib/vendor/puppet/application/key.rb +4 -0
- data/lib/vendor/puppet/application/kick.rb +351 -0
- data/lib/vendor/puppet/application/man.rb +4 -0
- data/lib/vendor/puppet/application/master.rb +263 -0
- data/lib/vendor/puppet/application/module.rb +11 -0
- data/lib/vendor/puppet/application/node.rb +4 -0
- data/lib/vendor/puppet/application/parser.rb +5 -0
- data/lib/vendor/puppet/application/plugin.rb +3 -0
- data/lib/vendor/puppet/application/queue.rb +161 -0
- data/lib/vendor/puppet/application/report.rb +4 -0
- data/lib/vendor/puppet/application/resource.rb +237 -0
- data/lib/vendor/puppet/application/resource_type.rb +4 -0
- data/lib/vendor/puppet/application/secret_agent.rb +6 -0
- data/lib/vendor/puppet/application/status.rb +4 -0
- data/lib/vendor/puppet/application.rb +421 -0
- data/lib/vendor/puppet/configurer/downloader.rb +86 -0
- data/lib/vendor/puppet/configurer/fact_handler.rb +56 -0
- data/lib/vendor/puppet/configurer/plugin_handler.rb +37 -0
- data/lib/vendor/puppet/configurer.rb +249 -0
- data/lib/vendor/puppet/daemon.rb +200 -0
- data/lib/vendor/puppet/defaults.rb +970 -0
- data/lib/vendor/puppet/dsl/resource_api.rb +120 -0
- data/lib/vendor/puppet/dsl/resource_type_api.rb +34 -0
- data/lib/vendor/puppet/dsl.rb +7 -0
- data/lib/vendor/puppet/error.rb +43 -0
- data/lib/vendor/puppet/external/base64.rb +19 -0
- data/lib/vendor/puppet/external/dot.rb +326 -0
- data/lib/vendor/puppet/external/lock.rb +63 -0
- data/lib/vendor/puppet/external/nagios/base.rb +472 -0
- data/lib/vendor/puppet/external/nagios/grammar.ry +185 -0
- data/lib/vendor/puppet/external/nagios/makefile +9 -0
- data/lib/vendor/puppet/external/nagios/parser.rb +775 -0
- data/lib/vendor/puppet/external/nagios.rb +48 -0
- data/lib/vendor/puppet/external/pson/common.rb +370 -0
- data/lib/vendor/puppet/external/pson/pure/generator.rb +401 -0
- data/lib/vendor/puppet/external/pson/pure/parser.rb +264 -0
- data/lib/vendor/puppet/external/pson/pure.rb +77 -0
- data/lib/vendor/puppet/external/pson/version.rb +8 -0
- data/lib/vendor/puppet/face/ca.rb +242 -0
- data/lib/vendor/puppet/face/catalog/select.rb +49 -0
- data/lib/vendor/puppet/face/catalog.rb +131 -0
- data/lib/vendor/puppet/face/certificate.rb +148 -0
- data/lib/vendor/puppet/face/certificate_request.rb +53 -0
- data/lib/vendor/puppet/face/certificate_revocation_list.rb +58 -0
- data/lib/vendor/puppet/face/config.rb +45 -0
- data/lib/vendor/puppet/face/facts.rb +81 -0
- data/lib/vendor/puppet/face/file/download.rb +54 -0
- data/lib/vendor/puppet/face/file/store.rb +21 -0
- data/lib/vendor/puppet/face/file.rb +47 -0
- data/lib/vendor/puppet/face/help/action.erb +53 -0
- data/lib/vendor/puppet/face/help/face.erb +79 -0
- data/lib/vendor/puppet/face/help/global.erb +19 -0
- data/lib/vendor/puppet/face/help/man.erb +136 -0
- data/lib/vendor/puppet/face/help.rb +131 -0
- data/lib/vendor/puppet/face/instrumentation_data.rb +28 -0
- data/lib/vendor/puppet/face/instrumentation_listener.rb +96 -0
- data/lib/vendor/puppet/face/instrumentation_probe.rb +77 -0
- data/lib/vendor/puppet/face/key.rb +15 -0
- data/lib/vendor/puppet/face/man.rb +93 -0
- data/lib/vendor/puppet/face/module/build.rb +37 -0
- data/lib/vendor/puppet/face/module/changes.rb +38 -0
- data/lib/vendor/puppet/face/module/generate.rb +42 -0
- data/lib/vendor/puppet/face/module/install.rb +174 -0
- data/lib/vendor/puppet/face/module/list.rb +285 -0
- data/lib/vendor/puppet/face/module/search.rb +88 -0
- data/lib/vendor/puppet/face/module/uninstall.rb +86 -0
- data/lib/vendor/puppet/face/module/upgrade.rb +84 -0
- data/lib/vendor/puppet/face/module.rb +17 -0
- data/lib/vendor/puppet/face/node/clean.rb +156 -0
- data/lib/vendor/puppet/face/node.rb +43 -0
- data/lib/vendor/puppet/face/parser.rb +51 -0
- data/lib/vendor/puppet/face/plugin.rb +55 -0
- data/lib/vendor/puppet/face/report.rb +56 -0
- data/lib/vendor/puppet/face/resource.rb +53 -0
- data/lib/vendor/puppet/face/resource_type.rb +81 -0
- data/lib/vendor/puppet/face/secret_agent.rb +54 -0
- data/lib/vendor/puppet/face/status.rb +53 -0
- data/lib/vendor/puppet/face.rb +12 -0
- data/lib/vendor/puppet/feature/base.rb +67 -0
- data/lib/vendor/puppet/feature/eventlog.rb +6 -0
- data/lib/vendor/puppet/feature/pson.rb +6 -0
- data/lib/vendor/puppet/feature/rack.rb +24 -0
- data/lib/vendor/puppet/feature/rails.rb +30 -0
- data/lib/vendor/puppet/feature/rubygems.rb +3 -0
- data/lib/vendor/puppet/feature/selinux.rb +3 -0
- data/lib/vendor/puppet/feature/ssh.rb +4 -0
- data/lib/vendor/puppet/feature/stomp.rb +6 -0
- data/lib/vendor/puppet/feature/zlib.rb +6 -0
- data/lib/vendor/puppet/file_bucket/dipper.rb +107 -0
- data/lib/vendor/puppet/file_bucket/file.rb +55 -0
- data/lib/vendor/puppet/file_bucket.rb +4 -0
- data/lib/vendor/puppet/file_collection/lookup.rb +10 -0
- data/lib/vendor/puppet/file_collection.rb +19 -0
- data/lib/vendor/puppet/file_serving/base.rb +88 -0
- data/lib/vendor/puppet/file_serving/configuration/parser.rb +115 -0
- data/lib/vendor/puppet/file_serving/configuration.rb +122 -0
- data/lib/vendor/puppet/file_serving/content.rb +45 -0
- data/lib/vendor/puppet/file_serving/fileset.rb +173 -0
- data/lib/vendor/puppet/file_serving/metadata.rb +155 -0
- data/lib/vendor/puppet/file_serving/mount/file.rb +121 -0
- data/lib/vendor/puppet/file_serving/mount/modules.rb +24 -0
- data/lib/vendor/puppet/file_serving/mount/plugins.rb +26 -0
- data/lib/vendor/puppet/file_serving/mount.rb +39 -0
- data/lib/vendor/puppet/file_serving/terminus_helper.rb +21 -0
- data/lib/vendor/puppet/file_serving/terminus_selector.rb +28 -0
- data/lib/vendor/puppet/file_serving.rb +3 -0
- data/lib/vendor/puppet/forge/cache.rb +55 -0
- data/lib/vendor/puppet/forge/repository.rb +102 -0
- data/lib/vendor/puppet/forge.rb +98 -0
- data/lib/vendor/puppet/indirector/active_record.rb +28 -0
- data/lib/vendor/puppet/indirector/catalog/active_record.rb +41 -0
- data/lib/vendor/puppet/indirector/catalog/compiler.rb +153 -0
- data/lib/vendor/puppet/indirector/catalog/queue.rb +5 -0
- data/lib/vendor/puppet/indirector/catalog/rest.rb +6 -0
- data/lib/vendor/puppet/indirector/catalog/static_compiler.rb +136 -0
- data/lib/vendor/puppet/indirector/catalog/store_configs.rb +5 -0
- data/lib/vendor/puppet/indirector/catalog/yaml.rb +22 -0
- data/lib/vendor/puppet/indirector/certificate/ca.rb +9 -0
- data/lib/vendor/puppet/indirector/certificate/disabled_ca.rb +22 -0
- data/lib/vendor/puppet/indirector/certificate/file.rb +9 -0
- data/lib/vendor/puppet/indirector/certificate/rest.rb +15 -0
- data/lib/vendor/puppet/indirector/certificate_request/ca.rb +22 -0
- data/lib/vendor/puppet/indirector/certificate_request/disabled_ca.rb +22 -0
- data/lib/vendor/puppet/indirector/certificate_request/file.rb +8 -0
- data/lib/vendor/puppet/indirector/certificate_request/rest.rb +9 -0
- data/lib/vendor/puppet/indirector/certificate_revocation_list/ca.rb +8 -0
- data/lib/vendor/puppet/indirector/certificate_revocation_list/disabled_ca.rb +22 -0
- data/lib/vendor/puppet/indirector/certificate_revocation_list/file.rb +8 -0
- data/lib/vendor/puppet/indirector/certificate_revocation_list/rest.rb +9 -0
- data/lib/vendor/puppet/indirector/certificate_status/file.rb +82 -0
- data/lib/vendor/puppet/indirector/certificate_status/rest.rb +10 -0
- data/lib/vendor/puppet/indirector/certificate_status.rb +4 -0
- data/lib/vendor/puppet/indirector/code.rb +6 -0
- data/lib/vendor/puppet/indirector/couch.rb +78 -0
- data/lib/vendor/puppet/indirector/direct_file_server.rb +19 -0
- data/lib/vendor/puppet/indirector/envelope.rb +11 -0
- data/lib/vendor/puppet/indirector/exec.rb +48 -0
- data/lib/vendor/puppet/indirector/face.rb +137 -0
- data/lib/vendor/puppet/indirector/facts/active_record.rb +36 -0
- data/lib/vendor/puppet/indirector/facts/couch.rb +31 -0
- data/lib/vendor/puppet/indirector/facts/facter.rb +96 -0
- data/lib/vendor/puppet/indirector/facts/inventory_active_record.rb +100 -0
- data/lib/vendor/puppet/indirector/facts/inventory_service.rb +20 -0
- data/lib/vendor/puppet/indirector/facts/memory.rb +9 -0
- data/lib/vendor/puppet/indirector/facts/network_device.rb +25 -0
- data/lib/vendor/puppet/indirector/facts/rest.rb +8 -0
- data/lib/vendor/puppet/indirector/facts/store_configs.rb +5 -0
- data/lib/vendor/puppet/indirector/facts/yaml.rb +82 -0
- data/lib/vendor/puppet/indirector/file_bucket_file/file.rb +136 -0
- data/lib/vendor/puppet/indirector/file_bucket_file/rest.rb +8 -0
- data/lib/vendor/puppet/indirector/file_bucket_file/selector.rb +49 -0
- data/lib/vendor/puppet/indirector/file_content/file.rb +7 -0
- data/lib/vendor/puppet/indirector/file_content/file_server.rb +7 -0
- data/lib/vendor/puppet/indirector/file_content/rest.rb +7 -0
- data/lib/vendor/puppet/indirector/file_content/selector.rb +30 -0
- data/lib/vendor/puppet/indirector/file_content.rb +5 -0
- data/lib/vendor/puppet/indirector/file_metadata/file.rb +22 -0
- data/lib/vendor/puppet/indirector/file_metadata/file_server.rb +7 -0
- data/lib/vendor/puppet/indirector/file_metadata/rest.rb +7 -0
- data/lib/vendor/puppet/indirector/file_metadata/selector.rb +30 -0
- data/lib/vendor/puppet/indirector/file_metadata.rb +5 -0
- data/lib/vendor/puppet/indirector/file_server.rb +65 -0
- data/lib/vendor/puppet/indirector/indirection.rb +323 -0
- data/lib/vendor/puppet/indirector/instrumentation_data/local.rb +19 -0
- data/lib/vendor/puppet/indirector/instrumentation_data/rest.rb +5 -0
- data/lib/vendor/puppet/indirector/instrumentation_data.rb +3 -0
- data/lib/vendor/puppet/indirector/instrumentation_listener/local.rb +23 -0
- data/lib/vendor/puppet/indirector/instrumentation_listener/rest.rb +5 -0
- data/lib/vendor/puppet/indirector/instrumentation_listener.rb +3 -0
- data/lib/vendor/puppet/indirector/instrumentation_probe/local.rb +24 -0
- data/lib/vendor/puppet/indirector/instrumentation_probe/rest.rb +5 -0
- data/lib/vendor/puppet/indirector/instrumentation_probe.rb +3 -0
- data/lib/vendor/puppet/indirector/inventory/yaml.rb +81 -0
- data/lib/vendor/puppet/indirector/key/ca.rb +12 -0
- data/lib/vendor/puppet/indirector/key/disabled_ca.rb +22 -0
- data/lib/vendor/puppet/indirector/key/file.rb +42 -0
- data/lib/vendor/puppet/indirector/ldap.rb +78 -0
- data/lib/vendor/puppet/indirector/memory.rb +21 -0
- data/lib/vendor/puppet/indirector/node/active_record.rb +13 -0
- data/lib/vendor/puppet/indirector/node/exec.rb +60 -0
- data/lib/vendor/puppet/indirector/node/ldap.rb +256 -0
- data/lib/vendor/puppet/indirector/node/memory.rb +10 -0
- data/lib/vendor/puppet/indirector/node/plain.rb +19 -0
- data/lib/vendor/puppet/indirector/node/rest.rb +7 -0
- data/lib/vendor/puppet/indirector/node/store_configs.rb +5 -0
- data/lib/vendor/puppet/indirector/node/yaml.rb +7 -0
- data/lib/vendor/puppet/indirector/plain.rb +9 -0
- data/lib/vendor/puppet/indirector/queue.rb +81 -0
- data/lib/vendor/puppet/indirector/report/processor.rb +61 -0
- data/lib/vendor/puppet/indirector/report/rest.rb +7 -0
- data/lib/vendor/puppet/indirector/report/yaml.rb +11 -0
- data/lib/vendor/puppet/indirector/request.rb +204 -0
- data/lib/vendor/puppet/indirector/resource/active_record.rb +93 -0
- data/lib/vendor/puppet/indirector/resource/ral.rb +53 -0
- data/lib/vendor/puppet/indirector/resource/rest.rb +5 -0
- data/lib/vendor/puppet/indirector/resource/store_configs.rb +3 -0
- data/lib/vendor/puppet/indirector/resource_type/parser.rb +43 -0
- data/lib/vendor/puppet/indirector/resource_type/rest.rb +7 -0
- data/lib/vendor/puppet/indirector/resource_type.rb +5 -0
- data/lib/vendor/puppet/indirector/rest.rb +166 -0
- data/lib/vendor/puppet/indirector/run/local.rb +8 -0
- data/lib/vendor/puppet/indirector/run/rest.rb +6 -0
- data/lib/vendor/puppet/indirector/ssl_file.rb +178 -0
- data/lib/vendor/puppet/indirector/status/local.rb +7 -0
- data/lib/vendor/puppet/indirector/status/rest.rb +5 -0
- data/lib/vendor/puppet/indirector/status.rb +3 -0
- data/lib/vendor/puppet/indirector/store_configs.rb +30 -0
- data/lib/vendor/puppet/indirector/terminus.rb +145 -0
- data/lib/vendor/puppet/indirector/yaml.rb +75 -0
- data/lib/vendor/puppet/indirector.rb +57 -0
- data/lib/vendor/puppet/interface/action.rb +322 -0
- data/lib/vendor/puppet/interface/action_builder.rb +74 -0
- data/lib/vendor/puppet/interface/action_manager.rb +74 -0
- data/lib/vendor/puppet/interface/documentation.rb +230 -0
- data/lib/vendor/puppet/interface/face_collection.rb +128 -0
- data/lib/vendor/puppet/interface/option.rb +127 -0
- data/lib/vendor/puppet/interface/option_builder.rb +67 -0
- data/lib/vendor/puppet/interface/option_manager.rb +68 -0
- data/lib/vendor/puppet/interface.rb +161 -0
- data/lib/vendor/puppet/metatype/manager.rb +141 -0
- data/lib/vendor/puppet/module.rb +314 -0
- data/lib/vendor/puppet/module_tool/applications/application.rb +82 -0
- data/lib/vendor/puppet/module_tool/applications/builder.rb +91 -0
- data/lib/vendor/puppet/module_tool/applications/checksummer.rb +56 -0
- data/lib/vendor/puppet/module_tool/applications/generator.rb +141 -0
- data/lib/vendor/puppet/module_tool/applications/installer.rb +183 -0
- data/lib/vendor/puppet/module_tool/applications/searcher.rb +15 -0
- data/lib/vendor/puppet/module_tool/applications/uninstaller.rb +107 -0
- data/lib/vendor/puppet/module_tool/applications/unpacker.rb +67 -0
- data/lib/vendor/puppet/module_tool/applications/upgrader.rb +109 -0
- data/lib/vendor/puppet/module_tool/applications.rb +15 -0
- data/lib/vendor/puppet/module_tool/checksums.rb +52 -0
- data/lib/vendor/puppet/module_tool/contents_description.rb +82 -0
- data/lib/vendor/puppet/module_tool/dependency.rb +24 -0
- data/lib/vendor/puppet/module_tool/errors/base.rb +15 -0
- data/lib/vendor/puppet/module_tool/errors/installer.rb +90 -0
- data/lib/vendor/puppet/module_tool/errors/shared.rb +115 -0
- data/lib/vendor/puppet/module_tool/errors/uninstaller.rb +45 -0
- data/lib/vendor/puppet/module_tool/errors/upgrader.rb +72 -0
- data/lib/vendor/puppet/module_tool/errors.rb +9 -0
- data/lib/vendor/puppet/module_tool/metadata.rb +141 -0
- data/lib/vendor/puppet/module_tool/modulefile.rb +75 -0
- data/lib/vendor/puppet/module_tool/shared_behaviors.rb +161 -0
- data/lib/vendor/puppet/module_tool/skeleton/templates/generator/Modulefile.erb +11 -0
- data/lib/vendor/puppet/module_tool/skeleton/templates/generator/README.erb +16 -0
- data/lib/vendor/puppet/module_tool/skeleton/templates/generator/manifests/init.pp.erb +41 -0
- data/lib/vendor/puppet/module_tool/skeleton/templates/generator/spec/spec_helper.rb +17 -0
- data/lib/vendor/puppet/module_tool/skeleton/templates/generator/tests/init.pp.erb +11 -0
- data/lib/vendor/puppet/module_tool/skeleton.rb +34 -0
- data/lib/vendor/puppet/module_tool.rb +99 -0
- data/lib/vendor/puppet/network/authconfig.rb +174 -0
- data/lib/vendor/puppet/network/authorization.rb +76 -0
- data/lib/vendor/puppet/network/authstore.rb +267 -0
- data/lib/vendor/puppet/network/client_request.rb +29 -0
- data/lib/vendor/puppet/network/format.rb +111 -0
- data/lib/vendor/puppet/network/format_handler.rb +181 -0
- data/lib/vendor/puppet/network/formats.rb +171 -0
- data/lib/vendor/puppet/network/handler/ca.rb +61 -0
- data/lib/vendor/puppet/network/handler/filebucket.rb +53 -0
- data/lib/vendor/puppet/network/handler/fileserver.rb +732 -0
- data/lib/vendor/puppet/network/handler/master.rb +87 -0
- data/lib/vendor/puppet/network/handler/report.rb +82 -0
- data/lib/vendor/puppet/network/handler/runner.rb +33 -0
- data/lib/vendor/puppet/network/handler/status.rb +18 -0
- data/lib/vendor/puppet/network/handler.rb +50 -0
- data/lib/vendor/puppet/network/http/api/v1.rb +83 -0
- data/lib/vendor/puppet/network/http/api.rb +4 -0
- data/lib/vendor/puppet/network/http/compression.rb +114 -0
- data/lib/vendor/puppet/network/http/handler.rb +247 -0
- data/lib/vendor/puppet/network/http/mongrel/rest.rb +99 -0
- data/lib/vendor/puppet/network/http/mongrel.rb +55 -0
- data/lib/vendor/puppet/network/http/rack/httphandler.rb +16 -0
- data/lib/vendor/puppet/network/http/rack/rest.rb +100 -0
- data/lib/vendor/puppet/network/http/rack/xmlrpc.rb +65 -0
- data/lib/vendor/puppet/network/http/rack.rb +65 -0
- data/lib/vendor/puppet/network/http/webrick/rest.rb +81 -0
- data/lib/vendor/puppet/network/http/webrick.rb +141 -0
- data/lib/vendor/puppet/network/http.rb +15 -0
- data/lib/vendor/puppet/network/http_pool.rb +57 -0
- data/lib/vendor/puppet/network/http_server/mongrel.rb +129 -0
- data/lib/vendor/puppet/network/http_server.rb +3 -0
- data/lib/vendor/puppet/network/rest_authconfig.rb +102 -0
- data/lib/vendor/puppet/network/rest_authorization.rb +23 -0
- data/lib/vendor/puppet/network/rest_controller.rb +2 -0
- data/lib/vendor/puppet/network/rights.rb +275 -0
- data/lib/vendor/puppet/network/server.rb +164 -0
- data/lib/vendor/puppet/network/xmlrpc/processor.rb +86 -0
- data/lib/vendor/puppet/network/xmlrpc/server.rb +19 -0
- data/lib/vendor/puppet/network/xmlrpc/webrick_servlet.rb +114 -0
- data/lib/vendor/puppet/network.rb +3 -0
- data/lib/vendor/puppet/node/environment.rb +216 -0
- data/lib/vendor/puppet/node/facts.rb +99 -0
- data/lib/vendor/puppet/node/inventory.rb +7 -0
- data/lib/vendor/puppet/node.rb +120 -0
- data/lib/vendor/puppet/parameter/path.rb +34 -0
- data/lib/vendor/puppet/parameter/value.rb +69 -0
- data/lib/vendor/puppet/parameter/value_collection.rb +143 -0
- data/lib/vendor/puppet/parameter.rb +316 -0
- data/lib/vendor/puppet/parser/ast/arithmetic_operator.rb +39 -0
- data/lib/vendor/puppet/parser/ast/astarray.rb +50 -0
- data/lib/vendor/puppet/parser/ast/asthash.rb +37 -0
- data/lib/vendor/puppet/parser/ast/boolean_operator.rb +46 -0
- data/lib/vendor/puppet/parser/ast/branch.rb +37 -0
- data/lib/vendor/puppet/parser/ast/caseopt.rb +52 -0
- data/lib/vendor/puppet/parser/ast/casestatement.rb +44 -0
- data/lib/vendor/puppet/parser/ast/collection.rb +49 -0
- data/lib/vendor/puppet/parser/ast/collexpr.rb +57 -0
- data/lib/vendor/puppet/parser/ast/comparison_operator.rb +38 -0
- data/lib/vendor/puppet/parser/ast/definition.rb +17 -0
- data/lib/vendor/puppet/parser/ast/else.rb +22 -0
- data/lib/vendor/puppet/parser/ast/function.rb +50 -0
- data/lib/vendor/puppet/parser/ast/hostclass.rb +29 -0
- data/lib/vendor/puppet/parser/ast/ifstatement.rb +34 -0
- data/lib/vendor/puppet/parser/ast/in_operator.rb +24 -0
- data/lib/vendor/puppet/parser/ast/leaf.rb +221 -0
- data/lib/vendor/puppet/parser/ast/match_operator.rb +28 -0
- data/lib/vendor/puppet/parser/ast/minus.rb +23 -0
- data/lib/vendor/puppet/parser/ast/node.rb +20 -0
- data/lib/vendor/puppet/parser/ast/nop.rb +11 -0
- data/lib/vendor/puppet/parser/ast/not.rb +19 -0
- data/lib/vendor/puppet/parser/ast/relationship.rb +47 -0
- data/lib/vendor/puppet/parser/ast/resource.rb +74 -0
- data/lib/vendor/puppet/parser/ast/resource_defaults.rb +24 -0
- data/lib/vendor/puppet/parser/ast/resource_instance.rb +9 -0
- data/lib/vendor/puppet/parser/ast/resource_override.rb +67 -0
- data/lib/vendor/puppet/parser/ast/resource_reference.rb +28 -0
- data/lib/vendor/puppet/parser/ast/resourceparam.rb +29 -0
- data/lib/vendor/puppet/parser/ast/selector.rb +44 -0
- data/lib/vendor/puppet/parser/ast/tag.rb +24 -0
- data/lib/vendor/puppet/parser/ast/top_level_construct.rb +4 -0
- data/lib/vendor/puppet/parser/ast/vardef.rb +33 -0
- data/lib/vendor/puppet/parser/ast.rb +139 -0
- data/lib/vendor/puppet/parser/collector.rb +176 -0
- data/lib/vendor/puppet/parser/compiler.rb +476 -0
- data/lib/vendor/puppet/parser/files.rb +88 -0
- data/lib/vendor/puppet/parser/functions/create_resources.rb +75 -0
- data/lib/vendor/puppet/parser/functions/defined.rb +49 -0
- data/lib/vendor/puppet/parser/functions/extlookup.rb +152 -0
- data/lib/vendor/puppet/parser/functions/fail.rb +4 -0
- data/lib/vendor/puppet/parser/functions/file.rb +23 -0
- data/lib/vendor/puppet/parser/functions/fqdn_rand.rb +13 -0
- data/lib/vendor/puppet/parser/functions/generate.rb +37 -0
- data/lib/vendor/puppet/parser/functions/include.rb +24 -0
- data/lib/vendor/puppet/parser/functions/inline_template.rb +21 -0
- data/lib/vendor/puppet/parser/functions/md5.rb +5 -0
- data/lib/vendor/puppet/parser/functions/realize.rb +14 -0
- data/lib/vendor/puppet/parser/functions/regsubst.rb +119 -0
- data/lib/vendor/puppet/parser/functions/require.rb +57 -0
- data/lib/vendor/puppet/parser/functions/search.rb +7 -0
- data/lib/vendor/puppet/parser/functions/sha1.rb +5 -0
- data/lib/vendor/puppet/parser/functions/shellquote.rb +61 -0
- data/lib/vendor/puppet/parser/functions/split.rb +29 -0
- data/lib/vendor/puppet/parser/functions/sprintf.rb +39 -0
- data/lib/vendor/puppet/parser/functions/tag.rb +6 -0
- data/lib/vendor/puppet/parser/functions/tagged.rb +18 -0
- data/lib/vendor/puppet/parser/functions/template.rb +23 -0
- data/lib/vendor/puppet/parser/functions/versioncmp.rb +37 -0
- data/lib/vendor/puppet/parser/functions.rb +165 -0
- data/lib/vendor/puppet/parser/grammar.ra +771 -0
- data/lib/vendor/puppet/parser/lexer.rb +617 -0
- data/lib/vendor/puppet/parser/makefile +8 -0
- data/lib/vendor/puppet/parser/parser.rb +2421 -0
- data/lib/vendor/puppet/parser/parser_support.rb +211 -0
- data/lib/vendor/puppet/parser/relationship.rb +62 -0
- data/lib/vendor/puppet/parser/resource/param.rb +25 -0
- data/lib/vendor/puppet/parser/resource.rb +341 -0
- data/lib/vendor/puppet/parser/scope.rb +497 -0
- data/lib/vendor/puppet/parser/templatewrapper.rb +115 -0
- data/lib/vendor/puppet/parser/type_loader.rb +172 -0
- data/lib/vendor/puppet/parser/yaml_trimmer.rb +9 -0
- data/lib/vendor/puppet/parser.rb +4 -0
- data/lib/vendor/puppet/property/ensure.rb +92 -0
- data/lib/vendor/puppet/property/keyvalue.rb +86 -0
- data/lib/vendor/puppet/property/list.rb +75 -0
- data/lib/vendor/puppet/property/ordered_list.rb +22 -0
- data/lib/vendor/puppet/property.rb +373 -0
- data/lib/vendor/puppet/provider/aixobject.rb +393 -0
- data/lib/vendor/puppet/provider/augeas/augeas.rb +418 -0
- data/lib/vendor/puppet/provider/cisco.rb +9 -0
- data/lib/vendor/puppet/provider/computer/computer.rb +20 -0
- data/lib/vendor/puppet/provider/confine/exists.rb +19 -0
- data/lib/vendor/puppet/provider/confine/false.rb +19 -0
- data/lib/vendor/puppet/provider/confine/feature.rb +17 -0
- data/lib/vendor/puppet/provider/confine/true.rb +20 -0
- data/lib/vendor/puppet/provider/confine/variable.rb +59 -0
- data/lib/vendor/puppet/provider/confine.rb +80 -0
- data/lib/vendor/puppet/provider/confine_collection.rb +50 -0
- data/lib/vendor/puppet/provider/confiner.rb +16 -0
- data/lib/vendor/puppet/provider/cron/crontab.rb +200 -0
- data/lib/vendor/puppet/provider/exec/posix.rb +39 -0
- data/lib/vendor/puppet/provider/exec/shell.rb +25 -0
- data/lib/vendor/puppet/provider/exec/windows.rb +56 -0
- data/lib/vendor/puppet/provider/exec.rb +84 -0
- data/lib/vendor/puppet/provider/file/posix.rb +135 -0
- data/lib/vendor/puppet/provider/file/windows.rb +88 -0
- data/lib/vendor/puppet/provider/group/aix.rb +141 -0
- data/lib/vendor/puppet/provider/group/directoryservice.rb +12 -0
- data/lib/vendor/puppet/provider/group/groupadd.rb +29 -0
- data/lib/vendor/puppet/provider/group/ldap.rb +45 -0
- data/lib/vendor/puppet/provider/group/pw.rb +48 -0
- data/lib/vendor/puppet/provider/group/windows_adsi.rb +54 -0
- data/lib/vendor/puppet/provider/host/parsed.rb +44 -0
- data/lib/vendor/puppet/provider/interface/base.rb +0 -0
- data/lib/vendor/puppet/provider/interface/cisco.rb +27 -0
- data/lib/vendor/puppet/provider/ldap.rb +137 -0
- data/lib/vendor/puppet/provider/macauthorization/macauthorization.rb +313 -0
- data/lib/vendor/puppet/provider/mailalias/aliases.rb +44 -0
- data/lib/vendor/puppet/provider/maillist/mailman.rb +108 -0
- data/lib/vendor/puppet/provider/mcx/mcxcontent.rb +166 -0
- data/lib/vendor/puppet/provider/mount/parsed.rb +124 -0
- data/lib/vendor/puppet/provider/mount.rb +46 -0
- data/lib/vendor/puppet/provider/naginator.rb +63 -0
- data/lib/vendor/puppet/provider/nameservice/directoryservice.rb +652 -0
- data/lib/vendor/puppet/provider/nameservice/objectadd.rb +33 -0
- data/lib/vendor/puppet/provider/nameservice/pw.rb +21 -0
- data/lib/vendor/puppet/provider/nameservice.rb +276 -0
- data/lib/vendor/puppet/provider/network_device.rb +68 -0
- data/lib/vendor/puppet/provider/package/aix.rb +128 -0
- data/lib/vendor/puppet/provider/package/appdmg.rb +109 -0
- data/lib/vendor/puppet/provider/package/apple.rb +47 -0
- data/lib/vendor/puppet/provider/package/apt.rb +111 -0
- data/lib/vendor/puppet/provider/package/aptitude.rb +29 -0
- data/lib/vendor/puppet/provider/package/aptrpm.rb +83 -0
- data/lib/vendor/puppet/provider/package/blastwave.rb +111 -0
- data/lib/vendor/puppet/provider/package/dpkg.rb +155 -0
- data/lib/vendor/puppet/provider/package/fink.rb +81 -0
- data/lib/vendor/puppet/provider/package/freebsd.rb +49 -0
- data/lib/vendor/puppet/provider/package/gem.rb +127 -0
- data/lib/vendor/puppet/provider/package/hpux.rb +44 -0
- data/lib/vendor/puppet/provider/package/macports.rb +105 -0
- data/lib/vendor/puppet/provider/package/msi.rb +141 -0
- data/lib/vendor/puppet/provider/package/nim.rb +35 -0
- data/lib/vendor/puppet/provider/package/openbsd.rb +112 -0
- data/lib/vendor/puppet/provider/package/pacman.rb +94 -0
- data/lib/vendor/puppet/provider/package/pip.rb +111 -0
- data/lib/vendor/puppet/provider/package/pkg.rb +112 -0
- data/lib/vendor/puppet/provider/package/pkgdmg.rb +123 -0
- data/lib/vendor/puppet/provider/package/pkgutil.rb +174 -0
- data/lib/vendor/puppet/provider/package/portage.rb +124 -0
- data/lib/vendor/puppet/provider/package/ports.rb +94 -0
- data/lib/vendor/puppet/provider/package/portupgrade.rb +241 -0
- data/lib/vendor/puppet/provider/package/rpm.rb +132 -0
- data/lib/vendor/puppet/provider/package/rug.rb +52 -0
- data/lib/vendor/puppet/provider/package/sun.rb +154 -0
- data/lib/vendor/puppet/provider/package/sunfreeware.rb +9 -0
- data/lib/vendor/puppet/provider/package/up2date.rb +41 -0
- data/lib/vendor/puppet/provider/package/urpmi.rb +59 -0
- data/lib/vendor/puppet/provider/package/yum.rb +106 -0
- data/lib/vendor/puppet/provider/package/yumhelper.py +129 -0
- data/lib/vendor/puppet/provider/package/zypper.rb +84 -0
- data/lib/vendor/puppet/provider/package.rb +28 -0
- data/lib/vendor/puppet/provider/parsedfile.rb +374 -0
- data/lib/vendor/puppet/provider/port/parsed.rb +173 -0
- data/lib/vendor/puppet/provider/scheduled_task/win32_taskscheduler.rb +565 -0
- data/lib/vendor/puppet/provider/selboolean/getsetsebool.rb +47 -0
- data/lib/vendor/puppet/provider/selmodule/semodule.rb +134 -0
- data/lib/vendor/puppet/provider/service/base.rb +105 -0
- data/lib/vendor/puppet/provider/service/bsd.rb +49 -0
- data/lib/vendor/puppet/provider/service/daemontools.rb +194 -0
- data/lib/vendor/puppet/provider/service/debian.rb +68 -0
- data/lib/vendor/puppet/provider/service/freebsd.rb +139 -0
- data/lib/vendor/puppet/provider/service/gentoo.rb +54 -0
- data/lib/vendor/puppet/provider/service/init.rb +140 -0
- data/lib/vendor/puppet/provider/service/launchd.rb +303 -0
- data/lib/vendor/puppet/provider/service/openrc.rb +69 -0
- data/lib/vendor/puppet/provider/service/redhat.rb +76 -0
- data/lib/vendor/puppet/provider/service/runit.rb +103 -0
- data/lib/vendor/puppet/provider/service/service.rb +43 -0
- data/lib/vendor/puppet/provider/service/smf.rb +104 -0
- data/lib/vendor/puppet/provider/service/src.rb +86 -0
- data/lib/vendor/puppet/provider/service/systemd.rb +64 -0
- data/lib/vendor/puppet/provider/service/upstart.rb +347 -0
- data/lib/vendor/puppet/provider/service/windows.rb +106 -0
- data/lib/vendor/puppet/provider/ssh_authorized_key/parsed.rb +88 -0
- data/lib/vendor/puppet/provider/sshkey/parsed.rb +37 -0
- data/lib/vendor/puppet/provider/user/aix.rb +357 -0
- data/lib/vendor/puppet/provider/user/directoryservice.rb +86 -0
- data/lib/vendor/puppet/provider/user/hpux.rb +31 -0
- data/lib/vendor/puppet/provider/user/ldap.rb +129 -0
- data/lib/vendor/puppet/provider/user/pw.rb +101 -0
- data/lib/vendor/puppet/provider/user/user_role_add.rb +207 -0
- data/lib/vendor/puppet/provider/user/useradd.rb +127 -0
- data/lib/vendor/puppet/provider/user/windows_adsi.rb +99 -0
- data/lib/vendor/puppet/provider/vlan/cisco.rb +28 -0
- data/lib/vendor/puppet/provider/zfs/solaris.rb +45 -0
- data/lib/vendor/puppet/provider/zone/solaris.rb +260 -0
- data/lib/vendor/puppet/provider/zpool/solaris.rb +116 -0
- data/lib/vendor/puppet/provider.rb +290 -0
- data/lib/vendor/puppet/rails/benchmark.rb +63 -0
- data/lib/vendor/puppet/rails/database/001_add_created_at_to_all_tables.rb +13 -0
- data/lib/vendor/puppet/rails/database/002_remove_duplicated_index_on_all_tables.rb +13 -0
- data/lib/vendor/puppet/rails/database/003_add_environment_to_host.rb +9 -0
- data/lib/vendor/puppet/rails/database/004_add_inventory_service_tables.rb +36 -0
- data/lib/vendor/puppet/rails/database/schema.rb +131 -0
- data/lib/vendor/puppet/rails/fact_name.rb +6 -0
- data/lib/vendor/puppet/rails/fact_value.rb +8 -0
- data/lib/vendor/puppet/rails/host.rb +258 -0
- data/lib/vendor/puppet/rails/inventory_fact.rb +5 -0
- data/lib/vendor/puppet/rails/inventory_node.rb +43 -0
- data/lib/vendor/puppet/rails/param_name.rb +25 -0
- data/lib/vendor/puppet/rails/param_value.rb +74 -0
- data/lib/vendor/puppet/rails/puppet_tag.rb +10 -0
- data/lib/vendor/puppet/rails/resource.rb +231 -0
- data/lib/vendor/puppet/rails/resource_tag.rb +26 -0
- data/lib/vendor/puppet/rails/source_file.rb +8 -0
- data/lib/vendor/puppet/rails.rb +132 -0
- data/lib/vendor/puppet/rb_tree_map.rb +388 -0
- data/lib/vendor/puppet/reference/configuration.rb +69 -0
- data/lib/vendor/puppet/reference/function.rb +17 -0
- data/lib/vendor/puppet/reference/indirection.rb +32 -0
- data/lib/vendor/puppet/reference/metaparameter.rb +43 -0
- data/lib/vendor/puppet/reference/network.rb +39 -0
- data/lib/vendor/puppet/reference/providers.rb +119 -0
- data/lib/vendor/puppet/reference/report.rb +23 -0
- data/lib/vendor/puppet/reference/type.rb +116 -0
- data/lib/vendor/puppet/relationship.rb +95 -0
- data/lib/vendor/puppet/reports/http.rb +25 -0
- data/lib/vendor/puppet/reports/log.rb +14 -0
- data/lib/vendor/puppet/reports/rrdgraph.rb +128 -0
- data/lib/vendor/puppet/reports/store.rb +74 -0
- data/lib/vendor/puppet/reports/tagmail.rb +179 -0
- data/lib/vendor/puppet/reports.rb +49 -0
- data/lib/vendor/puppet/resource/catalog.rb +661 -0
- data/lib/vendor/puppet/resource/status.rb +79 -0
- data/lib/vendor/puppet/resource/type.rb +344 -0
- data/lib/vendor/puppet/resource/type_collection.rb +215 -0
- data/lib/vendor/puppet/resource/type_collection_helper.rb +7 -0
- data/lib/vendor/puppet/resource.rb +467 -0
- data/lib/vendor/puppet/run.rb +77 -0
- data/lib/vendor/puppet/simple_graph.rb +550 -0
- data/lib/vendor/puppet/ssl/base.rb +86 -0
- data/lib/vendor/puppet/ssl/certificate.rb +40 -0
- data/lib/vendor/puppet/ssl/certificate_authority/interface.rb +182 -0
- data/lib/vendor/puppet/ssl/certificate_authority.rb +374 -0
- data/lib/vendor/puppet/ssl/certificate_factory.rb +166 -0
- data/lib/vendor/puppet/ssl/certificate_request.rb +149 -0
- data/lib/vendor/puppet/ssl/certificate_revocation_list.rb +84 -0
- data/lib/vendor/puppet/ssl/host.rb +365 -0
- data/lib/vendor/puppet/ssl/inventory.rb +54 -0
- data/lib/vendor/puppet/ssl/key.rb +56 -0
- data/lib/vendor/puppet/ssl.rb +8 -0
- data/lib/vendor/puppet/status.rb +28 -0
- data/lib/vendor/puppet/test/test_helper.rb +141 -0
- data/lib/vendor/puppet/transaction/event.rb +66 -0
- data/lib/vendor/puppet/transaction/event_manager.rb +115 -0
- data/lib/vendor/puppet/transaction/report.rb +200 -0
- data/lib/vendor/puppet/transaction/resource_harness.rb +178 -0
- data/lib/vendor/puppet/transaction.rb +493 -0
- data/lib/vendor/puppet/transportable.rb +248 -0
- data/lib/vendor/puppet/type/augeas.rb +218 -0
- data/lib/vendor/puppet/type/component.rb +85 -0
- data/lib/vendor/puppet/type/computer.rb +66 -0
- data/lib/vendor/puppet/type/cron.rb +421 -0
- data/lib/vendor/puppet/type/exec.rb +520 -0
- data/lib/vendor/puppet/type/file/checksum.rb +33 -0
- data/lib/vendor/puppet/type/file/content.rb +230 -0
- data/lib/vendor/puppet/type/file/ctime.rb +18 -0
- data/lib/vendor/puppet/type/file/ensure.rb +172 -0
- data/lib/vendor/puppet/type/file/group.rb +41 -0
- data/lib/vendor/puppet/type/file/mode.rb +148 -0
- data/lib/vendor/puppet/type/file/mtime.rb +17 -0
- data/lib/vendor/puppet/type/file/owner.rb +44 -0
- data/lib/vendor/puppet/type/file/selcontext.rb +123 -0
- data/lib/vendor/puppet/type/file/source.rb +195 -0
- data/lib/vendor/puppet/type/file/target.rb +87 -0
- data/lib/vendor/puppet/type/file/type.rb +19 -0
- data/lib/vendor/puppet/type/file.rb +829 -0
- data/lib/vendor/puppet/type/filebucket.rb +114 -0
- data/lib/vendor/puppet/type/group.rb +149 -0
- data/lib/vendor/puppet/type/host.rb +87 -0
- data/lib/vendor/puppet/type/interface.rb +112 -0
- data/lib/vendor/puppet/type/k5login.rb +88 -0
- data/lib/vendor/puppet/type/macauthorization.rb +167 -0
- data/lib/vendor/puppet/type/mailalias.rb +48 -0
- data/lib/vendor/puppet/type/maillist.rb +62 -0
- data/lib/vendor/puppet/type/mcx.rb +99 -0
- data/lib/vendor/puppet/type/mount.rb +241 -0
- data/lib/vendor/puppet/type/nagios_command.rb +3 -0
- data/lib/vendor/puppet/type/nagios_contact.rb +3 -0
- data/lib/vendor/puppet/type/nagios_contactgroup.rb +3 -0
- data/lib/vendor/puppet/type/nagios_host.rb +3 -0
- data/lib/vendor/puppet/type/nagios_hostdependency.rb +3 -0
- data/lib/vendor/puppet/type/nagios_hostescalation.rb +3 -0
- data/lib/vendor/puppet/type/nagios_hostextinfo.rb +3 -0
- data/lib/vendor/puppet/type/nagios_hostgroup.rb +3 -0
- data/lib/vendor/puppet/type/nagios_service.rb +3 -0
- data/lib/vendor/puppet/type/nagios_servicedependency.rb +3 -0
- data/lib/vendor/puppet/type/nagios_serviceescalation.rb +3 -0
- data/lib/vendor/puppet/type/nagios_serviceextinfo.rb +3 -0
- data/lib/vendor/puppet/type/nagios_servicegroup.rb +3 -0
- data/lib/vendor/puppet/type/nagios_timeperiod.rb +3 -0
- data/lib/vendor/puppet/type/notify.rb +44 -0
- data/lib/vendor/puppet/type/package.rb +357 -0
- data/lib/vendor/puppet/type/port.rb +119 -0
- data/lib/vendor/puppet/type/resources.rb +131 -0
- data/lib/vendor/puppet/type/router.rb +17 -0
- data/lib/vendor/puppet/type/schedule.rb +360 -0
- data/lib/vendor/puppet/type/scheduled_task.rb +166 -0
- data/lib/vendor/puppet/type/selboolean.rb +26 -0
- data/lib/vendor/puppet/type/selmodule.rb +59 -0
- data/lib/vendor/puppet/type/service.rb +221 -0
- data/lib/vendor/puppet/type/ssh_authorized_key.rb +112 -0
- data/lib/vendor/puppet/type/sshkey.rb +72 -0
- data/lib/vendor/puppet/type/stage.rb +19 -0
- data/lib/vendor/puppet/type/tidy.rb +333 -0
- data/lib/vendor/puppet/type/user.rb +524 -0
- data/lib/vendor/puppet/type/vlan.rb +26 -0
- data/lib/vendor/puppet/type/whit.rb +34 -0
- data/lib/vendor/puppet/type/yumrepo.rb +361 -0
- data/lib/vendor/puppet/type/zfs.rb +146 -0
- data/lib/vendor/puppet/type/zone.rb +492 -0
- data/lib/vendor/puppet/type/zpool.rb +91 -0
- data/lib/vendor/puppet/type.rb +1979 -0
- data/lib/vendor/puppet/util/adsi.rb +296 -0
- data/lib/vendor/puppet/util/autoload/file_cache.rb +92 -0
- data/lib/vendor/puppet/util/autoload.rb +158 -0
- data/lib/vendor/puppet/util/backups.rb +87 -0
- data/lib/vendor/puppet/util/cacher.rb +80 -0
- data/lib/vendor/puppet/util/checksums.rb +143 -0
- data/lib/vendor/puppet/util/classgen.rb +209 -0
- data/lib/vendor/puppet/util/colors.rb +128 -0
- data/lib/vendor/puppet/util/command_line.rb +185 -0
- data/lib/vendor/puppet/util/constant_inflector.rb +15 -0
- data/lib/vendor/puppet/util/diff.rb +77 -0
- data/lib/vendor/puppet/util/docs.rb +123 -0
- data/lib/vendor/puppet/util/errors.rb +63 -0
- data/lib/vendor/puppet/util/execution.rb +20 -0
- data/lib/vendor/puppet/util/execution_stub.rb +26 -0
- data/lib/vendor/puppet/util/feature.rb +83 -0
- data/lib/vendor/puppet/util/file_locking.rb +47 -0
- data/lib/vendor/puppet/util/fileparsing.rb +373 -0
- data/lib/vendor/puppet/util/filetype.rb +296 -0
- data/lib/vendor/puppet/util/graph.rb +27 -0
- data/lib/vendor/puppet/util/inifile.rb +203 -0
- data/lib/vendor/puppet/util/inline_docs.rb +26 -0
- data/lib/vendor/puppet/util/instance_loader.rb +81 -0
- data/lib/vendor/puppet/util/instrumentation/data.rb +34 -0
- data/lib/vendor/puppet/util/instrumentation/indirection_probe.rb +29 -0
- data/lib/vendor/puppet/util/instrumentation/instrumentable.rb +143 -0
- data/lib/vendor/puppet/util/instrumentation/listener.rb +60 -0
- data/lib/vendor/puppet/util/instrumentation/listeners/log.rb +29 -0
- data/lib/vendor/puppet/util/instrumentation/listeners/performance.rb +30 -0
- data/lib/vendor/puppet/util/instrumentation.rb +171 -0
- data/lib/vendor/puppet/util/ldap/connection.rb +74 -0
- data/lib/vendor/puppet/util/ldap/generator.rb +42 -0
- data/lib/vendor/puppet/util/ldap/manager.rb +279 -0
- data/lib/vendor/puppet/util/ldap.rb +2 -0
- data/lib/vendor/puppet/util/loadedfile.rb +61 -0
- data/lib/vendor/puppet/util/log/destination.rb +49 -0
- data/lib/vendor/puppet/util/log/destinations.rb +268 -0
- data/lib/vendor/puppet/util/log.rb +275 -0
- data/lib/vendor/puppet/util/log_paths.rb +22 -0
- data/lib/vendor/puppet/util/logging.rb +51 -0
- data/lib/vendor/puppet/util/metaid.rb +21 -0
- data/lib/vendor/puppet/util/methodhelper.rb +32 -0
- data/lib/vendor/puppet/util/metric.rb +186 -0
- data/lib/vendor/puppet/util/monkey_patches.rb +243 -0
- data/lib/vendor/puppet/util/nagios_maker.rb +60 -0
- data/lib/vendor/puppet/util/network_device/base.rb +27 -0
- data/lib/vendor/puppet/util/network_device/cisco/device.rb +257 -0
- data/lib/vendor/puppet/util/network_device/cisco/facts.rb +72 -0
- data/lib/vendor/puppet/util/network_device/cisco/interface.rb +82 -0
- data/lib/vendor/puppet/util/network_device/cisco.rb +4 -0
- data/lib/vendor/puppet/util/network_device/config.rb +92 -0
- data/lib/vendor/puppet/util/network_device/ipcalc.rb +68 -0
- data/lib/vendor/puppet/util/network_device/transport/base.rb +26 -0
- data/lib/vendor/puppet/util/network_device/transport/ssh.rb +121 -0
- data/lib/vendor/puppet/util/network_device/transport/telnet.rb +42 -0
- data/lib/vendor/puppet/util/network_device/transport.rb +3 -0
- data/lib/vendor/puppet/util/network_device.rb +17 -0
- data/lib/vendor/puppet/util/package.rb +31 -0
- data/lib/vendor/puppet/util/pidlock.rb +117 -0
- data/lib/vendor/puppet/util/platform.rb +22 -0
- data/lib/vendor/puppet/util/plugins.rb +82 -0
- data/lib/vendor/puppet/util/posix.rb +137 -0
- data/lib/vendor/puppet/util/provider_features.rb +168 -0
- data/lib/vendor/puppet/util/pson.rb +13 -0
- data/lib/vendor/puppet/util/queue/stomp.rb +60 -0
- data/lib/vendor/puppet/util/queue.rb +96 -0
- data/lib/vendor/puppet/util/rails/cache_accumulator.rb +65 -0
- data/lib/vendor/puppet/util/rails/collection_merger.rb +17 -0
- data/lib/vendor/puppet/util/rails/reference_serializer.rb +32 -0
- data/lib/vendor/puppet/util/rdoc.rb +87 -0
- data/lib/vendor/puppet/util/reference.rb +124 -0
- data/lib/vendor/puppet/util/resource_template.rb +61 -0
- data/lib/vendor/puppet/util/retryaction.rb +48 -0
- data/lib/vendor/puppet/util/run_mode.rb +82 -0
- data/lib/vendor/puppet/util/selinux.rb +211 -0
- data/lib/vendor/puppet/util/settings/boolean_setting.rb +30 -0
- data/lib/vendor/puppet/util/settings/file_setting.rb +135 -0
- data/lib/vendor/puppet/util/settings/setting.rb +94 -0
- data/lib/vendor/puppet/util/settings.rb +926 -0
- data/lib/vendor/puppet/util/storage.rb +96 -0
- data/lib/vendor/puppet/util/subclass_loader.rb +82 -0
- data/lib/vendor/puppet/util/suidmanager.rb +173 -0
- data/lib/vendor/puppet/util/symbolic_file_mode.rb +140 -0
- data/lib/vendor/puppet/util/tagging.rb +78 -0
- data/lib/vendor/puppet/util/terminal.rb +16 -0
- data/lib/vendor/puppet/util/user_attr.rb +21 -0
- data/lib/vendor/puppet/util/warnings.rb +29 -0
- data/lib/vendor/puppet/util/windows/error.rb +16 -0
- data/lib/vendor/puppet/util/windows/file.rb +27 -0
- data/lib/vendor/puppet/util/windows/process.rb +33 -0
- data/lib/vendor/puppet/util/windows/security.rb +622 -0
- data/lib/vendor/puppet/util/windows/sid.rb +96 -0
- data/lib/vendor/puppet/util/windows/user.rb +106 -0
- data/lib/vendor/puppet/util/windows.rb +8 -0
- data/lib/vendor/puppet/util/zaml.rb +407 -0
- data/lib/vendor/puppet/util.rb +646 -0
- data/lib/vendor/puppet/version.rb +18 -0
- data/lib/vendor/puppet.rb +125 -0
- data/lib/vendor/semver.rb +124 -0
- data/puppet-parse.gemspec +2 -8
- metadata +812 -94
@@ -0,0 +1,970 @@
|
|
1
|
+
# The majority of Puppet's configuration settings are set in this file.
|
2
|
+
module Puppet
|
3
|
+
setdefaults(:main,
|
4
|
+
:confdir => [Puppet.run_mode.conf_dir, "The main Puppet configuration directory. The default for this setting is calculated based on the user. If the process
|
5
|
+
is running as root or the user that Puppet is supposed to run as, it defaults to a system directory, but if it's running as any other user,
|
6
|
+
it defaults to being in the user's home directory."],
|
7
|
+
:vardir => [Puppet.run_mode.var_dir, "Where Puppet stores dynamic and growing data. The default for this setting is calculated specially, like `confdir`_."],
|
8
|
+
:name => [Puppet.application_name.to_s, "The name of the application, if we are running as one. The
|
9
|
+
default is essentially $0 without the path or `.rb`."],
|
10
|
+
:run_mode => [Puppet.run_mode.name.to_s, "The effective 'run mode' of the application: master, agent, or user."]
|
11
|
+
)
|
12
|
+
|
13
|
+
setdefaults(:main, :logdir => Puppet.run_mode.logopts)
|
14
|
+
|
15
|
+
setdefaults(:main,
|
16
|
+
:trace => [false, "Whether to print stack traces on some errors"],
|
17
|
+
:autoflush => {
|
18
|
+
:default => true,
|
19
|
+
:desc => "Whether log files should always flush to disk.",
|
20
|
+
:hook => proc { |value| Log.autoflush = value }
|
21
|
+
},
|
22
|
+
:syslogfacility => ["daemon", "What syslog facility to use when logging to
|
23
|
+
syslog. Syslog has a fixed list of valid facilities, and you must
|
24
|
+
choose one of those; you cannot just make one up."],
|
25
|
+
:statedir => { :default => "$vardir/state",
|
26
|
+
:mode => 01755,
|
27
|
+
:desc => "The directory where Puppet state is stored. Generally,
|
28
|
+
this directory can be removed without causing harm (although it
|
29
|
+
might result in spurious service restarts)."
|
30
|
+
},
|
31
|
+
:rundir => {
|
32
|
+
:default => Puppet.run_mode.run_dir,
|
33
|
+
:mode => 01777,
|
34
|
+
:desc => "Where Puppet PID files are kept."
|
35
|
+
},
|
36
|
+
:genconfig => [false,
|
37
|
+
"Whether to just print a configuration to stdout and exit. Only makes
|
38
|
+
sense when used interactively. Takes into account arguments specified
|
39
|
+
on the CLI."],
|
40
|
+
:genmanifest => [false,
|
41
|
+
"Whether to just print a manifest to stdout and exit. Only makes
|
42
|
+
sense when used interactively. Takes into account arguments specified
|
43
|
+
on the CLI."],
|
44
|
+
:configprint => ["",
|
45
|
+
"Print the value of a specific configuration setting. If the name of a
|
46
|
+
setting is provided for this, then the value is printed and puppet
|
47
|
+
exits. Comma-separate multiple values. For a list of all values,
|
48
|
+
specify 'all'."],
|
49
|
+
:color => {
|
50
|
+
:default => "ansi",
|
51
|
+
:type => :setting,
|
52
|
+
:desc => "Whether to use colors when logging to the console. Valid values are
|
53
|
+
`ansi` (equivalent to `true`), `html`, and `false`, which produces no color.",
|
54
|
+
},
|
55
|
+
:mkusers => [false,
|
56
|
+
"Whether to create the necessary user and group that puppet agent will
|
57
|
+
run as."],
|
58
|
+
:manage_internal_file_permissions => [true,
|
59
|
+
"Whether Puppet should manage the owner, group, and mode of files
|
60
|
+
it uses internally"
|
61
|
+
],
|
62
|
+
:onetime => {:default => false,
|
63
|
+
:desc => "Run the configuration once, rather than as a long-running
|
64
|
+
daemon. This is useful for interactively running puppetd.",
|
65
|
+
:short => 'o'
|
66
|
+
},
|
67
|
+
:path => {:default => "none",
|
68
|
+
:desc => "The shell search path. Defaults to whatever is inherited
|
69
|
+
from the parent process.",
|
70
|
+
:call_on_define => true, # Call our hook with the default value, so we always get the libdir set.
|
71
|
+
:hook => proc do |value|
|
72
|
+
ENV["PATH"] = "" if ENV["PATH"].nil?
|
73
|
+
ENV["PATH"] = value unless value == "none"
|
74
|
+
paths = ENV["PATH"].split(File::PATH_SEPARATOR)
|
75
|
+
Puppet::Util::Platform.default_paths.each do |path|
|
76
|
+
ENV["PATH"] += File::PATH_SEPARATOR + path unless paths.include?(path)
|
77
|
+
end
|
78
|
+
value
|
79
|
+
end
|
80
|
+
},
|
81
|
+
:libdir => {:default => "$vardir/lib",
|
82
|
+
:desc => "An extra search path for Puppet. This is only useful
|
83
|
+
for those files that Puppet will load on demand, and is only
|
84
|
+
guaranteed to work for those cases. In fact, the autoload
|
85
|
+
mechanism is responsible for making sure this directory
|
86
|
+
is in Ruby's search path",
|
87
|
+
:call_on_define => true, # Call our hook with the default value, so we always get the libdir set.
|
88
|
+
:hook => proc do |value|
|
89
|
+
$LOAD_PATH.delete(@oldlibdir) if defined?(@oldlibdir) and $LOAD_PATH.include?(@oldlibdir)
|
90
|
+
@oldlibdir = value
|
91
|
+
$LOAD_PATH << value
|
92
|
+
end
|
93
|
+
},
|
94
|
+
:ignoreimport => [false, "If true, allows the parser to continue without requiring
|
95
|
+
all files referenced with `import` statements to exist. This setting was primarily
|
96
|
+
designed for use with commit hooks for parse-checking."],
|
97
|
+
:authconfig => [ "$confdir/namespaceauth.conf",
|
98
|
+
"The configuration file that defines the rights to the different
|
99
|
+
namespaces and methods. This can be used as a coarse-grained
|
100
|
+
authorization system for both `puppet agent` and `puppet master`."
|
101
|
+
],
|
102
|
+
:environment => {:default => "production", :desc => "The environment Puppet is running in. For clients
|
103
|
+
(e.g., `puppet agent`) this determines the environment itself, which
|
104
|
+
is used to find modules and much more. For servers (i.e., `puppet master`) this provides the default environment for nodes
|
105
|
+
we know nothing about."
|
106
|
+
},
|
107
|
+
:diff_args => ["-u", "Which arguments to pass to the diff command when printing differences between
|
108
|
+
files. The command to use can be chosen with the `diff` setting."],
|
109
|
+
:diff => {
|
110
|
+
:default => (Puppet.features.microsoft_windows? ? "" : "diff"),
|
111
|
+
:desc => "Which diff command to use when printing differences between files. This setting
|
112
|
+
has no default value on Windows, as standard `diff` is not available, but Puppet can use many
|
113
|
+
third-party diff tools.",
|
114
|
+
},
|
115
|
+
:show_diff => [false, "Whether to log and report a contextual diff when files are being replaced. This causes
|
116
|
+
partial file contents to pass through Puppet's normal logging and reporting system, so this setting should be
|
117
|
+
used with caution if you are sending Puppet's reports to an insecure destination.
|
118
|
+
This feature currently requires the `diff/lcs` Ruby library."],
|
119
|
+
:daemonize => {
|
120
|
+
:default => (Puppet.features.microsoft_windows? ? false : true),
|
121
|
+
:desc => "Whether to send the process into the background. This defaults to true on POSIX systems,
|
122
|
+
and to false on Windows (where Puppet currently cannot daemonize).",
|
123
|
+
:short => "D",
|
124
|
+
:hook => proc do |value|
|
125
|
+
if value and Puppet.features.microsoft_windows?
|
126
|
+
raise "Cannot daemonize on Windows"
|
127
|
+
end
|
128
|
+
end
|
129
|
+
},
|
130
|
+
:maximum_uid => [4294967290, "The maximum allowed UID. Some platforms use negative UIDs
|
131
|
+
but then ship with tools that do not know how to handle signed ints, so the UIDs show up as
|
132
|
+
huge numbers that can then not be fed back into the system. This is a hackish way to fail in a
|
133
|
+
slightly more useful way when that happens."],
|
134
|
+
:route_file => ["$confdir/routes.yaml", "The YAML file containing indirector route configuration."],
|
135
|
+
:node_terminus => ["plain", "Where to find information about nodes."],
|
136
|
+
:catalog_terminus => ["compiler", "Where to get node catalogs. This is useful to change if, for instance,
|
137
|
+
you'd like to pre-compile catalogs and store them in memcached or some other easily-accessed store."],
|
138
|
+
:facts_terminus => {
|
139
|
+
:default => Puppet.application_name.to_s == "master" ? 'yaml' : 'facter',
|
140
|
+
:desc => "The node facts terminus.",
|
141
|
+
:hook => proc do |value|
|
142
|
+
require 'puppet/node/facts'
|
143
|
+
# Cache to YAML if we're uploading facts away
|
144
|
+
if %w[rest inventory_service].include? value.to_s
|
145
|
+
Puppet::Node::Facts.indirection.cache_class = :yaml
|
146
|
+
end
|
147
|
+
end
|
148
|
+
},
|
149
|
+
:inventory_terminus => [ "$facts_terminus", "Should usually be the same as the facts terminus" ],
|
150
|
+
:httplog => { :default => "$logdir/http.log",
|
151
|
+
:owner => "root",
|
152
|
+
:mode => 0640,
|
153
|
+
:desc => "Where the puppet agent web server logs."
|
154
|
+
},
|
155
|
+
:http_proxy_host => ["none",
|
156
|
+
"The HTTP proxy host to use for outgoing connections. Note: You
|
157
|
+
may need to use a FQDN for the server hostname when using a proxy."],
|
158
|
+
:http_proxy_port => [3128, "The HTTP proxy port to use for outgoing connections"],
|
159
|
+
:filetimeout => [ 15,
|
160
|
+
"The minimum time to wait (in seconds) between checking for updates in
|
161
|
+
configuration files. This timeout determines how quickly Puppet checks whether
|
162
|
+
a file (such as manifests or templates) has changed on disk."
|
163
|
+
],
|
164
|
+
:queue_type => ["stomp", "Which type of queue to use for asynchronous processing."],
|
165
|
+
:queue_type => ["stomp", "Which type of queue to use for asynchronous processing."],
|
166
|
+
:queue_source => ["stomp://localhost:61613/", "Which type of queue to use for asynchronous processing. If your stomp server requires
|
167
|
+
authentication, you can include it in the URI as long as your stomp client library is at least 1.1.1"],
|
168
|
+
:async_storeconfigs => {:default => false, :desc => "Whether to use a queueing system to provide asynchronous database integration.
|
169
|
+
Requires that `puppetqd` be running and that 'PSON' support for ruby be installed.",
|
170
|
+
:hook => proc do |value|
|
171
|
+
if value
|
172
|
+
# This reconfigures the terminii for Node, Facts, and Catalog
|
173
|
+
Puppet.settings[:storeconfigs] = true
|
174
|
+
|
175
|
+
# But then we modify the configuration
|
176
|
+
Puppet::Resource::Catalog.indirection.cache_class = :queue
|
177
|
+
else
|
178
|
+
raise "Cannot disable asynchronous storeconfigs in a running process"
|
179
|
+
end
|
180
|
+
end
|
181
|
+
},
|
182
|
+
:thin_storeconfigs => {:default => false, :desc =>
|
183
|
+
"Boolean; whether Puppet should store only facts and exported resources in the storeconfigs
|
184
|
+
database. This will improve the performance of exported resources with the older
|
185
|
+
`active_record` backend, but will disable external tools that search the storeconfigs database.
|
186
|
+
Thinning catalogs is generally unnecessary when using PuppetDB to store catalogs.",
|
187
|
+
:hook => proc do |value|
|
188
|
+
Puppet.settings[:storeconfigs] = true if value
|
189
|
+
end
|
190
|
+
},
|
191
|
+
:config_version => ["", "How to determine the configuration version. By default, it will be the
|
192
|
+
time that the configuration is parsed, but you can provide a shell script to override how the
|
193
|
+
version is determined. The output of this script will be added to every log message in the
|
194
|
+
reports, allowing you to correlate changes on your hosts to the source version on the server."],
|
195
|
+
:zlib => [true,
|
196
|
+
"Boolean; whether to use the zlib library",
|
197
|
+
],
|
198
|
+
:prerun_command => ["", "A command to run before every agent run. If this command returns a non-zero
|
199
|
+
return code, the entire Puppet run will fail."],
|
200
|
+
:postrun_command => ["", "A command to run after every agent run. If this command returns a non-zero
|
201
|
+
return code, the entire Puppet run will be considered to have failed, even though it might have
|
202
|
+
performed work during the normal run."],
|
203
|
+
:freeze_main => [false, "Freezes the 'main' class, disallowing any code to be added to it. This
|
204
|
+
essentially means that you can't have any code outside of a node, class, or definition other
|
205
|
+
than in the site manifest."]
|
206
|
+
)
|
207
|
+
Puppet.setdefaults(:module_tool,
|
208
|
+
:module_repository => ['http://forge.puppetlabs.com', "The module repository"],
|
209
|
+
:module_working_dir => ['$vardir/puppet-module', "The directory into which module tool data is stored"]
|
210
|
+
)
|
211
|
+
|
212
|
+
hostname = Facter["hostname"].value
|
213
|
+
domain = Facter["domain"].value
|
214
|
+
if domain and domain != ""
|
215
|
+
fqdn = [hostname, domain].join(".")
|
216
|
+
else
|
217
|
+
fqdn = hostname
|
218
|
+
end
|
219
|
+
|
220
|
+
|
221
|
+
Puppet.setdefaults(
|
222
|
+
:main,
|
223
|
+
|
224
|
+
# We have to downcase the fqdn, because the current ssl stuff (as oppsed to in master) doesn't have good facilities for
|
225
|
+
# manipulating naming.
|
226
|
+
:certname => {:default => fqdn.downcase, :desc => "The name to use when handling certificates. Defaults
|
227
|
+
to the fully qualified domain name.",
|
228
|
+
:call_on_define => true, # Call our hook with the default value, so we're always downcased
|
229
|
+
:hook => proc { |value| raise(ArgumentError, "Certificate names must be lower case; see #1168") unless value == value.downcase }},
|
230
|
+
:certdnsnames => {
|
231
|
+
:default => '',
|
232
|
+
:hook => proc do |value|
|
233
|
+
unless value.nil? or value == '' then
|
234
|
+
Puppet.warning <<WARN
|
235
|
+
The `certdnsnames` setting is no longer functional,
|
236
|
+
after CVE-2011-3872. We ignore the value completely.
|
237
|
+
|
238
|
+
For your own certificate request you can set `dns_alt_names` in the
|
239
|
+
configuration and it will apply locally. There is no configuration option to
|
240
|
+
set DNS alt names, or any other `subjectAltName` value, for another nodes
|
241
|
+
certificate.
|
242
|
+
|
243
|
+
Alternately you can use the `--dns_alt_names` command line option to set the
|
244
|
+
labels added while generating your own CSR.
|
245
|
+
WARN
|
246
|
+
end
|
247
|
+
end,
|
248
|
+
:desc => <<EOT
|
249
|
+
The `certdnsnames` setting is no longer functional,
|
250
|
+
after CVE-2011-3872. We ignore the value completely.
|
251
|
+
|
252
|
+
For your own certificate request you can set `dns_alt_names` in the
|
253
|
+
configuration and it will apply locally. There is no configuration option to
|
254
|
+
set DNS alt names, or any other `subjectAltName` value, for another nodes
|
255
|
+
certificate.
|
256
|
+
|
257
|
+
Alternately you can use the `--dns_alt_names` command line option to set the
|
258
|
+
labels added while generating your own CSR.
|
259
|
+
EOT
|
260
|
+
},
|
261
|
+
:dns_alt_names => {
|
262
|
+
:default => '',
|
263
|
+
:desc => <<EOT,
|
264
|
+
The comma-separated list of alternative DNS names to use for the local host.
|
265
|
+
|
266
|
+
When the node generates a CSR for itself, these are added to the request
|
267
|
+
as the desired `subjectAltName` in the certificate: additional DNS labels
|
268
|
+
that the certificate is also valid answering as.
|
269
|
+
|
270
|
+
This is generally required if you use a non-hostname `certname`, or if you
|
271
|
+
want to use `puppet kick` or `puppet resource -H` and the primary certname
|
272
|
+
does not match the DNS name you use to communicate with the host.
|
273
|
+
|
274
|
+
This is unnecessary for agents, unless you intend to use them as a server for
|
275
|
+
`puppet kick` or remote `puppet resource` management.
|
276
|
+
|
277
|
+
It is rarely necessary for servers; it is usually helpful only if you need to
|
278
|
+
have a pool of multiple load balanced masters, or for the same master to
|
279
|
+
respond on two physically separate networks under different names.
|
280
|
+
EOT
|
281
|
+
},
|
282
|
+
:certdir => {
|
283
|
+
:default => "$ssldir/certs",
|
284
|
+
:owner => "service",
|
285
|
+
:desc => "The certificate directory."
|
286
|
+
},
|
287
|
+
:ssldir => {
|
288
|
+
:default => "$confdir/ssl",
|
289
|
+
:mode => 0771,
|
290
|
+
:owner => "service",
|
291
|
+
:desc => "Where SSL certificates are kept."
|
292
|
+
},
|
293
|
+
:publickeydir => {
|
294
|
+
:default => "$ssldir/public_keys",
|
295
|
+
:owner => "service",
|
296
|
+
:desc => "The public key directory."
|
297
|
+
},
|
298
|
+
:requestdir => {
|
299
|
+
:default => "$ssldir/certificate_requests",
|
300
|
+
:owner => "service",
|
301
|
+
:desc => "Where host certificate requests are stored."
|
302
|
+
},
|
303
|
+
:privatekeydir => { :default => "$ssldir/private_keys",
|
304
|
+
:mode => 0750,
|
305
|
+
:owner => "service",
|
306
|
+
:desc => "The private key directory."
|
307
|
+
},
|
308
|
+
:privatedir => { :default => "$ssldir/private",
|
309
|
+
:mode => 0750,
|
310
|
+
:owner => "service",
|
311
|
+
:desc => "Where the client stores private certificate information."
|
312
|
+
},
|
313
|
+
:passfile => { :default => "$privatedir/password",
|
314
|
+
:mode => 0640,
|
315
|
+
:owner => "service",
|
316
|
+
:desc => "Where puppet agent stores the password for its private key.
|
317
|
+
Generally unused."
|
318
|
+
},
|
319
|
+
:hostcsr => { :default => "$ssldir/csr_$certname.pem",
|
320
|
+
:mode => 0644,
|
321
|
+
:owner => "service",
|
322
|
+
:desc => "Where individual hosts store and look for their certificate requests."
|
323
|
+
},
|
324
|
+
:hostcert => { :default => "$certdir/$certname.pem",
|
325
|
+
:mode => 0644,
|
326
|
+
:owner => "service",
|
327
|
+
:desc => "Where individual hosts store and look for their certificates."
|
328
|
+
},
|
329
|
+
:hostprivkey => { :default => "$privatekeydir/$certname.pem",
|
330
|
+
:mode => 0600,
|
331
|
+
:owner => "service",
|
332
|
+
:desc => "Where individual hosts store and look for their private key."
|
333
|
+
},
|
334
|
+
:hostpubkey => { :default => "$publickeydir/$certname.pem",
|
335
|
+
:mode => 0644,
|
336
|
+
:owner => "service",
|
337
|
+
:desc => "Where individual hosts store and look for their public key."
|
338
|
+
},
|
339
|
+
:localcacert => { :default => "$certdir/ca.pem",
|
340
|
+
:mode => 0644,
|
341
|
+
:owner => "service",
|
342
|
+
:desc => "Where each client stores the CA certificate."
|
343
|
+
},
|
344
|
+
:hostcrl => { :default => "$ssldir/crl.pem",
|
345
|
+
:mode => 0644,
|
346
|
+
:owner => "service",
|
347
|
+
:desc => "Where the host's certificate revocation list can be found.
|
348
|
+
This is distinct from the certificate authority's CRL."
|
349
|
+
},
|
350
|
+
:certificate_revocation => [true, "Whether certificate revocation should be supported by downloading a Certificate Revocation List (CRL)
|
351
|
+
to all clients. If enabled, CA chaining will almost definitely not work."]
|
352
|
+
)
|
353
|
+
|
354
|
+
setdefaults(
|
355
|
+
:ca,
|
356
|
+
:ca_name => ["Puppet CA: $certname", "The name to use the Certificate Authority certificate."],
|
357
|
+
:cadir => { :default => "$ssldir/ca",
|
358
|
+
:owner => "service",
|
359
|
+
:group => "service",
|
360
|
+
:mode => 0770,
|
361
|
+
:desc => "The root directory for the certificate authority."
|
362
|
+
},
|
363
|
+
:cacert => { :default => "$cadir/ca_crt.pem",
|
364
|
+
:owner => "service",
|
365
|
+
:group => "service",
|
366
|
+
:mode => 0660,
|
367
|
+
:desc => "The CA certificate."
|
368
|
+
},
|
369
|
+
:cakey => { :default => "$cadir/ca_key.pem",
|
370
|
+
:owner => "service",
|
371
|
+
:group => "service",
|
372
|
+
:mode => 0660,
|
373
|
+
:desc => "The CA private key."
|
374
|
+
},
|
375
|
+
:capub => { :default => "$cadir/ca_pub.pem",
|
376
|
+
:owner => "service",
|
377
|
+
:group => "service",
|
378
|
+
:desc => "The CA public key."
|
379
|
+
},
|
380
|
+
:cacrl => { :default => "$cadir/ca_crl.pem",
|
381
|
+
:owner => "service",
|
382
|
+
:group => "service",
|
383
|
+
:mode => 0664,
|
384
|
+
|
385
|
+
:desc => "The certificate revocation list (CRL) for the CA. Will be used if present but otherwise ignored.",
|
386
|
+
:hook => proc do |value|
|
387
|
+
if value == 'false'
|
388
|
+
Puppet.warning "Setting the :cacrl to 'false' is deprecated; Puppet will just ignore the crl if yours is missing"
|
389
|
+
end
|
390
|
+
end
|
391
|
+
},
|
392
|
+
:caprivatedir => { :default => "$cadir/private",
|
393
|
+
:owner => "service",
|
394
|
+
:group => "service",
|
395
|
+
:mode => 0770,
|
396
|
+
:desc => "Where the CA stores private certificate information."
|
397
|
+
},
|
398
|
+
:csrdir => { :default => "$cadir/requests",
|
399
|
+
:owner => "service",
|
400
|
+
:group => "service",
|
401
|
+
:desc => "Where the CA stores certificate requests"
|
402
|
+
},
|
403
|
+
:signeddir => { :default => "$cadir/signed",
|
404
|
+
:owner => "service",
|
405
|
+
:group => "service",
|
406
|
+
:mode => 0770,
|
407
|
+
:desc => "Where the CA stores signed certificates."
|
408
|
+
},
|
409
|
+
:capass => { :default => "$caprivatedir/ca.pass",
|
410
|
+
:owner => "service",
|
411
|
+
:group => "service",
|
412
|
+
:mode => 0660,
|
413
|
+
:desc => "Where the CA stores the password for the private key"
|
414
|
+
},
|
415
|
+
:serial => { :default => "$cadir/serial",
|
416
|
+
:owner => "service",
|
417
|
+
:group => "service",
|
418
|
+
:mode => 0644,
|
419
|
+
:desc => "Where the serial number for certificates is stored."
|
420
|
+
},
|
421
|
+
:autosign => { :default => "$confdir/autosign.conf",
|
422
|
+
:mode => 0644,
|
423
|
+
:desc => "Whether to enable autosign. Valid values are true (which
|
424
|
+
autosigns any key request, and is a very bad idea), false (which
|
425
|
+
never autosigns any key request), and the path to a file, which
|
426
|
+
uses that configuration file to determine which keys to sign."},
|
427
|
+
:allow_duplicate_certs => [false, "Whether to allow a new certificate
|
428
|
+
request to overwrite an existing certificate."],
|
429
|
+
:ca_days => ["", "How long a certificate should be valid, in days.
|
430
|
+
This setting is deprecated; use `ca_ttl` instead"],
|
431
|
+
:ca_ttl => ["5y", "The default TTL for new certificates; valid values
|
432
|
+
must be an integer, optionally followed by one of the units
|
433
|
+
'y' (years of 365 days), 'd' (days), 'h' (hours), or
|
434
|
+
's' (seconds). The unit defaults to seconds. If this setting
|
435
|
+
is set, ca_days is ignored. Examples are '3600' (one hour)
|
436
|
+
and '1825d', which is the same as '5y' (5 years) "],
|
437
|
+
:ca_md => ["md5", "The type of hash used in certificates."],
|
438
|
+
:req_bits => [4096, "The bit length of the certificates."],
|
439
|
+
:keylength => [4096, "The bit length of keys."],
|
440
|
+
:cert_inventory => {
|
441
|
+
:default => "$cadir/inventory.txt",
|
442
|
+
:mode => 0644,
|
443
|
+
:owner => "service",
|
444
|
+
:group => "service",
|
445
|
+
:desc => "A Complete listing of all certificates"
|
446
|
+
}
|
447
|
+
)
|
448
|
+
|
449
|
+
# Define the config default.
|
450
|
+
|
451
|
+
setdefaults(
|
452
|
+
Puppet.settings[:name],
|
453
|
+
:config => ["$confdir/puppet.conf",
|
454
|
+
"The configuration file for #{Puppet[:name]}."],
|
455
|
+
:pidfile => ["$rundir/$name.pid", "The pid file"],
|
456
|
+
:bindaddress => ["", "The address a listening server should bind to. Mongrel servers
|
457
|
+
default to 127.0.0.1 and WEBrick defaults to 0.0.0.0."],
|
458
|
+
:servertype => {:default => "webrick", :desc => "The type of server to use. Currently supported
|
459
|
+
options are webrick and mongrel. If you use mongrel, you will need
|
460
|
+
a proxy in front of the process or processes, since Mongrel cannot
|
461
|
+
speak SSL.",
|
462
|
+
|
463
|
+
:call_on_define => true, # Call our hook with the default value, so we always get the correct bind address set.
|
464
|
+
:hook => proc { |value| value == "webrick" ? Puppet.settings[:bindaddress] = "0.0.0.0" : Puppet.settings[:bindaddress] = "127.0.0.1" if Puppet.settings[:bindaddress] == "" }
|
465
|
+
}
|
466
|
+
)
|
467
|
+
|
468
|
+
setdefaults(:master,
|
469
|
+
:user => ["puppet", "The user puppet master should run as."],
|
470
|
+
:group => ["puppet", "The group puppet master should run as."],
|
471
|
+
:manifestdir => ["$confdir/manifests", "Where puppet master looks for its manifests."],
|
472
|
+
:manifest => ["$manifestdir/site.pp", "The entry-point manifest for puppet master."],
|
473
|
+
:code => ["", "Code to parse directly. This is essentially only used
|
474
|
+
by `puppet`, and should only be set if you're writing your own Puppet
|
475
|
+
executable"],
|
476
|
+
:masterlog => { :default => "$logdir/puppetmaster.log",
|
477
|
+
:owner => "service",
|
478
|
+
:group => "service",
|
479
|
+
:mode => 0660,
|
480
|
+
:desc => "Where puppet master logs. This is generally not used,
|
481
|
+
since syslog is the default log destination."
|
482
|
+
},
|
483
|
+
:masterhttplog => { :default => "$logdir/masterhttp.log",
|
484
|
+
:owner => "service",
|
485
|
+
:group => "service",
|
486
|
+
:mode => 0660,
|
487
|
+
:create => true,
|
488
|
+
:desc => "Where the puppet master web server logs."
|
489
|
+
},
|
490
|
+
:masterport => [8140, "Which port puppet master listens on."],
|
491
|
+
:node_name => ["cert", "How the puppet master determines the client's identity
|
492
|
+
and sets the 'hostname', 'fqdn' and 'domain' facts for use in the manifest,
|
493
|
+
in particular for determining which 'node' statement applies to the client.
|
494
|
+
Possible values are 'cert' (use the subject's CN in the client's
|
495
|
+
certificate) and 'facter' (use the hostname that the client
|
496
|
+
reported in its facts)"],
|
497
|
+
:bucketdir => {
|
498
|
+
:default => "$vardir/bucket",
|
499
|
+
:mode => 0750,
|
500
|
+
:owner => "service",
|
501
|
+
:group => "service",
|
502
|
+
:desc => "Where FileBucket files are stored."
|
503
|
+
},
|
504
|
+
:rest_authconfig => [ "$confdir/auth.conf",
|
505
|
+
"The configuration file that defines the rights to the different
|
506
|
+
rest indirections. This can be used as a fine-grained
|
507
|
+
authorization system for `puppet master`."
|
508
|
+
],
|
509
|
+
:ca => [true, "Whether the master should function as a certificate authority."],
|
510
|
+
:modulepath => {
|
511
|
+
:default => "$confdir/modules#{File::PATH_SEPARATOR}/usr/share/puppet/modules",
|
512
|
+
:desc => "The search path for modules, as a list of directories separated by the system path separator character. (The POSIX path separator is ':', and the Windows path separator is ';'.)",
|
513
|
+
:type => :setting # We don't want this to be considered a file, since it's multiple files.
|
514
|
+
},
|
515
|
+
:ssl_client_header => ["HTTP_X_CLIENT_DN", "The header containing an authenticated
|
516
|
+
client's SSL DN. Only used with Mongrel. This header must be set by the proxy
|
517
|
+
to the authenticated client's SSL DN (e.g., `/CN=puppet.puppetlabs.com`).
|
518
|
+
See http://projects.puppetlabs.com/projects/puppet/wiki/Using_Mongrel for more information."],
|
519
|
+
:ssl_client_verify_header => ["HTTP_X_CLIENT_VERIFY", "The header containing the status
|
520
|
+
message of the client verification. Only used with Mongrel. This header must be set by the proxy
|
521
|
+
to 'SUCCESS' if the client successfully authenticated, and anything else otherwise.
|
522
|
+
See http://projects.puppetlabs.com/projects/puppet/wiki/Using_Mongrel for more information."],
|
523
|
+
# To make sure this directory is created before we try to use it on the server, we need
|
524
|
+
# it to be in the server section (#1138).
|
525
|
+
:yamldir => {:default => "$vardir/yaml", :owner => "service", :group => "service", :mode => "750",
|
526
|
+
:desc => "The directory in which YAML data is stored, usually in a subdirectory."},
|
527
|
+
:server_datadir => {:default => "$vardir/server_data", :owner => "service", :group => "service", :mode => "750",
|
528
|
+
:desc => "The directory in which serialized data is stored, usually in a subdirectory."},
|
529
|
+
:reports => ["store",
|
530
|
+
"The list of reports to generate. All reports are looked for
|
531
|
+
in `puppet/reports/name.rb`, and multiple report names should be
|
532
|
+
comma-separated (whitespace is okay)."
|
533
|
+
],
|
534
|
+
:reportdir => {:default => "$vardir/reports",
|
535
|
+
:mode => 0750,
|
536
|
+
:owner => "service",
|
537
|
+
:group => "service",
|
538
|
+
:desc => "The directory in which to store reports
|
539
|
+
received from the client. Each client gets a separate
|
540
|
+
subdirectory."},
|
541
|
+
:reporturl => ["http://localhost:3000/reports/upload",
|
542
|
+
"The URL used by the http reports processor to send reports"],
|
543
|
+
:fileserverconfig => ["$confdir/fileserver.conf", "Where the fileserver configuration is stored."],
|
544
|
+
:strict_hostname_checking => [false, "Whether to only search for the complete
|
545
|
+
hostname as it is in the certificate when searching for node information
|
546
|
+
in the catalogs."]
|
547
|
+
)
|
548
|
+
|
549
|
+
setdefaults(:metrics,
|
550
|
+
:rrddir => {:default => "$vardir/rrd",
|
551
|
+
:mode => 0750,
|
552
|
+
:owner => "service",
|
553
|
+
:group => "service",
|
554
|
+
:desc => "The directory where RRD database files are stored.
|
555
|
+
Directories for each reporting host will be created under
|
556
|
+
this directory."
|
557
|
+
},
|
558
|
+
:rrdinterval => ["$runinterval", "How often RRD should expect data.
|
559
|
+
This should match how often the hosts report back to the server."]
|
560
|
+
)
|
561
|
+
|
562
|
+
setdefaults(:device,
|
563
|
+
:devicedir => {:default => "$vardir/devices", :mode => "750", :desc => "The root directory of devices' $vardir"},
|
564
|
+
:deviceconfig => ["$confdir/device.conf","Path to the device config file for puppet device"]
|
565
|
+
)
|
566
|
+
|
567
|
+
setdefaults(:agent,
|
568
|
+
:node_name_value => { :default => "$certname",
|
569
|
+
:desc => "The explicit value used for the node name for all requests the agent
|
570
|
+
makes to the master. WARNING: This setting is mutually exclusive with
|
571
|
+
node_name_fact. Changing this setting also requires changes to the default
|
572
|
+
auth.conf configuration on the Puppet Master. Please see
|
573
|
+
http://links.puppetlabs.com/node_name_value for more information."
|
574
|
+
},
|
575
|
+
:node_name_fact => { :default => "",
|
576
|
+
:desc => "The fact name used to determine the node name used for all requests the agent
|
577
|
+
makes to the master. WARNING: This setting is mutually exclusive with
|
578
|
+
node_name_value. Changing this setting also requires changes to the default
|
579
|
+
auth.conf configuration on the Puppet Master. Please see
|
580
|
+
http://links.puppetlabs.com/node_name_fact for more information.",
|
581
|
+
:hook => proc do |value|
|
582
|
+
if !value.empty? and Puppet[:node_name_value] != Puppet[:certname]
|
583
|
+
raise "Cannot specify both the node_name_value and node_name_fact settings"
|
584
|
+
end
|
585
|
+
end
|
586
|
+
},
|
587
|
+
:localconfig => { :default => "$statedir/localconfig",
|
588
|
+
:owner => "root",
|
589
|
+
:mode => 0660,
|
590
|
+
:desc => "Where puppet agent caches the local configuration. An
|
591
|
+
extension indicating the cache format is added automatically."},
|
592
|
+
:statefile => { :default => "$statedir/state.yaml",
|
593
|
+
:mode => 0660,
|
594
|
+
:desc => "Where puppet agent and puppet master store state associated
|
595
|
+
with the running configuration. In the case of puppet master,
|
596
|
+
this file reflects the state discovered through interacting
|
597
|
+
with clients."
|
598
|
+
},
|
599
|
+
:clientyamldir => {:default => "$vardir/client_yaml", :mode => "750", :desc => "The directory in which client-side YAML data is stored."},
|
600
|
+
:client_datadir => {:default => "$vardir/client_data", :mode => "750", :desc => "The directory in which serialized data is stored on the client."},
|
601
|
+
:classfile => { :default => "$statedir/classes.txt",
|
602
|
+
:owner => "root",
|
603
|
+
:mode => 0640,
|
604
|
+
:desc => "The file in which puppet agent stores a list of the classes
|
605
|
+
associated with the retrieved configuration. Can be loaded in
|
606
|
+
the separate `puppet` executable using the `--loadclasses`
|
607
|
+
option."},
|
608
|
+
:resourcefile => { :default => "$statedir/resources.txt",
|
609
|
+
:owner => "root",
|
610
|
+
:mode => 0640,
|
611
|
+
:desc => "The file in which puppet agent stores a list of the resources
|
612
|
+
associated with the retrieved configuration." },
|
613
|
+
:puppetdlog => { :default => "$logdir/puppetd.log",
|
614
|
+
:owner => "root",
|
615
|
+
:mode => 0640,
|
616
|
+
:desc => "The log file for puppet agent. This is generally not used."
|
617
|
+
},
|
618
|
+
:server => ["puppet", "The server to which server puppet agent should connect"],
|
619
|
+
:ignoreschedules => [false,
|
620
|
+
"Boolean; whether puppet agent should ignore schedules. This is useful
|
621
|
+
for initial puppet agent runs."],
|
622
|
+
:puppetport => [8139, "Which port puppet agent listens on."],
|
623
|
+
:noop => [false, "Whether puppet agent should be run in noop mode."],
|
624
|
+
:runinterval => [1800, # 30 minutes
|
625
|
+
"How often puppet agent applies the client configuration; in seconds.
|
626
|
+
Note that a runinterval of 0 means \"run continuously\" rather than
|
627
|
+
\"never run.\" If you want puppet agent to never run, you should start
|
628
|
+
it with the `--no-client` option."],
|
629
|
+
:listen => [false, "Whether puppet agent should listen for
|
630
|
+
connections. If this is true, then puppet agent will accept incoming
|
631
|
+
REST API requests, subject to the default ACLs and the ACLs set in
|
632
|
+
the `rest_authconfig` file. Puppet agent can respond usefully to
|
633
|
+
requests on the `run`, `facts`, `certificate`, and `resource` endpoints."],
|
634
|
+
:ca_server => ["$server", "The server to use for certificate
|
635
|
+
authority requests. It's a separate server because it cannot
|
636
|
+
and does not need to horizontally scale."],
|
637
|
+
:ca_port => ["$masterport", "The port to use for the certificate authority."],
|
638
|
+
:catalog_format => {
|
639
|
+
:default => "",
|
640
|
+
:desc => "(Deprecated for 'preferred_serialization_format') What format to
|
641
|
+
use to dump the catalog. Only supports 'marshal' and 'yaml'. Only
|
642
|
+
matters on the client, since it asks the server for a specific format.",
|
643
|
+
:hook => proc { |value|
|
644
|
+
if value
|
645
|
+
Puppet.warning "Setting 'catalog_format' is deprecated; use 'preferred_serialization_format' instead."
|
646
|
+
Puppet.settings[:preferred_serialization_format] = value
|
647
|
+
end
|
648
|
+
}
|
649
|
+
},
|
650
|
+
:preferred_serialization_format => ["pson", "The preferred means of serializing
|
651
|
+
ruby instances for passing over the wire. This won't guarantee that all
|
652
|
+
instances will be serialized using this method, since not all classes
|
653
|
+
can be guaranteed to support this format, but it will be used for all
|
654
|
+
classes that support it."],
|
655
|
+
:puppetdlockfile => { :default => "$statedir/puppetdlock",
|
656
|
+
:type => :setting, # (#2888) Ensure this file is not added to the settings catalog.
|
657
|
+
:desc => "A lock file to temporarily stop puppet agent from doing anything.",
|
658
|
+
},
|
659
|
+
:usecacheonfailure => [true,
|
660
|
+
"Whether to use the cached configuration when the remote
|
661
|
+
configuration will not compile. This option is useful for testing
|
662
|
+
new configurations, where you want to fix the broken configuration
|
663
|
+
rather than reverting to a known-good one."
|
664
|
+
],
|
665
|
+
:use_cached_catalog => [false,
|
666
|
+
"Whether to only use the cached catalog rather than compiling a new catalog
|
667
|
+
on every run. Puppet can be run with this enabled by default and then selectively
|
668
|
+
disabled when a recompile is desired."],
|
669
|
+
:ignorecache => [false,
|
670
|
+
"Ignore cache and always recompile the configuration. This is
|
671
|
+
useful for testing new configurations, where the local cache may in
|
672
|
+
fact be stale even if the timestamps are up to date - if the facts
|
673
|
+
change or if the server changes."
|
674
|
+
],
|
675
|
+
:downcasefacts => [false, "Whether facts should be made all lowercase when sent to the server."],
|
676
|
+
:dynamicfacts => ["memorysize,memoryfree,swapsize,swapfree",
|
677
|
+
"Facts that are dynamic; these facts will be ignored when deciding whether
|
678
|
+
changed facts should result in a recompile. Multiple facts should be
|
679
|
+
comma-separated."],
|
680
|
+
:splaylimit => ["$runinterval",
|
681
|
+
"The maximum time to delay before runs. Defaults to being the same as the
|
682
|
+
run interval."],
|
683
|
+
:splay => [false,
|
684
|
+
"Whether to sleep for a pseudo-random (but consistent) amount of time before
|
685
|
+
a run."],
|
686
|
+
:clientbucketdir => {
|
687
|
+
:default => "$vardir/clientbucket",
|
688
|
+
:mode => 0750,
|
689
|
+
:desc => "Where FileBucket files are stored locally."
|
690
|
+
},
|
691
|
+
:configtimeout => [120,
|
692
|
+
"How long the client should wait for the configuration to be retrieved
|
693
|
+
before considering it a failure. This can help reduce flapping if too
|
694
|
+
many clients contact the server at one time."
|
695
|
+
],
|
696
|
+
:reportserver => {
|
697
|
+
:default => "$server",
|
698
|
+
:call_on_define => false,
|
699
|
+
:desc => "(Deprecated for 'report_server') The server to which to send transaction reports.",
|
700
|
+
:hook => proc do |value|
|
701
|
+
Puppet.settings[:report_server] = value if value
|
702
|
+
end
|
703
|
+
},
|
704
|
+
:report_server => ["$server",
|
705
|
+
"The server to send transaction reports to."
|
706
|
+
],
|
707
|
+
:report_port => ["$masterport",
|
708
|
+
"The port to communicate with the report_server."
|
709
|
+
],
|
710
|
+
:inventory_server => ["$server",
|
711
|
+
"The server to send facts to."
|
712
|
+
],
|
713
|
+
:inventory_port => ["$masterport",
|
714
|
+
"The port to communicate with the inventory_server."
|
715
|
+
],
|
716
|
+
:report => [true,
|
717
|
+
"Whether to send reports after every transaction."
|
718
|
+
],
|
719
|
+
:lastrunfile => { :default => "$statedir/last_run_summary.yaml",
|
720
|
+
:mode => 0644,
|
721
|
+
:desc => "Where puppet agent stores the last run report summary in yaml format."
|
722
|
+
},
|
723
|
+
:lastrunreport => { :default => "$statedir/last_run_report.yaml",
|
724
|
+
:mode => 0640,
|
725
|
+
:desc => "Where puppet agent stores the last run report in yaml format."
|
726
|
+
},
|
727
|
+
:graph => [false, "Whether to create dot graph files for the different
|
728
|
+
configuration graphs. These dot files can be interpreted by tools
|
729
|
+
like OmniGraffle or dot (which is part of ImageMagick)."],
|
730
|
+
:graphdir => ["$statedir/graphs", "Where to store dot-outputted graphs."],
|
731
|
+
:http_compression => [false, "Allow http compression in REST communication with the master.
|
732
|
+
This setting might improve performance for agent -> master communications over slow WANs.
|
733
|
+
Your puppet master needs to support compression (usually by activating some settings in a reverse-proxy
|
734
|
+
in front of the puppet master, which rules out webrick).
|
735
|
+
It is harmless to activate this settings if your master doesn't support
|
736
|
+
compression, but if it supports it, this setting might reduce performance on high-speed LANs."]
|
737
|
+
)
|
738
|
+
|
739
|
+
setdefaults(:inspect,
|
740
|
+
:archive_files => [false, "During an inspect run, whether to archive files whose contents are audited to a file bucket."],
|
741
|
+
:archive_file_server => ["$server", "During an inspect run, the file bucket server to archive files to if archive_files is set."]
|
742
|
+
)
|
743
|
+
|
744
|
+
# Plugin information.
|
745
|
+
|
746
|
+
setdefaults(
|
747
|
+
:main,
|
748
|
+
:plugindest => ["$libdir",
|
749
|
+
"Where Puppet should store plugins that it pulls down from the central
|
750
|
+
server."],
|
751
|
+
:pluginsource => ["puppet://$server/plugins",
|
752
|
+
"From where to retrieve plugins. The standard Puppet `file` type
|
753
|
+
is used for retrieval, so anything that is a valid file source can
|
754
|
+
be used here."],
|
755
|
+
:pluginsync => [false, "Whether plugins should be synced with the central server."],
|
756
|
+
|
757
|
+
:pluginsignore => [".svn CVS .git", "What files to ignore when pulling down plugins."]
|
758
|
+
)
|
759
|
+
|
760
|
+
# Central fact information.
|
761
|
+
|
762
|
+
setdefaults(
|
763
|
+
:main,
|
764
|
+
:factpath => {:default => "$vardir/lib/facter#{File::PATH_SEPARATOR}$vardir/facts",
|
765
|
+
:desc => "Where Puppet should look for facts. Multiple directories should
|
766
|
+
be separated by the system path separator character. (The POSIX path separator is ':', and the Windows path separator is ';'.)",
|
767
|
+
|
768
|
+
:call_on_define => true, # Call our hook with the default value, so we always get the value added to facter.
|
769
|
+
:type => :setting, # Don't consider it a file, because it could be multiple colon-separated files
|
770
|
+
:hook => proc { |value| Facter.search(value) if Facter.respond_to?(:search) }},
|
771
|
+
:factdest => ["$vardir/facts/",
|
772
|
+
"Where Puppet should store facts that it pulls down from the central
|
773
|
+
server."],
|
774
|
+
:factsource => ["puppet://$server/facts/",
|
775
|
+
"From where to retrieve facts. The standard Puppet `file` type
|
776
|
+
is used for retrieval, so anything that is a valid file source can
|
777
|
+
be used here."],
|
778
|
+
:factsync => [false, "Whether facts should be synced with the central server."],
|
779
|
+
:factsignore => [".svn CVS", "What files to ignore when pulling down facts."]
|
780
|
+
)
|
781
|
+
|
782
|
+
|
783
|
+
setdefaults(
|
784
|
+
:tagmail,
|
785
|
+
:tagmap => ["$confdir/tagmail.conf", "The mapping between reporting tags and email addresses."],
|
786
|
+
:sendmail => [which('sendmail') || '', "Where to find the sendmail binary with which to send email."],
|
787
|
+
|
788
|
+
:reportfrom => ["report@" + [Facter["hostname"].value, Facter["domain"].value].join("."), "The 'from' email address for the reports."],
|
789
|
+
:smtpserver => ["none", "The server through which to send email reports."]
|
790
|
+
)
|
791
|
+
|
792
|
+
setdefaults(
|
793
|
+
:rails,
|
794
|
+
:dblocation => { :default => "$statedir/clientconfigs.sqlite3",
|
795
|
+
:mode => 0660,
|
796
|
+
:owner => "service",
|
797
|
+
:group => "service",
|
798
|
+
:desc => "The database cache for client configurations. Used for
|
799
|
+
querying within the language."
|
800
|
+
},
|
801
|
+
:dbadapter => [ "sqlite3", "The type of database to use." ],
|
802
|
+
:dbmigrate => [ false, "Whether to automatically migrate the database." ],
|
803
|
+
:dbname => [ "puppet", "The name of the database to use." ],
|
804
|
+
:dbserver => [ "localhost", "The database server for caching. Only
|
805
|
+
used when networked databases are used."],
|
806
|
+
:dbport => [ "", "The database password for caching. Only
|
807
|
+
used when networked databases are used."],
|
808
|
+
:dbuser => [ "puppet", "The database user for caching. Only
|
809
|
+
used when networked databases are used."],
|
810
|
+
:dbpassword => [ "puppet", "The database password for caching. Only
|
811
|
+
used when networked databases are used."],
|
812
|
+
:dbconnections => [ '', "The number of database connections for networked
|
813
|
+
databases. Will be ignored unless the value is a positive integer."],
|
814
|
+
:dbsocket => [ "", "The database socket location. Only used when networked
|
815
|
+
databases are used. Will be ignored if the value is an empty string."],
|
816
|
+
:railslog => {:default => "$logdir/rails.log",
|
817
|
+
:mode => 0600,
|
818
|
+
:owner => "service",
|
819
|
+
:group => "service",
|
820
|
+
:desc => "Where Rails-specific logs are sent"
|
821
|
+
},
|
822
|
+
|
823
|
+
:rails_loglevel => ["info", "The log level for Rails connections. The value must be
|
824
|
+
a valid log level within Rails. Production environments normally use `info`
|
825
|
+
and other environments normally use `debug`."]
|
826
|
+
)
|
827
|
+
|
828
|
+
setdefaults(
|
829
|
+
:couchdb,
|
830
|
+
|
831
|
+
:couchdb_url => ["http://127.0.0.1:5984/puppet", "The url where the puppet couchdb database will be created"]
|
832
|
+
)
|
833
|
+
|
834
|
+
setdefaults(
|
835
|
+
:transaction,
|
836
|
+
:tags => ["", "Tags to use to find resources. If this is set, then
|
837
|
+
only resources tagged with the specified tags will be applied.
|
838
|
+
Values must be comma-separated."],
|
839
|
+
:evaltrace => [false, "Whether each resource should log when it is
|
840
|
+
being evaluated. This allows you to interactively see exactly
|
841
|
+
what is being done."],
|
842
|
+
:summarize => [false,
|
843
|
+
|
844
|
+
"Whether to print a transaction summary."
|
845
|
+
]
|
846
|
+
)
|
847
|
+
|
848
|
+
setdefaults(
|
849
|
+
:main,
|
850
|
+
:external_nodes => ["none",
|
851
|
+
|
852
|
+
"An external command that can produce node information. The command's output
|
853
|
+
must be a YAML dump of a hash, and that hash must have a `classes` key and/or
|
854
|
+
a `parameters` key, where `classes` is an array or hash and
|
855
|
+
`parameters` is a hash. For unknown nodes, the command should
|
856
|
+
exit with a non-zero exit code.
|
857
|
+
|
858
|
+
This command makes it straightforward to store your node mapping
|
859
|
+
information in other data sources like databases."])
|
860
|
+
|
861
|
+
setdefaults(
|
862
|
+
:ldap,
|
863
|
+
:ldapnodes => [false,
|
864
|
+
"Whether to search for node configurations in LDAP. See
|
865
|
+
http://projects.puppetlabs.com/projects/puppet/wiki/LDAP_Nodes for more information."],
|
866
|
+
:ldapssl => [false,
|
867
|
+
"Whether SSL should be used when searching for nodes.
|
868
|
+
Defaults to false because SSL usually requires certificates
|
869
|
+
to be set up on the client side."],
|
870
|
+
:ldaptls => [false,
|
871
|
+
"Whether TLS should be used when searching for nodes.
|
872
|
+
Defaults to false because TLS usually requires certificates
|
873
|
+
to be set up on the client side."],
|
874
|
+
:ldapserver => ["ldap",
|
875
|
+
"The LDAP server. Only used if `ldapnodes` is enabled."],
|
876
|
+
:ldapport => [389,
|
877
|
+
"The LDAP port. Only used if `ldapnodes` is enabled."],
|
878
|
+
|
879
|
+
:ldapstring => ["(&(objectclass=puppetClient)(cn=%s))",
|
880
|
+
"The search string used to find an LDAP node."],
|
881
|
+
:ldapclassattrs => ["puppetclass",
|
882
|
+
"The LDAP attributes to use to define Puppet classes. Values
|
883
|
+
should be comma-separated."],
|
884
|
+
:ldapstackedattrs => ["puppetvar",
|
885
|
+
"The LDAP attributes that should be stacked to arrays by adding
|
886
|
+
the values in all hierarchy elements of the tree. Values
|
887
|
+
should be comma-separated."],
|
888
|
+
:ldapattrs => ["all",
|
889
|
+
"The LDAP attributes to include when querying LDAP for nodes. All
|
890
|
+
returned attributes are set as variables in the top-level scope.
|
891
|
+
Multiple values should be comma-separated. The value 'all' returns
|
892
|
+
all attributes."],
|
893
|
+
:ldapparentattr => ["parentnode",
|
894
|
+
"The attribute to use to define the parent node."],
|
895
|
+
:ldapuser => ["",
|
896
|
+
"The user to use to connect to LDAP. Must be specified as a
|
897
|
+
full DN."],
|
898
|
+
:ldappassword => ["", "The password to use to connect to LDAP."],
|
899
|
+
:ldapbase => ["",
|
900
|
+
"The search base for LDAP searches. It's impossible to provide
|
901
|
+
a meaningful default here, although the LDAP libraries might
|
902
|
+
have one already set. Generally, it should be the 'ou=Hosts'
|
903
|
+
branch under your main directory."]
|
904
|
+
)
|
905
|
+
|
906
|
+
setdefaults(:master,
|
907
|
+
:storeconfigs => {
|
908
|
+
:default => false,
|
909
|
+
:desc => "Whether to store each client's configuration, including catalogs, facts,
|
910
|
+
and related data. This also enables the import and export of resources in
|
911
|
+
the Puppet language - a mechanism for exchange resources between nodes.
|
912
|
+
|
913
|
+
By default this uses ActiveRecord and an SQL database to store and query
|
914
|
+
the data; this, in turn, will depend on Rails being available.
|
915
|
+
|
916
|
+
You can adjust the backend using the storeconfigs_backend setting.",
|
917
|
+
# Call our hook with the default value, so we always get the libdir set.
|
918
|
+
:call_on_define => true,
|
919
|
+
:hook => proc do |value|
|
920
|
+
require 'puppet/node'
|
921
|
+
require 'puppet/node/facts'
|
922
|
+
if value
|
923
|
+
Puppet.settings[:async_storeconfigs] or
|
924
|
+
Puppet::Resource::Catalog.indirection.cache_class = :store_configs
|
925
|
+
Puppet::Node::Facts.indirection.cache_class = :store_configs
|
926
|
+
Puppet::Node.indirection.cache_class = :store_configs
|
927
|
+
|
928
|
+
Puppet::Resource.indirection.terminus_class = :store_configs
|
929
|
+
end
|
930
|
+
end
|
931
|
+
},
|
932
|
+
:storeconfigs_backend => {
|
933
|
+
:default => "active_record",
|
934
|
+
:desc => "Configure the backend terminus used for StoreConfigs.
|
935
|
+
By default, this uses the ActiveRecord store, which directly talks to the
|
936
|
+
database from within the Puppet Master process."
|
937
|
+
}
|
938
|
+
)
|
939
|
+
|
940
|
+
# This doesn't actually work right now.
|
941
|
+
|
942
|
+
setdefaults(
|
943
|
+
:parser,
|
944
|
+
|
945
|
+
:lexical => [false, "Whether to use lexical scoping (vs. dynamic)."],
|
946
|
+
:templatedir => ["$vardir/templates",
|
947
|
+
"Where Puppet looks for template files. Can be a list of colon-separated
|
948
|
+
directories."
|
949
|
+
],
|
950
|
+
|
951
|
+
:allow_variables_with_dashes => {
|
952
|
+
:default => false,
|
953
|
+
:desc => <<-'EOT'
|
954
|
+
Permit hyphens (`-`) in variable names and issue deprecation warnings about
|
955
|
+
them. This setting **should always be `false`;** setting it to `true`
|
956
|
+
will cause subtle and wide-ranging bugs. It will be removed in a future version.
|
957
|
+
|
958
|
+
Hyphenated variables caused major problems in the language, but were allowed
|
959
|
+
between Puppet 2.7.3 and 2.7.14. If you used them during this window, we
|
960
|
+
apologize for the inconvenience --- you can temporarily set this to `true`
|
961
|
+
in order to upgrade, and can rename your variables at your leisure. Please
|
962
|
+
revert it to `false` after you have renamed all affected variables.
|
963
|
+
EOT
|
964
|
+
}
|
965
|
+
)
|
966
|
+
setdefaults(
|
967
|
+
:puppetdoc,
|
968
|
+
:document_all => [false, "Document all resources"]
|
969
|
+
)
|
970
|
+
end
|