puppet 2.7.26 → 3.0.0.rc4
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of puppet might be problematic. Click here for more details.
- data/CHANGELOG +533 -204
- data/Gemfile +8 -24
- data/Gemfile.lock +44 -0
- data/LICENSE +1 -1
- data/README.md +2 -2
- data/README_DEVELOPER.md +18 -210
- data/Rakefile +30 -47
- data/bin/puppet +5 -3
- data/conf/auth.conf +3 -3
- data/{ext → conf}/osx/PackageInfo.plist +0 -0
- data/{ext → conf}/osx/createpackage.sh +0 -0
- data/conf/osx/preflight +24 -0
- data/conf/redhat/client.init +8 -8
- data/{ext/redhat/puppet.spec.erb → conf/redhat/puppet.spec} +29 -46
- data/conf/redhat/queue.init +105 -0
- data/conf/redhat/rundir-perms.patch +13 -13
- data/conf/redhat/server.init +4 -4
- data/conf/solaris/pkginfo +1 -1
- data/conf/suse/puppet.spec +8 -3
- data/conf/windows/eventlog/puppetres.dll +0 -0
- data/ext/emacs/puppet-mode.el +204 -150
- data/ext/nagios/naggen +1 -1
- data/ext/puppet-test +1 -1
- data/ext/puppetlisten/puppetlisten.rb +1 -2
- data/ext/puppetlisten/puppetrun.rb +1 -2
- data/ext/rack/files/config.ru +21 -3
- data/ext/regexp_nodes/environment/development +2 -0
- data/ext/regexp_nodes/parameters/{environment → service}/prod +0 -0
- data/ext/regexp_nodes/parameters/{environment → service}/qa +0 -0
- data/ext/regexp_nodes/parameters/service/sandbox +1 -0
- data/ext/regexp_nodes/regexp_nodes.rb +115 -59
- data/ext/upload_facts.rb +0 -1
- data/install.rb +10 -10
- data/lib/puppet.rb +49 -24
- data/lib/puppet/agent.rb +40 -16
- data/lib/puppet/agent/disabler.rb +53 -0
- data/lib/puppet/agent/locker.rb +18 -24
- data/lib/puppet/application.rb +93 -72
- data/lib/puppet/application/agent.rb +29 -47
- data/lib/puppet/application/apply.rb +40 -39
- data/lib/puppet/application/cert.rb +9 -11
- data/lib/puppet/application/certificate.rb +7 -2
- data/lib/puppet/application/certificate_request.rb +3 -0
- data/lib/puppet/application/certificate_revocation_list.rb +3 -0
- data/lib/puppet/application/describe.rb +1 -3
- data/lib/puppet/application/device.rb +15 -16
- data/lib/puppet/application/doc.rb +12 -11
- data/lib/puppet/application/face_base.rb +9 -13
- data/lib/puppet/application/filebucket.rb +2 -8
- data/lib/puppet/application/inspect.rb +3 -6
- data/lib/puppet/application/instrumentation_data.rb +3 -0
- data/lib/puppet/application/instrumentation_listener.rb +3 -0
- data/lib/puppet/application/instrumentation_probe.rb +3 -0
- data/lib/puppet/application/kick.rb +2 -8
- data/lib/puppet/application/master.rb +9 -15
- data/lib/puppet/application/module.rb +0 -7
- data/lib/puppet/application/queue.rb +7 -6
- data/lib/puppet/application/resource.rb +1 -5
- data/lib/puppet/application/resource_type.rb +3 -0
- data/lib/puppet/application/secret_agent.rb +3 -0
- data/lib/puppet/configurer.rb +87 -88
- data/lib/puppet/configurer/downloader.rb +8 -23
- data/lib/puppet/configurer/fact_handler.rb +5 -17
- data/lib/puppet/configurer/plugin_handler.rb +4 -23
- data/lib/puppet/daemon.rb +24 -6
- data/lib/puppet/data_binding.rb +11 -0
- data/lib/puppet/defaults.rb +1058 -518
- data/lib/puppet/error.rb +31 -25
- data/lib/puppet/external/dot.rb +1 -1
- data/lib/puppet/external/nagios/base.rb +8 -4
- data/lib/puppet/face/ca.rb +1 -1
- data/lib/puppet/face/catalog.rb +1 -2
- data/lib/puppet/face/certificate.rb +12 -0
- data/lib/puppet/face/config.rb +3 -0
- data/lib/puppet/face/help.rb +92 -28
- data/lib/puppet/face/help/action.erb +36 -3
- data/lib/puppet/face/help/face.erb +35 -3
- data/lib/puppet/face/help/global.erb +8 -12
- data/lib/puppet/face/help/man.erb +20 -2
- data/lib/puppet/face/instrumentation_data.rb +1 -0
- data/lib/puppet/face/instrumentation_listener.rb +1 -0
- data/lib/puppet/face/instrumentation_probe.rb +1 -0
- data/lib/puppet/face/module.rb +2 -0
- data/lib/puppet/face/module/build.rb +32 -6
- data/lib/puppet/face/module/changes.rb +1 -0
- data/lib/puppet/face/module/generate.rb +1 -0
- data/lib/puppet/face/module/install.rb +10 -41
- data/lib/puppet/face/module/list.rb +2 -19
- data/lib/puppet/face/module/search.rb +12 -6
- data/lib/puppet/face/module/uninstall.rb +3 -18
- data/lib/puppet/face/module/upgrade.rb +2 -9
- data/lib/puppet/face/node/clean.rb +25 -27
- data/lib/puppet/face/report.rb +2 -4
- data/lib/puppet/face/resource.rb +1 -1
- data/lib/puppet/feature/base.rb +9 -3
- data/lib/puppet/feature/rails.rb +18 -0
- data/lib/puppet/feature/rdoc1.rb +16 -0
- data/lib/puppet/file_bucket/dipper.rb +3 -2
- data/lib/puppet/file_serving/base.rb +4 -8
- data/lib/puppet/file_serving/configuration.rb +1 -12
- data/lib/puppet/file_serving/configuration/parser.rb +1 -1
- data/lib/puppet/file_serving/metadata.rb +0 -14
- data/lib/puppet/file_serving/mount/plugins.rb +10 -1
- data/lib/puppet/file_serving/terminus_selector.rb +15 -13
- data/lib/puppet/forge.rb +29 -13
- data/lib/puppet/forge/cache.rb +1 -1
- data/lib/puppet/forge/errors.rb +69 -0
- data/lib/puppet/forge/repository.rb +84 -21
- data/lib/puppet/indirector/catalog/active_record.rb +2 -12
- data/lib/puppet/indirector/catalog/compiler.rb +8 -18
- data/lib/puppet/indirector/catalog/json.rb +6 -0
- data/lib/puppet/indirector/catalog/static_compiler.rb +3 -2
- data/lib/puppet/indirector/certificate/rest.rb +1 -0
- data/lib/puppet/indirector/certificate_status/file.rb +0 -5
- data/lib/puppet/indirector/data_binding/hiera.rb +6 -0
- data/lib/puppet/indirector/data_binding/none.rb +5 -0
- data/lib/puppet/indirector/exec.rb +8 -18
- data/lib/puppet/indirector/face.rb +5 -4
- data/lib/puppet/indirector/facts/facter.rb +6 -33
- data/lib/puppet/indirector/facts/network_device.rb +0 -1
- data/lib/puppet/indirector/file_bucket_file/file.rb +0 -4
- data/lib/puppet/indirector/file_bucket_file/selector.rb +0 -4
- data/lib/puppet/indirector/file_content/rest.rb +2 -0
- data/lib/puppet/indirector/hiera.rb +69 -0
- data/lib/puppet/indirector/indirection.rb +20 -26
- data/lib/puppet/indirector/json.rb +76 -0
- data/lib/puppet/indirector/ldap.rb +3 -2
- data/lib/puppet/indirector/node/active_record.rb +1 -0
- data/lib/puppet/indirector/node/exec.rb +9 -0
- data/lib/puppet/indirector/node/ldap.rb +6 -3
- data/lib/puppet/indirector/node/plain.rb +1 -0
- data/lib/puppet/indirector/none.rb +9 -0
- data/lib/puppet/indirector/queue.rb +1 -2
- data/lib/puppet/indirector/report/processor.rb +2 -3
- data/lib/puppet/indirector/report/rest.rb +1 -7
- data/lib/puppet/indirector/request.rb +80 -18
- data/lib/puppet/indirector/resource/active_record.rb +0 -3
- data/lib/puppet/indirector/resource/ral.rb +0 -4
- data/lib/puppet/indirector/resource/rest.rb +0 -9
- data/lib/puppet/indirector/resource/store_configs.rb +0 -3
- data/lib/puppet/indirector/resource_type/parser.rb +30 -1
- data/lib/puppet/indirector/rest.rb +103 -126
- data/lib/puppet/indirector/run/local.rb +0 -4
- data/lib/puppet/indirector/run/rest.rb +0 -6
- data/lib/puppet/indirector/terminus.rb +0 -20
- data/lib/puppet/indirector/yaml.rb +11 -5
- data/lib/puppet/interface.rb +6 -14
- data/lib/puppet/interface/action.rb +21 -3
- data/lib/puppet/interface/action_builder.rb +5 -0
- data/lib/puppet/interface/action_manager.rb +1 -1
- data/lib/puppet/interface/documentation.rb +12 -0
- data/lib/puppet/interface/face_collection.rb +1 -1
- data/lib/puppet/interface/option.rb +19 -3
- data/lib/puppet/interface/option_manager.rb +27 -9
- data/lib/puppet/metatype/manager.rb +1 -0
- data/lib/puppet/module.rb +40 -83
- data/lib/puppet/module_tool.rb +42 -5
- data/lib/puppet/module_tool/applications/builder.rb +1 -1
- data/lib/puppet/module_tool/applications/installer.rb +11 -11
- data/lib/puppet/module_tool/applications/searcher.rb +15 -2
- data/lib/puppet/module_tool/applications/unpacker.rb +4 -8
- data/lib/puppet/module_tool/applications/upgrader.rb +6 -5
- data/lib/puppet/module_tool/errors/base.rb +1 -1
- data/lib/puppet/module_tool/errors/installer.rb +24 -4
- data/lib/puppet/module_tool/install_directory.rb +41 -0
- data/lib/puppet/module_tool/metadata.rb +4 -4
- data/lib/puppet/module_tool/shared_behaviors.rb +6 -6
- data/lib/puppet/network/auth_config_parser.rb +81 -0
- data/lib/puppet/network/authconfig.rb +49 -147
- data/lib/puppet/network/authorization.rb +20 -62
- data/lib/puppet/network/authstore.rb +43 -27
- data/lib/puppet/network/formats.rb +10 -20
- data/lib/puppet/network/http/api/v1.rb +1 -1
- data/lib/puppet/network/http/connection.rb +184 -0
- data/lib/puppet/network/http/handler.rb +4 -14
- data/lib/puppet/network/http/mongrel.rb +5 -25
- data/lib/puppet/network/http/rack.rb +2 -34
- data/lib/puppet/network/http/rack/httphandler.rb +0 -3
- data/lib/puppet/network/http/rack/rest.rb +2 -7
- data/lib/puppet/network/http/webrick.rb +9 -32
- data/lib/puppet/network/http_pool.rb +10 -48
- data/lib/puppet/network/resolver.rb +85 -0
- data/lib/puppet/network/rights.rb +33 -89
- data/lib/puppet/network/server.rb +14 -43
- data/lib/puppet/node.rb +13 -11
- data/lib/puppet/node/environment.rb +29 -12
- data/lib/puppet/node/facts.rb +13 -38
- data/lib/puppet/parameter.rb +0 -21
- data/lib/puppet/parameter/package_options.rb +26 -0
- data/lib/puppet/parser/ast.rb +2 -13
- data/lib/puppet/parser/ast/function.rb +0 -2
- data/lib/puppet/parser/ast/leaf.rb +12 -22
- data/lib/puppet/parser/ast/resource.rb +3 -10
- data/lib/puppet/parser/ast/resource_defaults.rb +1 -1
- data/lib/puppet/parser/ast/resource_override.rb +1 -4
- data/lib/puppet/parser/ast/resourceparam.rb +4 -7
- data/lib/puppet/parser/ast/selector.rb +7 -1
- data/lib/puppet/parser/ast/vardef.rb +0 -2
- data/lib/puppet/parser/collector.rb +2 -1
- data/lib/puppet/parser/compiler.rb +43 -46
- data/lib/puppet/parser/files.rb +15 -20
- data/lib/puppet/parser/functions.rb +8 -39
- data/lib/puppet/parser/functions/extlookup.rb +8 -8
- data/lib/puppet/parser/functions/file.rb +18 -18
- data/lib/puppet/parser/functions/fqdn_rand.rb +2 -2
- data/lib/puppet/parser/functions/generate.rb +3 -3
- data/lib/puppet/parser/functions/include.rb +6 -1
- data/lib/puppet/parser/functions/require.rb +16 -21
- data/lib/puppet/parser/functions/shellquote.rb +29 -21
- data/lib/puppet/parser/functions/versioncmp.rb +2 -5
- data/lib/puppet/parser/grammar.ra +44 -14
- data/lib/puppet/parser/lexer.rb +101 -169
- data/lib/puppet/parser/parser.rb +1103 -1014
- data/lib/puppet/parser/parser_support.rb +10 -61
- data/lib/puppet/parser/relationship.rb +1 -3
- data/lib/puppet/parser/resource.rb +21 -56
- data/lib/puppet/parser/scope.rb +138 -165
- data/lib/puppet/parser/templatewrapper.rb +25 -20
- data/lib/puppet/parser/type_loader.rb +33 -67
- data/lib/puppet/parser/yaml_trimmer.rb +1 -1
- data/lib/puppet/property.rb +5 -4
- data/lib/puppet/provider.rb +133 -28
- data/lib/puppet/provider/augeas/augeas.rb +66 -6
- data/lib/puppet/provider/command.rb +25 -0
- data/lib/puppet/provider/cron/crontab.rb +1 -1
- data/lib/puppet/provider/exec.rb +14 -9
- data/lib/puppet/provider/exec/posix.rb +1 -1
- data/lib/puppet/provider/exec/windows.rb +2 -3
- data/lib/puppet/provider/file/windows.rb +29 -10
- data/lib/puppet/provider/group/groupadd.rb +3 -2
- data/lib/puppet/provider/group/ldap.rb +1 -1
- data/lib/puppet/provider/group/windows_adsi.rb +1 -1
- data/lib/puppet/provider/host/parsed.rb +1 -1
- data/lib/puppet/provider/ldap.rb +1 -5
- data/lib/puppet/provider/mount/parsed.rb +3 -3
- data/lib/puppet/provider/nameservice.rb +22 -22
- data/lib/puppet/provider/nameservice/directoryservice.rb +58 -121
- data/lib/puppet/provider/package/apt.rb +8 -11
- data/lib/puppet/provider/package/blastwave.rb +3 -3
- data/lib/puppet/provider/package/dpkg.rb +1 -1
- data/lib/puppet/provider/package/freebsd.rb +2 -2
- data/lib/puppet/provider/package/gem.rb +1 -1
- data/lib/puppet/provider/package/macports.rb +11 -9
- data/lib/puppet/provider/package/msi.rb +37 -32
- data/lib/puppet/provider/package/openbsd.rb +1 -1
- data/lib/puppet/provider/package/pacman.rb +69 -6
- data/lib/puppet/provider/package/pkg.rb +126 -75
- data/lib/puppet/provider/package/pkgin.rb +60 -0
- data/lib/puppet/provider/package/pkgutil.rb +32 -20
- data/lib/puppet/provider/package/portage.rb +2 -2
- data/lib/puppet/provider/package/sun.rb +83 -116
- data/lib/puppet/provider/package/sunfreeware.rb +1 -1
- data/lib/puppet/provider/package/up2date.rb +2 -3
- data/lib/puppet/provider/package/windows.rb +130 -0
- data/lib/puppet/provider/package/windows/exe_package.rb +70 -0
- data/lib/puppet/provider/package/windows/msi_package.rb +62 -0
- data/lib/puppet/provider/package/windows/package.rb +79 -0
- data/lib/puppet/provider/scheduled_task/win32_taskscheduler.rb +2 -2
- data/lib/puppet/provider/service/base.rb +1 -0
- data/lib/puppet/provider/service/bsd.rb +7 -5
- data/lib/puppet/provider/service/daemontools.rb +1 -1
- data/lib/puppet/provider/service/debian.rb +1 -1
- data/lib/puppet/provider/service/freebsd.rb +9 -9
- data/lib/puppet/provider/service/launchd.rb +7 -11
- data/lib/puppet/provider/service/redhat.rb +2 -2
- data/lib/puppet/provider/service/runit.rb +9 -2
- data/lib/puppet/provider/service/smf.rb +14 -2
- data/lib/puppet/provider/service/systemd.rb +3 -3
- data/lib/puppet/provider/service/upstart.rb +6 -6
- data/lib/puppet/provider/ssh_authorized_key/parsed.rb +1 -0
- data/lib/puppet/provider/user/user_role_add.rb +1 -1
- data/lib/puppet/provider/user/useradd.rb +3 -8
- data/lib/puppet/provider/user/windows_adsi.rb +1 -12
- data/lib/puppet/provider/zfs/{solaris.rb → zfs.rb} +16 -5
- data/lib/puppet/provider/zone/solaris.rb +10 -13
- data/lib/puppet/provider/zpool/{solaris.rb → zpool.rb} +11 -4
- data/lib/puppet/rails.rb +6 -4
- data/lib/puppet/rails/database/schema.rb +9 -4
- data/lib/puppet/rails/inventory_node.rb +13 -26
- data/lib/puppet/reference/configuration.rb +1 -2
- data/lib/puppet/reference/metaparameter.rb +1 -2
- data/lib/puppet/reports/http.rb +9 -10
- data/lib/puppet/reports/rrdgraph.rb +2 -2
- data/lib/puppet/reports/store.rb +1 -2
- data/lib/puppet/reports/tagmail.rb +6 -6
- data/lib/puppet/resource.rb +69 -64
- data/lib/puppet/resource/catalog.rb +11 -60
- data/lib/puppet/resource/status.rb +6 -32
- data/lib/puppet/resource/type.rb +94 -34
- data/lib/puppet/resource/type_collection.rb +17 -8
- data/lib/puppet/run.rb +4 -26
- data/lib/puppet/settings.rb +1315 -0
- data/lib/puppet/settings/base_setting.rb +163 -0
- data/lib/puppet/{util/settings → settings}/boolean_setting.rb +7 -3
- data/lib/puppet/settings/directory_setting.rb +7 -0
- data/lib/puppet/settings/errors.rb +11 -0
- data/lib/puppet/{util/settings → settings}/file_setting.rb +4 -20
- data/lib/puppet/settings/path_setting.rb +10 -0
- data/lib/puppet/settings/string_setting.rb +12 -0
- data/lib/puppet/simple_graph.rb +2 -5
- data/lib/puppet/ssl/base.rb +2 -2
- data/lib/puppet/ssl/certificate_authority.rb +4 -5
- data/lib/puppet/ssl/certificate_authority/interface.rb +5 -7
- data/lib/puppet/ssl/certificate_factory.rb +1 -2
- data/lib/puppet/ssl/certificate_request.rb +2 -2
- data/lib/puppet/ssl/certificate_revocation_list.rb +53 -30
- data/lib/puppet/ssl/configuration.rb +32 -0
- data/lib/puppet/ssl/host.rb +9 -37
- data/lib/puppet/status.rb +2 -6
- data/lib/puppet/test/test_helper.rb +58 -25
- data/lib/puppet/transaction.rb +6 -9
- data/lib/puppet/transaction/event.rb +13 -24
- data/lib/puppet/transaction/event_manager.rb +1 -1
- data/lib/puppet/transaction/report.rb +2 -41
- data/lib/puppet/transaction/resource_harness.rb +2 -3
- data/lib/puppet/type.rb +18 -191
- data/lib/puppet/type/augeas.rb +1 -1
- data/lib/puppet/type/cron.rb +1 -1
- data/lib/puppet/type/exec.rb +6 -4
- data/lib/puppet/type/file.rb +33 -44
- data/lib/puppet/type/file/content.rb +13 -9
- data/lib/puppet/type/file/ensure.rb +1 -1
- data/lib/puppet/type/file/mode.rb +1 -1
- data/lib/puppet/type/file/selcontext.rb +2 -6
- data/lib/puppet/type/file/source.rb +8 -4
- data/lib/puppet/type/filebucket.rb +3 -2
- data/lib/puppet/type/mount.rb +1 -11
- data/lib/puppet/type/package.rb +40 -23
- data/lib/puppet/type/schedule.rb +127 -21
- data/lib/puppet/type/scheduled_task.rb +1 -1
- data/lib/puppet/type/service.rb +2 -3
- data/lib/puppet/type/tidy.rb +8 -17
- data/lib/puppet/type/yumrepo.rb +35 -7
- data/lib/puppet/type/zfs.rb +4 -0
- data/lib/puppet/type/zone.rb +48 -38
- data/lib/puppet/util.rb +178 -249
- data/lib/puppet/util/adsi.rb +23 -25
- data/lib/puppet/util/autoload.rb +184 -114
- data/lib/puppet/util/backups.rb +3 -2
- data/lib/puppet/util/colors.rb +0 -1
- data/lib/puppet/util/command_line.rb +42 -104
- data/lib/puppet/util/command_line/puppet_option_parser.rb +89 -0
- data/lib/puppet/util/command_line/trollop.rb +824 -0
- data/lib/puppet/util/config_timeout.rb +24 -0
- data/lib/puppet/util/constant_inflector.rb +15 -7
- data/lib/puppet/util/diff.rb +2 -2
- data/lib/puppet/util/docs.rb +1 -2
- data/lib/puppet/util/errors.rb +3 -4
- data/lib/puppet/util/execution.rb +239 -14
- data/lib/puppet/util/execution_stub.rb +2 -2
- data/lib/puppet/util/feature.rb +2 -4
- data/lib/puppet/util/fileparsing.rb +1 -1
- data/lib/puppet/util/filetype.rb +12 -10
- data/lib/puppet/util/json_lockfile.rb +41 -0
- data/lib/puppet/util/ldap/connection.rb +4 -7
- data/lib/puppet/util/lockfile.rb +62 -0
- data/lib/puppet/util/log.rb +16 -20
- data/lib/puppet/util/log/destinations.rb +12 -27
- data/lib/puppet/util/logging.rb +95 -3
- data/lib/puppet/util/metric.rb +0 -6
- data/lib/puppet/util/monkey_patches.rb +101 -82
- data/lib/puppet/util/monkey_patches/lines.rb +13 -0
- data/lib/puppet/util/network_device/cisco/device.rb +2 -2
- data/lib/puppet/util/network_device/config.rb +1 -0
- data/lib/puppet/util/network_device/transport.rb +2 -0
- data/lib/puppet/util/pidlock.rb +13 -77
- data/lib/puppet/util/platform.rb +0 -7
- data/lib/puppet/util/posix.rb +10 -0
- data/lib/puppet/util/rdoc.rb +12 -8
- data/lib/puppet/util/reference.rb +3 -3
- data/lib/puppet/util/rubygems.rb +55 -0
- data/lib/puppet/util/run_mode.rb +7 -16
- data/lib/puppet/util/selinux.rb +36 -31
- data/lib/puppet/util/storage.rb +14 -19
- data/lib/puppet/util/suidmanager.rb +27 -2
- data/lib/puppet/util/windows.rb +9 -6
- data/lib/puppet/util/windows/error.rb +1 -1
- data/lib/puppet/util/windows/process.rb +3 -3
- data/lib/puppet/util/windows/registry.rb +36 -0
- data/lib/puppet/util/windows/security.rb +46 -9
- data/lib/puppet/util/windows/user.rb +2 -65
- data/lib/puppet/util/zaml.rb +47 -91
- data/lib/puppet/version.rb +1 -1
- data/man/man5/puppet.conf.5 +97 -69
- data/man/man8/puppet-agent.8 +5 -6
- data/man/man8/puppet-apply.8 +7 -3
- data/man/man8/puppet-ca.8 +5 -17
- data/man/man8/puppet-catalog.8 +1 -1
- data/man/man8/puppet-cert.8 +1 -1
- data/man/man8/puppet-certificate.8 +3 -9
- data/man/man8/puppet-certificate_request.8 +1 -1
- data/man/man8/puppet-certificate_revocation_list.8 +1 -1
- data/man/man8/puppet-config.8 +1 -1
- data/man/man8/puppet-describe.8 +1 -1
- data/man/man8/puppet-device.8 +1 -1
- data/man/man8/puppet-doc.8 +7 -1
- data/man/man8/puppet-facts.8 +1 -1
- data/man/man8/puppet-file.8 +1 -1
- data/man/man8/puppet-filebucket.8 +1 -1
- data/man/man8/puppet-help.8 +2 -5
- data/man/man8/puppet-inspect.8 +1 -1
- data/man/man8/puppet-instrumentation_data.8 +1 -1
- data/man/man8/puppet-instrumentation_listener.8 +1 -1
- data/man/man8/puppet-instrumentation_probe.8 +1 -1
- data/man/man8/puppet-key.8 +1 -1
- data/man/man8/puppet-kick.8 +1 -1
- data/man/man8/puppet-man.8 +1 -1
- data/man/man8/puppet-master.8 +1 -1
- data/man/man8/puppet-module.8 +19 -50
- data/man/man8/puppet-node.8 +2 -5
- data/man/man8/puppet-parser.8 +7 -1
- data/man/man8/puppet-plugin.8 +1 -1
- data/man/man8/puppet-queue.8 +1 -1
- data/man/man8/puppet-report.8 +2 -3
- data/man/man8/puppet-resource.8 +1 -1
- data/man/man8/puppet-resource_type.8 +1 -1
- data/man/man8/puppet-secret_agent.8 +1 -1
- data/man/man8/puppet-status.8 +1 -1
- data/man/man8/puppet.8 +1 -1
- data/spec/fixtures/unit/indirector/hiera/global.yaml +10 -0
- data/{test/data/providers/cron/crontab_sample_records.yaml → spec/fixtures/unit/provider/cron/crontab/single_line.yaml} +0 -0
- data/spec/fixtures/unit/provider/package/pkg/dummy_solaris10 +1 -1
- data/spec/fixtures/unit/provider/package/pkg/{dummy_solaris11 → dummy_solaris11.ifo.installed} +0 -0
- data/spec/fixtures/unit/provider/package/pkg/dummy_solaris11.ifo.known +1 -0
- data/spec/fixtures/unit/provider/package/pkg/dummy_solaris11.installed +1 -0
- data/spec/fixtures/unit/provider/package/pkg/dummy_solaris11.known +1 -0
- data/spec/fixtures/unit/provider/package/pkg/publisher +2 -2
- data/spec/fixtures/unit/provider/package/pkg/simple +2 -4
- data/spec/fixtures/unit/provider/package/pkg/solaris11 +2 -12
- data/spec/fixtures/unit/provider/package/sun/dummy.server +12 -0
- data/spec/fixtures/unit/provider/package/sun/simple +24 -0
- data/spec/fixtures/unit/provider/service/smf/svcs.out +3 -0
- data/{test/data/types/sshkey/1 → spec/fixtures/unit/provider/sshkey/parsed/sample} +0 -0
- data/spec/fixtures/unit/provider/zfs/zfs/zfs-list.out +2 -0
- data/spec/fixtures/unit/provider/zpool/zpool/zpool-list.out +2 -0
- data/spec/integration/application/apply_spec.rb +1 -1
- data/spec/integration/application/doc_spec.rb +3 -2
- data/spec/integration/configurer_spec.rb +1 -1
- data/spec/integration/defaults_spec.rb +21 -51
- data/spec/{unit/face → integration/faces}/ca_spec.rb +89 -130
- data/spec/integration/faces/documentation_spec.rb +36 -29
- data/spec/integration/file_serving/content_spec.rb +1 -2
- data/spec/integration/file_serving/fileset_spec.rb +1 -1
- data/spec/integration/file_serving/metadata_spec.rb +1 -2
- data/spec/integration/file_serving/terminus_helper_spec.rb +1 -1
- data/spec/integration/indirector/catalog/compiler_spec.rb +1 -2
- data/spec/integration/indirector/catalog/queue_spec.rb +3 -3
- data/spec/integration/indirector/direct_file_server_spec.rb +14 -10
- data/spec/integration/indirector/facts/facter_spec.rb +22 -0
- data/spec/integration/indirector/file_content/file_server_spec.rb +1 -1
- data/spec/integration/indirector/file_metadata/file_server_spec.rb +1 -1
- data/spec/integration/indirector/node/ldap_spec.rb +1 -1
- data/spec/integration/network/authconfig_spec.rb +238 -0
- data/spec/integration/network/formats_spec.rb +2 -4
- data/spec/integration/network/server/mongrel_spec.rb +2 -10
- data/spec/integration/network/server/webrick_spec.rb +1 -1
- data/spec/integration/node/environment_spec.rb +1 -1
- data/spec/integration/node/facts_spec.rb +2 -2
- data/spec/integration/node_spec.rb +2 -15
- data/spec/integration/parser/collector_spec.rb +2 -2
- data/spec/integration/parser/compiler_spec.rb +38 -10
- data/spec/integration/parser/functions/require_spec.rb +1 -1
- data/spec/integration/parser/functions_spec.rb +1 -1
- data/spec/integration/parser/parser_spec.rb +1 -1
- data/spec/integration/parser/ruby_manifest_spec.rb +1 -1
- data/spec/integration/parser/scope_spec.rb +608 -0
- data/spec/integration/provider/mailalias/aliases_spec.rb +1 -1
- data/spec/integration/provider/mount_spec.rb +1 -0
- data/spec/integration/provider/package_spec.rb +3 -3
- data/spec/integration/provider/service/init_spec.rb +2 -2
- data/spec/integration/provider/ssh_authorized_key_spec.rb +1 -1
- data/spec/integration/reference/providers_spec.rb +1 -1
- data/spec/integration/reports_spec.rb +1 -1
- data/spec/integration/resource/catalog_spec.rb +1 -2
- data/spec/integration/resource/type_collection_spec.rb +1 -1
- data/spec/integration/ssl/certificate_authority_spec.rb +1 -1
- data/spec/integration/ssl/certificate_request_spec.rb +1 -1
- data/spec/integration/ssl/certificate_revocation_list_spec.rb +1 -1
- data/spec/integration/ssl/host_spec.rb +1 -1
- data/spec/integration/transaction/report_spec.rb +1 -1
- data/spec/integration/transaction_spec.rb +2 -2
- data/spec/integration/type/exec_spec.rb +1 -1
- data/spec/integration/type/file_spec.rb +140 -158
- data/spec/integration/type/package_spec.rb +6 -2
- data/spec/integration/type/tidy_spec.rb +1 -1
- data/spec/integration/type_spec.rb +1 -1
- data/spec/integration/util/autoload_spec.rb +8 -14
- data/spec/integration/util/feature_spec.rb +1 -1
- data/spec/integration/util/rdoc/parser_spec.rb +11 -9
- data/spec/integration/util/settings_spec.rb +19 -6
- data/spec/integration/util/windows/security_spec.rb +23 -3
- data/spec/integration/util_spec.rb +3 -3
- data/spec/lib/puppet/indirector/indirector_testing/json.rb +6 -0
- data/spec/lib/puppet/indirector_testing.rb +27 -0
- data/spec/lib/puppet_spec/compiler.rb +2 -2
- data/spec/lib/puppet_spec/database.rb +1 -1
- data/spec/lib/puppet_spec/files.rb +4 -4
- data/spec/lib/puppet_spec/matchers.rb +26 -24
- data/spec/lib/puppet_spec/modules.rb +1 -1
- data/spec/lib/puppet_spec/settings.rb +16 -0
- data/spec/shared_behaviours/file_server_terminus.rb +2 -2
- data/spec/shared_behaviours/file_serving.rb +10 -15
- data/spec/shared_behaviours/file_serving_model.rb +2 -6
- data/spec/shared_contexts/platform.rb +0 -8
- data/spec/spec_helper.rb +14 -15
- data/spec/unit/agent/disabler_spec.rb +64 -0
- data/spec/unit/agent/locker_spec.rb +31 -36
- data/spec/unit/agent_spec.rb +79 -26
- data/spec/unit/application/agent_spec.rb +66 -39
- data/spec/unit/application/apply_spec.rb +46 -36
- data/spec/unit/application/cert_spec.rb +1 -5
- data/spec/unit/application/certificate_spec.rb +1 -1
- data/spec/unit/application/config_spec.rb +1 -1
- data/spec/unit/application/describe_spec.rb +1 -5
- data/spec/unit/application/device_spec.rb +22 -12
- data/spec/unit/application/doc_spec.rb +37 -69
- data/spec/unit/application/face_base_spec.rb +10 -6
- data/spec/unit/application/facts_spec.rb +3 -3
- data/spec/unit/application/filebucket_spec.rb +7 -18
- data/spec/unit/application/indirection_base_spec.rb +11 -5
- data/spec/unit/application/inspect_spec.rb +3 -2
- data/spec/unit/application/kick_spec.rb +6 -22
- data/spec/unit/application/master_spec.rb +15 -39
- data/spec/unit/application/queue_spec.rb +2 -6
- data/spec/unit/application/resource_spec.rb +15 -12
- data/spec/unit/application/secret_agent_spec.rb +1 -1
- data/spec/unit/application_spec.rb +110 -123
- data/spec/unit/configurer/downloader_spec.rb +5 -5
- data/spec/unit/configurer/fact_handler_spec.rb +1 -40
- data/spec/unit/configurer/plugin_handler_spec.rb +11 -96
- data/spec/unit/configurer_spec.rb +61 -59
- data/spec/unit/daemon_spec.rb +26 -19
- data/spec/unit/data_binding_spec.rb +11 -0
- data/spec/unit/dsl/resource_api_spec.rb +2 -2
- data/spec/unit/dsl/resource_type_api_spec.rb +1 -1
- data/spec/unit/face/catalog_spec.rb +1 -1
- data/spec/unit/face/certificate_request_spec.rb +1 -1
- data/spec/unit/face/certificate_revocation_list_spec.rb +1 -1
- data/spec/unit/face/certificate_spec.rb +18 -1
- data/spec/unit/face/config_spec.rb +8 -1
- data/spec/unit/face/facts_spec.rb +1 -1
- data/spec/unit/face/file_spec.rb +1 -1
- data/spec/unit/face/help_spec.rb +39 -22
- data/spec/unit/face/instrumentation_data_spec.rb +1 -1
- data/spec/unit/face/instrumentation_listener_spec.rb +1 -1
- data/spec/unit/face/instrumentation_probe_spec.rb +1 -1
- data/spec/unit/face/key_spec.rb +1 -1
- data/spec/unit/face/module/build_spec.rb +68 -0
- data/spec/unit/face/module/install_spec.rb +46 -31
- data/spec/unit/face/module/list_spec.rb +18 -21
- data/spec/unit/face/module/search_spec.rb +87 -49
- data/spec/unit/face/module/uninstall_spec.rb +4 -4
- data/spec/unit/face/node_spec.rb +3 -3
- data/spec/unit/face/plugin_spec.rb +1 -1
- data/spec/unit/face/report_spec.rb +1 -1
- data/spec/unit/face/resource_spec.rb +1 -1
- data/spec/unit/face/resource_type_spec.rb +1 -1
- data/spec/unit/face/secret_agent_spec.rb +1 -1
- data/spec/unit/file_bucket/dipper_spec.rb +1 -1
- data/spec/unit/file_bucket/file_spec.rb +1 -1
- data/spec/unit/file_serving/base_spec.rb +1 -1
- data/spec/unit/file_serving/configuration/parser_spec.rb +1 -1
- data/spec/unit/file_serving/configuration_spec.rb +7 -21
- data/spec/unit/file_serving/content_spec.rb +1 -1
- data/spec/unit/file_serving/fileset_spec.rb +13 -13
- data/spec/unit/file_serving/metadata_spec.rb +29 -47
- data/spec/unit/file_serving/mount/file_spec.rb +1 -1
- data/spec/unit/file_serving/mount/modules_spec.rb +1 -1
- data/spec/unit/file_serving/mount/plugins_spec.rb +17 -4
- data/spec/unit/file_serving/mount_spec.rb +1 -1
- data/spec/unit/file_serving/terminus_helper_spec.rb +1 -1
- data/spec/unit/file_serving/terminus_selector_spec.rb +5 -5
- data/spec/unit/forge/errors_spec.rb +42 -0
- data/spec/unit/forge/repository_spec.rb +108 -31
- data/spec/unit/forge_spec.rb +17 -23
- data/spec/unit/indirector/active_record_spec.rb +1 -1
- data/spec/unit/indirector/catalog/active_record_spec.rb +11 -49
- data/spec/unit/indirector/catalog/compiler_spec.rb +18 -45
- data/spec/unit/indirector/catalog/json_spec.rb +12 -0
- data/spec/unit/indirector/catalog/queue_spec.rb +1 -1
- data/spec/unit/indirector/catalog/rest_spec.rb +1 -1
- data/spec/unit/indirector/catalog/store_configs_spec.rb +1 -1
- data/spec/unit/indirector/catalog/yaml_spec.rb +1 -1
- data/spec/unit/indirector/certificate/ca_spec.rb +5 -6
- data/spec/unit/indirector/certificate/file_spec.rb +5 -6
- data/spec/unit/indirector/certificate/rest_spec.rb +6 -2
- data/spec/unit/indirector/certificate_request/ca_spec.rb +3 -3
- data/spec/unit/indirector/certificate_request/file_spec.rb +3 -3
- data/spec/unit/indirector/certificate_request/rest_spec.rb +1 -1
- data/spec/unit/indirector/certificate_revocation_list/ca_spec.rb +3 -4
- data/spec/unit/indirector/certificate_revocation_list/file_spec.rb +4 -3
- data/spec/unit/indirector/certificate_revocation_list/rest_spec.rb +1 -1
- data/spec/unit/indirector/certificate_status/file_spec.rb +41 -31
- data/spec/unit/indirector/certificate_status/rest_spec.rb +1 -1
- data/spec/unit/indirector/code_spec.rb +1 -1
- data/spec/unit/indirector/data_binding/hiera_spec.rb +21 -0
- data/spec/unit/indirector/data_binding/none_spec.rb +28 -0
- data/spec/unit/indirector/direct_file_server_spec.rb +2 -2
- data/spec/unit/indirector/envelope_spec.rb +1 -1
- data/spec/unit/indirector/exec_spec.rb +1 -1
- data/spec/unit/indirector/face_spec.rb +1 -1
- data/spec/unit/indirector/facts/active_record_spec.rb +1 -1
- data/spec/unit/indirector/facts/couch_spec.rb +3 -3
- data/spec/unit/indirector/facts/facter_spec.rb +13 -20
- data/spec/unit/indirector/facts/inventory_active_record_spec.rb +2 -2
- data/spec/unit/indirector/facts/inventory_service_spec.rb +2 -3
- data/spec/unit/indirector/facts/network_device_spec.rb +2 -9
- data/spec/unit/indirector/facts/rest_spec.rb +1 -1
- data/spec/unit/indirector/facts/store_configs_spec.rb +1 -1
- data/spec/unit/indirector/facts/yaml_spec.rb +2 -2
- data/spec/unit/indirector/file_bucket_file/file_spec.rb +2 -2
- data/spec/unit/indirector/file_bucket_file/rest_spec.rb +1 -1
- data/spec/unit/indirector/file_content/file_server_spec.rb +1 -1
- data/spec/unit/indirector/file_content/file_spec.rb +1 -1
- data/spec/unit/indirector/file_content/rest_spec.rb +7 -3
- data/spec/unit/indirector/file_metadata/file_server_spec.rb +1 -1
- data/spec/unit/indirector/file_metadata/file_spec.rb +3 -3
- data/spec/unit/indirector/file_metadata/rest_spec.rb +1 -1
- data/spec/unit/indirector/file_server_spec.rb +1 -1
- data/spec/unit/indirector/hiera_spec.rb +149 -0
- data/spec/unit/indirector/indirection_spec.rb +10 -29
- data/spec/unit/indirector/instrumentation_data/local_spec.rb +1 -1
- data/spec/unit/indirector/instrumentation_data/rest_spec.rb +1 -1
- data/spec/unit/indirector/instrumentation_listener/local_spec.rb +1 -1
- data/spec/unit/indirector/instrumentation_listener/rest_spec.rb +1 -1
- data/spec/unit/indirector/instrumentation_probe/local_spec.rb +1 -1
- data/spec/unit/indirector/instrumentation_probe/rest_spec.rb +1 -1
- data/spec/unit/indirector/json_spec.rb +193 -0
- data/spec/unit/indirector/key/ca_spec.rb +5 -6
- data/spec/unit/indirector/key/file_spec.rb +10 -12
- data/spec/unit/indirector/ldap_spec.rb +3 -3
- data/spec/unit/indirector/memory_spec.rb +1 -1
- data/spec/unit/indirector/node/active_record_spec.rb +11 -7
- data/spec/unit/indirector/node/exec_spec.rb +12 -5
- data/spec/unit/indirector/node/ldap_spec.rb +173 -194
- data/spec/unit/indirector/node/memory_spec.rb +1 -1
- data/spec/unit/indirector/node/plain_spec.rb +16 -8
- data/spec/unit/indirector/node/rest_spec.rb +1 -1
- data/spec/unit/indirector/node/store_configs_spec.rb +1 -1
- data/spec/unit/indirector/node/yaml_spec.rb +1 -1
- data/spec/unit/indirector/none_spec.rb +33 -0
- data/spec/unit/indirector/plain_spec.rb +1 -1
- data/spec/unit/indirector/queue_spec.rb +1 -1
- data/spec/unit/indirector/report/processor_spec.rb +4 -4
- data/spec/unit/indirector/report/rest_spec.rb +3 -46
- data/spec/unit/indirector/report/yaml_spec.rb +3 -12
- data/spec/unit/indirector/request_spec.rb +238 -61
- data/spec/unit/indirector/resource/active_record_spec.rb +2 -2
- data/spec/unit/indirector/resource/ral_spec.rb +2 -2
- data/spec/unit/indirector/resource/rest_spec.rb +1 -1
- data/spec/unit/indirector/resource/store_configs_spec.rb +1 -1
- data/spec/unit/indirector/resource_type/parser_spec.rb +153 -53
- data/spec/unit/indirector/resource_type/rest_spec.rb +1 -1
- data/spec/unit/indirector/rest_spec.rb +350 -361
- data/spec/unit/indirector/run/local_spec.rb +2 -2
- data/spec/unit/indirector/run/rest_spec.rb +1 -1
- data/spec/unit/indirector/ssl_file_spec.rb +12 -10
- data/spec/unit/indirector/status/rest_spec.rb +1 -1
- data/spec/unit/indirector/store_configs_spec.rb +1 -1
- data/spec/unit/indirector/terminus_spec.rb +1 -46
- data/spec/unit/indirector/yaml_spec.rb +36 -36
- data/spec/unit/indirector_spec.rb +1 -1
- data/spec/unit/interface/action_builder_spec.rb +1 -1
- data/spec/unit/interface/action_manager_spec.rb +1 -1
- data/spec/unit/interface/action_spec.rb +1 -1
- data/spec/unit/interface/documentation_spec.rb +3 -2
- data/spec/unit/interface/face_collection_spec.rb +19 -9
- data/spec/unit/interface/option_builder_spec.rb +9 -1
- data/spec/unit/interface/option_spec.rb +8 -0
- data/spec/unit/interface_spec.rb +49 -11
- data/spec/unit/module_spec.rb +95 -303
- data/spec/unit/module_tool/application_spec.rb +6 -6
- data/spec/unit/module_tool/applications/installer_spec.rb +131 -69
- data/spec/unit/module_tool/applications/searcher_spec.rb +37 -0
- data/spec/unit/module_tool/applications/uninstaller_spec.rb +27 -19
- data/spec/unit/module_tool/applications/unpacker_spec.rb +4 -10
- data/spec/unit/module_tool/applications/upgrader_spec.rb +1 -4
- data/spec/unit/module_tool/install_directory_spec.rb +70 -0
- data/spec/unit/module_tool_spec.rb +132 -1
- data/spec/unit/network/auth_config_parser_spec.rb +101 -0
- data/spec/unit/network/authconfig_spec.rb +54 -272
- data/spec/unit/network/authorization_spec.rb +20 -0
- data/spec/unit/network/authstore_spec.rb +17 -15
- data/spec/unit/network/format_handler_spec.rb +3 -3
- data/spec/unit/network/format_spec.rb +1 -1
- data/spec/unit/network/formats_spec.rb +28 -37
- data/spec/unit/network/http/api/v1_spec.rb +3 -3
- data/spec/unit/network/http/compression_spec.rb +3 -3
- data/spec/unit/network/http/connection_spec.rb +244 -0
- data/spec/unit/network/http/handler_spec.rb +4 -20
- data/spec/unit/network/http/mongrel/rest_spec.rb +12 -31
- data/spec/unit/network/http/mongrel_spec.rb +7 -37
- data/spec/unit/network/http/rack/rest_spec.rb +10 -44
- data/spec/unit/network/http/rack_spec.rb +2 -59
- data/spec/unit/network/http/webrick/rest_spec.rb +14 -4
- data/spec/unit/network/http/webrick_spec.rb +129 -193
- data/spec/unit/network/http_pool_spec.rb +6 -115
- data/spec/unit/network/http_spec.rb +1 -1
- data/spec/unit/network/resolver_spec.rb +207 -0
- data/spec/unit/network/rights_spec.rb +15 -115
- data/spec/unit/network/server_spec.rb +58 -166
- data/spec/unit/node/environment_spec.rb +7 -7
- data/spec/unit/node/facts_spec.rb +15 -30
- data/spec/unit/node_spec.rb +14 -26
- data/spec/unit/other/selinux_spec.rb +1 -1
- data/spec/unit/parameter/package_options_spec.rb +44 -0
- data/spec/unit/parameter/path_spec.rb +1 -1
- data/spec/unit/parameter/value_collection_spec.rb +1 -1
- data/spec/unit/parameter/value_spec.rb +1 -1
- data/spec/unit/parameter_spec.rb +1 -1
- data/spec/unit/parser/ast/arithmetic_operator_spec.rb +4 -2
- data/spec/unit/parser/ast/astarray_spec.rb +4 -2
- data/spec/unit/parser/ast/asthash_spec.rb +4 -2
- data/spec/unit/parser/ast/boolean_operator_spec.rb +4 -2
- data/spec/unit/parser/ast/casestatement_spec.rb +9 -5
- data/spec/unit/parser/ast/collection_spec.rb +2 -2
- data/spec/unit/parser/ast/collexpr_spec.rb +4 -2
- data/spec/unit/parser/ast/comparison_operator_spec.rb +5 -2
- data/spec/unit/parser/ast/definition_spec.rb +1 -1
- data/spec/unit/parser/ast/function_spec.rb +3 -3
- data/spec/unit/parser/ast/hostclass_spec.rb +1 -1
- data/spec/unit/parser/ast/ifstatement_spec.rb +4 -2
- data/spec/unit/parser/ast/in_operator_spec.rb +4 -2
- data/spec/unit/parser/ast/leaf_spec.rb +66 -39
- data/spec/unit/parser/ast/match_operator_spec.rb +4 -2
- data/spec/unit/parser/ast/minus_spec.rb +4 -2
- data/spec/unit/parser/ast/node_spec.rb +1 -1
- data/spec/unit/parser/ast/nop_spec.rb +1 -1
- data/spec/unit/parser/ast/not_spec.rb +4 -2
- data/spec/unit/parser/ast/relationship_spec.rb +2 -2
- data/spec/unit/parser/ast/resource_defaults_spec.rb +2 -2
- data/spec/unit/parser/ast/resource_override_spec.rb +2 -2
- data/spec/unit/parser/ast/resource_reference_spec.rb +5 -3
- data/spec/unit/parser/ast/resource_spec.rb +5 -32
- data/spec/unit/parser/ast/selector_spec.rb +56 -106
- data/spec/unit/parser/ast/vardef_spec.rb +4 -2
- data/spec/unit/parser/ast_spec.rb +22 -51
- data/spec/unit/parser/collector_spec.rb +2 -2
- data/spec/unit/parser/compiler_spec.rb +89 -42
- data/spec/unit/parser/files_spec.rb +81 -10
- data/spec/unit/parser/functions/create_resources_spec.rb +5 -4
- data/spec/unit/parser/functions/defined_spec.rb +2 -2
- data/spec/unit/parser/functions/extlookup_spec.rb +9 -8
- data/spec/unit/parser/functions/fail_spec.rb +28 -0
- data/spec/unit/parser/functions/file_spec.rb +55 -0
- data/spec/unit/parser/functions/fqdn_rand_spec.rb +6 -12
- data/spec/unit/parser/functions/generate_spec.rb +54 -3
- data/spec/unit/parser/functions/include_spec.rb +19 -2
- data/spec/unit/parser/functions/inline_template_spec.rb +9 -20
- data/spec/unit/parser/functions/realize_spec.rb +4 -4
- data/spec/unit/parser/functions/regsubst_spec.rb +4 -2
- data/spec/unit/parser/functions/require_spec.rb +5 -14
- data/spec/unit/parser/functions/search_spec.rb +23 -0
- data/spec/unit/parser/functions/shellquote_spec.rb +31 -38
- data/spec/unit/parser/functions/split_spec.rb +4 -2
- data/spec/unit/parser/functions/sprintf_spec.rb +4 -2
- data/spec/unit/parser/functions/tag_spec.rb +4 -3
- data/spec/unit/parser/functions/template_spec.rb +45 -27
- data/spec/unit/parser/functions/versioncmp_spec.rb +4 -2
- data/spec/unit/parser/functions_spec.rb +14 -22
- data/spec/unit/parser/lexer_spec.rb +10 -134
- data/spec/unit/parser/parser_spec.rb +126 -35
- data/spec/unit/parser/relationship_spec.rb +1 -25
- data/spec/unit/parser/resource_spec.rb +15 -79
- data/spec/unit/parser/scope_spec.rb +175 -602
- data/spec/unit/parser/templatewrapper_spec.rb +8 -25
- data/spec/unit/parser/type_loader_spec.rb +37 -21
- data/spec/unit/property/ensure_spec.rb +1 -1
- data/spec/unit/property/keyvalue_spec.rb +1 -1
- data/spec/unit/property/list_spec.rb +1 -1
- data/spec/unit/property/ordered_list_spec.rb +1 -1
- data/spec/unit/property_spec.rb +1 -1
- data/spec/unit/{puppet/provider → provider}/README.markdown +0 -0
- data/spec/unit/provider/augeas/augeas_spec.rb +88 -1
- data/spec/unit/provider/cisco_spec.rb +1 -1
- data/spec/unit/provider/command_spec.rb +62 -0
- data/spec/unit/provider/confine/exists_spec.rb +8 -1
- data/spec/unit/provider/confine/false_spec.rb +1 -1
- data/spec/unit/provider/confine/feature_spec.rb +1 -1
- data/spec/unit/provider/confine/true_spec.rb +1 -1
- data/spec/unit/provider/confine/variable_spec.rb +1 -1
- data/spec/unit/provider/confine_collection_spec.rb +1 -1
- data/spec/unit/provider/confine_spec.rb +1 -1
- data/spec/unit/provider/confiner_spec.rb +1 -1
- data/spec/unit/provider/cron/crontab_spec.rb +116 -0
- data/spec/unit/provider/exec/posix_spec.rb +99 -12
- data/spec/unit/provider/exec/shell_spec.rb +1 -1
- data/spec/unit/provider/exec/windows_spec.rb +1 -1
- data/spec/unit/provider/exec_spec.rb +1 -1
- data/spec/unit/provider/file/posix_spec.rb +1 -1
- data/spec/unit/provider/file/windows_spec.rb +30 -30
- data/spec/unit/provider/group/groupadd_spec.rb +31 -37
- data/spec/unit/provider/group/ldap_spec.rb +1 -1
- data/spec/unit/provider/group/pw_spec.rb +1 -1
- data/spec/unit/provider/group/windows_adsi_spec.rb +2 -2
- data/spec/unit/provider/host/parsed_spec.rb +1 -1
- data/spec/unit/provider/interface/cisco_spec.rb +1 -1
- data/spec/unit/provider/ldap_spec.rb +1 -1
- data/spec/unit/provider/macauthorization_spec.rb +1 -1
- data/spec/unit/provider/mcx/mcxcontent_spec.rb +1 -1
- data/spec/unit/provider/mount/parsed_spec.rb +18 -12
- data/spec/unit/provider/mount_spec.rb +1 -1
- data/spec/unit/provider/naginator_spec.rb +1 -1
- data/spec/unit/provider/nameservice/directoryservice_spec.rb +9 -29
- data/spec/unit/provider/network_device_spec.rb +1 -1
- data/spec/unit/provider/package/aix_spec.rb +1 -1
- data/spec/unit/provider/package/appdmg_spec.rb +1 -1
- data/spec/unit/provider/package/apt_spec.rb +1 -1
- data/spec/unit/provider/package/aptitude_spec.rb +38 -0
- data/spec/unit/provider/package/aptrpm_spec.rb +39 -0
- data/spec/unit/provider/package/dpkg_spec.rb +4 -4
- data/spec/unit/provider/package/freebsd_spec.rb +3 -3
- data/spec/unit/provider/package/gem_spec.rb +1 -1
- data/spec/unit/provider/package/hpux_spec.rb +1 -1
- data/spec/unit/provider/package/macports_spec.rb +27 -10
- data/spec/unit/provider/package/msi_spec.rb +29 -14
- data/spec/unit/provider/package/nim_spec.rb +1 -1
- data/spec/unit/provider/package/openbsd_spec.rb +3 -3
- data/spec/unit/provider/package/pacman_spec.rb +109 -81
- data/spec/unit/provider/package/pip_spec.rb +1 -1
- data/spec/unit/provider/package/pkg_spec.rb +205 -97
- data/spec/unit/provider/package/pkgdmg_spec.rb +1 -1
- data/spec/unit/provider/package/pkgin_spec.rb +176 -0
- data/spec/unit/provider/package/pkgutil_spec.rb +64 -10
- data/spec/unit/provider/package/rpm_spec.rb +58 -0
- data/spec/unit/provider/package/sun_spec.rb +122 -0
- data/spec/unit/provider/package/up2date_spec.rb +24 -0
- data/spec/unit/provider/package/windows/exe_package_spec.rb +99 -0
- data/spec/unit/provider/package/windows/msi_package_spec.rb +115 -0
- data/spec/unit/provider/package/windows/package_spec.rb +126 -0
- data/spec/unit/provider/package/windows_spec.rb +255 -0
- data/spec/unit/provider/package/yum_spec.rb +1 -1
- data/spec/unit/provider/package/zypper_spec.rb +1 -1
- data/spec/unit/provider/parsedfile_spec.rb +1 -1
- data/spec/unit/provider/scheduled_task/win32_taskscheduler_spec.rb +12 -15
- data/spec/unit/provider/selboolean_spec.rb +1 -1
- data/spec/unit/provider/selmodule-example.pp +0 -0
- data/spec/unit/provider/selmodule_spec.rb +1 -1
- data/spec/unit/provider/service/base_spec.rb +77 -0
- data/spec/unit/provider/service/daemontools_spec.rb +1 -1
- data/spec/unit/provider/service/debian_spec.rb +1 -1
- data/spec/unit/provider/service/freebsd_spec.rb +1 -1
- data/spec/unit/provider/service/gentoo_spec.rb +1 -1
- data/spec/unit/provider/service/init_spec.rb +1 -1
- data/spec/unit/provider/service/launchd_spec.rb +0 -17
- data/spec/unit/provider/service/redhat_spec.rb +12 -3
- data/spec/unit/provider/service/runit_spec.rb +2 -1
- data/spec/unit/provider/service/smf_spec.rb +16 -1
- data/spec/unit/provider/service/src_spec.rb +6 -6
- data/spec/unit/provider/service/systemd_spec.rb +18 -1
- data/spec/unit/provider/service/upstart_spec.rb +12 -7
- data/spec/unit/provider/service/windows_spec.rb +1 -1
- data/spec/unit/provider/ssh_authorized_key/parsed_spec.rb +1 -1
- data/spec/unit/provider/sshkey/parsed_spec.rb +42 -12
- data/spec/unit/provider/user/hpux_spec.rb +1 -1
- data/spec/unit/provider/user/ldap_spec.rb +9 -23
- data/spec/unit/provider/user/pw_spec.rb +1 -1
- data/spec/unit/provider/user/user_role_add_spec.rb +5 -2
- data/spec/unit/provider/user/useradd_spec.rb +118 -146
- data/spec/unit/provider/user/windows_adsi_spec.rb +2 -24
- data/spec/unit/provider/vlan/cisco_spec.rb +1 -1
- data/spec/unit/provider/zfs/zfs_spec.rb +106 -0
- data/spec/unit/provider/zone/solaris_spec.rb +56 -34
- data/spec/unit/provider/zpool/zpool_spec.rb +213 -0
- data/spec/unit/provider_spec.rb +621 -16
- data/spec/unit/puppet_spec.rb +21 -9
- data/spec/unit/rails/host_spec.rb +1 -1
- data/spec/unit/rails/param_value_spec.rb +1 -1
- data/spec/unit/rails/resource_spec.rb +1 -1
- data/spec/unit/rails_spec.rb +70 -70
- data/spec/unit/relationship_spec.rb +1 -1
- data/spec/unit/reports/http_spec.rb +48 -15
- data/spec/unit/reports/rrdgraph_spec.rb +1 -1
- data/spec/unit/reports/store_spec.rb +1 -1
- data/spec/unit/reports/tagmail_spec.rb +1 -1
- data/spec/unit/reports_spec.rb +1 -1
- data/spec/unit/resource/catalog_spec.rb +8 -175
- data/spec/unit/resource/status_spec.rb +2 -2
- data/spec/unit/resource/type_collection_helper_spec.rb +1 -1
- data/spec/unit/resource/type_collection_spec.rb +72 -45
- data/spec/unit/resource/type_spec.rb +31 -33
- data/spec/unit/resource_spec.rb +163 -98
- data/spec/unit/run_spec.rb +7 -23
- data/spec/unit/settings/directory_setting_spec.rb +32 -0
- data/spec/unit/{util/settings → settings}/file_setting_spec.rb +14 -23
- data/spec/unit/settings/path_setting_spec.rb +30 -0
- data/spec/unit/settings/string_setting_spec.rb +75 -0
- data/spec/unit/settings_spec.rb +1583 -0
- data/spec/unit/simple_graph_spec.rb +19 -5
- data/spec/unit/ssl/base_spec.rb +2 -2
- data/spec/unit/ssl/certificate_authority/interface_spec.rb +7 -7
- data/spec/unit/ssl/certificate_authority_spec.rb +27 -53
- data/spec/unit/ssl/certificate_factory_spec.rb +1 -1
- data/spec/unit/ssl/certificate_request_spec.rb +2 -4
- data/spec/unit/ssl/certificate_revocation_list_spec.rb +3 -3
- data/spec/unit/ssl/certificate_spec.rb +1 -1
- data/spec/unit/ssl/configuration_spec.rb +60 -0
- data/spec/unit/ssl/host_spec.rb +37 -89
- data/spec/unit/ssl/inventory_spec.rb +13 -20
- data/spec/unit/ssl/key_spec.rb +11 -9
- data/spec/unit/status_spec.rb +1 -7
- data/spec/unit/transaction/event_manager_spec.rb +1 -1
- data/spec/unit/transaction/event_spec.rb +6 -6
- data/spec/unit/transaction/report_spec.rb +1 -1
- data/spec/unit/transaction/resource_harness_spec.rb +2 -2
- data/spec/unit/transaction_spec.rb +8 -8
- data/spec/unit/{puppet/type → type}/README.markdown +0 -0
- data/spec/unit/type/augeas_spec.rb +2 -2
- data/spec/unit/type/component_spec.rb +1 -1
- data/spec/unit/type/computer_spec.rb +1 -1
- data/spec/unit/type/cron_spec.rb +1 -1
- data/spec/unit/type/exec_spec.rb +40 -12
- data/spec/unit/type/file/checksum_spec.rb +1 -1
- data/spec/unit/type/file/content_spec.rb +9 -6
- data/spec/unit/type/file/ctime_spec.rb +1 -1
- data/spec/unit/type/file/ensure_spec.rb +1 -1
- data/spec/unit/type/file/group_spec.rb +1 -1
- data/spec/unit/type/file/mode_spec.rb +1 -1
- data/spec/unit/type/file/mtime_spec.rb +1 -1
- data/spec/unit/type/file/owner_spec.rb +1 -1
- data/spec/unit/type/file/selinux_spec.rb +1 -1
- data/spec/unit/type/file/source_spec.rb +14 -13
- data/spec/unit/type/file/type_spec.rb +1 -1
- data/spec/unit/type/file_spec.rb +39 -87
- data/spec/unit/type/filebucket_spec.rb +1 -1
- data/spec/unit/type/group_spec.rb +5 -5
- data/spec/unit/type/host_spec.rb +1 -1
- data/spec/unit/type/interface_spec.rb +1 -1
- data/spec/unit/type/macauthorization_spec.rb +1 -1
- data/spec/unit/type/mailalias_spec.rb +21 -0
- data/spec/unit/type/maillist_spec.rb +1 -1
- data/spec/unit/type/mcx_spec.rb +1 -1
- data/spec/unit/type/mount_spec.rb +2 -2
- data/spec/unit/type/nagios_spec.rb +1 -1
- data/spec/unit/type/noop_metaparam_spec.rb +3 -3
- data/spec/unit/type/package_spec.rb +1 -1
- data/spec/unit/type/resources_spec.rb +2 -2
- data/spec/unit/type/schedule_spec.rb +297 -39
- data/spec/unit/type/scheduled_task_spec.rb +3 -3
- data/spec/unit/type/selboolean_spec.rb +1 -1
- data/spec/unit/type/selmodule_spec.rb +1 -1
- data/spec/unit/type/service_spec.rb +1 -1
- data/spec/unit/type/ssh_authorized_key_spec.rb +3 -3
- data/spec/unit/type/sshkey_spec.rb +1 -1
- data/spec/unit/type/stage_spec.rb +1 -1
- data/spec/unit/type/tidy_spec.rb +1 -1
- data/spec/unit/type/user_spec.rb +1 -1
- data/spec/unit/type/vlan_spec.rb +1 -1
- data/spec/unit/type/whit_spec.rb +1 -1
- data/spec/unit/type/yumrepo_spec.rb +243 -0
- data/spec/unit/type/zfs_spec.rb +8 -6
- data/spec/unit/type/zone_spec.rb +41 -36
- data/spec/unit/type/zpool_spec.rb +1 -1
- data/spec/unit/type_spec.rb +180 -31
- data/spec/unit/util/adsi_spec.rb +8 -23
- data/spec/unit/util/autoload_spec.rb +181 -45
- data/spec/unit/util/backups_spec.rb +1 -1
- data/spec/unit/util/cache_accumulator_spec.rb +1 -1
- data/spec/unit/util/cacher_spec.rb +1 -1
- data/spec/unit/util/checksums_spec.rb +1 -1
- data/spec/unit/util/command_line_spec.rb +114 -108
- data/spec/unit/util/command_line_utils/puppet_option_parser_spec.rb +129 -0
- data/spec/unit/util/config_timeout_spec.rb +57 -0
- data/spec/unit/util/constant_inflector_spec.rb +13 -23
- data/spec/unit/util/diff_spec.rb +5 -4
- data/spec/unit/util/errors_spec.rb +1 -1
- data/spec/unit/util/execution_spec.rb +532 -28
- data/spec/unit/util/execution_stub_spec.rb +4 -4
- data/spec/unit/util/feature_spec.rb +12 -13
- data/spec/unit/util/filetype_spec.rb +9 -9
- data/spec/unit/util/inline_docs_spec.rb +1 -1
- data/spec/unit/util/instrumentation/data_spec.rb +1 -1
- data/spec/unit/util/instrumentation/indirection_probe_spec.rb +1 -1
- data/spec/unit/util/instrumentation/instrumentable_spec.rb +1 -1
- data/spec/unit/util/instrumentation/listener_spec.rb +1 -1
- data/spec/unit/util/instrumentation_spec.rb +1 -1
- data/spec/unit/util/json_lockfile_spec.rb +29 -0
- data/spec/unit/util/ldap/connection_spec.rb +11 -15
- data/spec/unit/util/ldap/generator_spec.rb +1 -1
- data/spec/unit/util/ldap/manager_spec.rb +14 -23
- data/spec/unit/util/loadedfile_spec.rb +1 -1
- data/spec/unit/util/lockfile_spec.rb +76 -0
- data/spec/unit/util/log/destinations_spec.rb +11 -28
- data/spec/unit/util/log_spec.rb +6 -6
- data/spec/unit/util/logging_spec.rb +43 -11
- data/spec/unit/util/metric_spec.rb +4 -3
- data/spec/unit/util/monkey_patches/lines_spec.rb +83 -0
- data/spec/unit/util/monkey_patches_spec.rb +91 -28
- data/spec/unit/util/nagios_maker_spec.rb +1 -1
- data/spec/unit/util/network_device/cisco/device_spec.rb +3 -3
- data/spec/unit/util/network_device/cisco/facts_spec.rb +1 -1
- data/spec/unit/util/network_device/cisco/interface_spec.rb +1 -1
- data/spec/unit/util/network_device/config_spec.rb +1 -1
- data/spec/unit/util/network_device/ipcalc_spec.rb +1 -1
- data/spec/unit/util/network_device/transport/base_spec.rb +1 -1
- data/spec/unit/util/network_device/transport/ssh_spec.rb +2 -2
- data/spec/unit/util/network_device/transport/telnet_spec.rb +1 -1
- data/spec/unit/util/network_device_spec.rb +1 -1
- data/spec/unit/util/package_spec.rb +1 -1
- data/spec/unit/util/pidlock_spec.rb +179 -0
- data/spec/unit/util/posix_spec.rb +2 -2
- data/spec/unit/util/pson_spec.rb +23 -9
- data/spec/unit/util/queue/stomp_spec.rb +10 -13
- data/spec/unit/util/queue_spec.rb +2 -2
- data/spec/unit/util/rdoc/parser_spec.rb +11 -9
- data/spec/unit/util/rdoc_spec.rb +9 -3
- data/spec/unit/util/reference_serializer_spec.rb +1 -1
- data/spec/unit/util/reference_spec.rb +1 -1
- data/spec/unit/util/resource_template_spec.rb +1 -1
- data/spec/unit/util/retryaction_spec.rb +1 -1
- data/spec/unit/util/rubygems_spec.rb +66 -0
- data/spec/unit/util/run_mode_spec.rb +4 -9
- data/spec/unit/util/selinux_spec.rb +33 -25
- data/spec/unit/util/storage_spec.rb +2 -18
- data/spec/unit/util/suidmanager_spec.rb +11 -4
- data/spec/unit/util/symbolic_file_mode_spec.rb +1 -1
- data/spec/unit/util/tagging_spec.rb +1 -1
- data/spec/unit/util/terminal_spec.rb +1 -1
- data/spec/unit/util/user_attr_spec.rb +1 -1
- data/spec/unit/util/warnings_spec.rb +1 -1
- data/spec/unit/util/windows/registry_spec.rb +86 -0
- data/spec/unit/util/zaml_spec.rb +30 -146
- data/spec/unit/util_spec.rb +148 -440
- data/spec/watchr.rb +6 -2
- data/tasks/rake/apple.rake +176 -0
- data/tasks/rake/gem.rake +6 -5
- data/tasks/rake/manpages.rake +8 -1
- data/tasks/rake/metrics.rake +11 -3
- data/tasks/rake/parser.rake +5 -0
- data/{ext/osx → tasks/rake/templates}/prototype.plist.erb +0 -0
- metadata +293 -580
- data/bin/filebucket +0 -7
- data/bin/pi +0 -5
- data/bin/puppetca +0 -4
- data/bin/puppetd +0 -4
- data/bin/puppetdoc +0 -4
- data/bin/puppetmasterd +0 -4
- data/bin/puppetqd +0 -4
- data/bin/puppetrun +0 -5
- data/bin/ralsh +0 -4
- data/ext/build_defaults.yaml +0 -19
- data/ext/debian/README.Debian +0 -8
- data/ext/debian/README.source +0 -2
- data/ext/debian/TODO.Debian +0 -1
- data/ext/debian/changelog.erb +0 -1104
- data/ext/debian/compat +0 -1
- data/ext/debian/control +0 -142
- data/ext/debian/copyright +0 -361
- data/ext/debian/docs +0 -1
- data/ext/debian/fileserver.conf +0 -17
- data/ext/debian/puppet-common.dirs +0 -8
- data/ext/debian/puppet-common.install +0 -3
- data/ext/debian/puppet-common.lintian-overrides +0 -7
- data/ext/debian/puppet-common.manpages +0 -2
- data/ext/debian/puppet-common.postinst +0 -35
- data/ext/debian/puppet-common.postrm +0 -32
- data/ext/debian/puppet-el.dirs +0 -1
- data/ext/debian/puppet-el.emacsen-install +0 -25
- data/ext/debian/puppet-el.emacsen-remove +0 -11
- data/ext/debian/puppet-el.emacsen-startup +0 -9
- data/ext/debian/puppet-el.install +0 -1
- data/ext/debian/puppet-testsuite.install +0 -3
- data/ext/debian/puppet-testsuite.lintian-overrides +0 -4
- data/ext/debian/puppet.NEWS +0 -86
- data/ext/debian/puppet.conf +0 -14
- data/ext/debian/puppet.default +0 -7
- data/ext/debian/puppet.dirs +0 -1
- data/ext/debian/puppet.init +0 -118
- data/ext/debian/puppet.install +0 -4
- data/ext/debian/puppet.lintian-overrides +0 -3
- data/ext/debian/puppet.logrotate +0 -11
- data/ext/debian/puppet.manpages +0 -36
- data/ext/debian/puppet.postinst +0 -20
- data/ext/debian/puppet.postrm +0 -20
- data/ext/debian/puppet.preinst +0 -20
- data/ext/debian/puppetmaster-common.install +0 -5
- data/ext/debian/puppetmaster-common.manpages +0 -5
- data/ext/debian/puppetmaster-common.puppetqd.default +0 -27
- data/ext/debian/puppetmaster-common.puppetqd.init +0 -84
- data/ext/debian/puppetmaster-passenger.dirs +0 -4
- data/ext/debian/puppetmaster-passenger.postinst +0 -66
- data/ext/debian/puppetmaster-passenger.postrm +0 -33
- data/ext/debian/puppetmaster.NEWS +0 -13
- data/ext/debian/puppetmaster.README.debian +0 -16
- data/ext/debian/puppetmaster.default +0 -38
- data/ext/debian/puppetmaster.dirs +0 -1
- data/ext/debian/puppetmaster.init +0 -158
- data/ext/debian/puppetmaster.install +0 -1
- data/ext/debian/puppetmaster.lintian-overrides +0 -3
- data/ext/debian/puppetmaster.manpages +0 -1
- data/ext/debian/puppetmaster.postinst +0 -20
- data/ext/debian/puppetmaster.postrm +0 -5
- data/ext/debian/puppetmaster.preinst +0 -22
- data/ext/debian/rules +0 -127
- data/ext/debian/source/format +0 -1
- data/ext/debian/source/options +0 -1
- data/ext/debian/vim-puppet.README.Debian +0 -13
- data/ext/debian/vim-puppet.dirs +0 -3
- data/ext/debian/vim-puppet.yaml +0 -5
- data/ext/debian/watch +0 -2
- data/ext/osx/file_mapping.yaml +0 -38
- data/ext/osx/preflight.erb +0 -37
- data/ext/packaging/Gemfile +0 -8
- data/ext/packaging/Gemfile.lock +0 -28
- data/ext/packaging/LICENSE +0 -17
- data/ext/packaging/README-Solaris.md +0 -117
- data/ext/packaging/README.md +0 -1074
- data/ext/packaging/lib/packaging.rb +0 -21
- data/ext/packaging/lib/packaging/config.rb +0 -277
- data/ext/packaging/lib/packaging/config/params.rb +0 -175
- data/ext/packaging/lib/packaging/tar.rb +0 -186
- data/ext/packaging/lib/packaging/util.rb +0 -44
- data/ext/packaging/lib/packaging/util/date.rb +0 -15
- data/ext/packaging/lib/packaging/util/file.rb +0 -60
- data/ext/packaging/lib/packaging/util/jira.rb +0 -83
- data/ext/packaging/lib/packaging/util/net.rb +0 -16
- data/ext/packaging/lib/packaging/util/rake_utils.rb +0 -57
- data/ext/packaging/lib/packaging/util/serialization.rb +0 -19
- data/ext/packaging/lib/packaging/util/tool.rb +0 -30
- data/ext/packaging/lib/packaging/util/version.rb +0 -300
- data/ext/packaging/packaging.rake +0 -50
- data/ext/packaging/spec/fixtures/config/ext/build_defaults.yaml +0 -2
- data/ext/packaging/spec/fixtures/config/ext/project_data.yaml +0 -2
- data/ext/packaging/spec/fixtures/config/params.yaml +0 -2
- data/ext/packaging/spec/fixtures/util/pre_tasks.yaml +0 -4
- data/ext/packaging/spec/lib/packaging/config_spec.rb +0 -330
- data/ext/packaging/spec/lib/packaging/tar_spec.rb +0 -122
- data/ext/packaging/spec/lib/packaging/util/file_spec.rb +0 -48
- data/ext/packaging/spec/lib/packaging/util/jira_spec.rb +0 -50
- data/ext/packaging/spec/lib/packaging/util/net_spec.rb +0 -23
- data/ext/packaging/spec/lib/packaging/util/rake_utils_spec.rb +0 -70
- data/ext/packaging/spec/lib/packaging/util/version_spec.rb +0 -67
- data/ext/packaging/spec/lib/packaging_spec.rb +0 -19
- data/ext/packaging/spec/spec_helper.rb +0 -22
- data/ext/packaging/spec/tasks/00_utils_spec.rb +0 -248
- data/ext/packaging/static_artifacts/PackageInfo.plist +0 -3
- data/ext/packaging/tasks/00_utils.rake +0 -402
- data/ext/packaging/tasks/30_metrics.rake +0 -33
- data/ext/packaging/tasks/apple.rake +0 -267
- data/ext/packaging/tasks/build.rake +0 -12
- data/ext/packaging/tasks/clean.rake +0 -5
- data/ext/packaging/tasks/deb.rake +0 -127
- data/ext/packaging/tasks/deb_repos.rake +0 -128
- data/ext/packaging/tasks/doc.rake +0 -20
- data/ext/packaging/tasks/fetch.rake +0 -58
- data/ext/packaging/tasks/gem.rake +0 -158
- data/ext/packaging/tasks/ips.rake +0 -122
- data/ext/packaging/tasks/jenkins.rake +0 -360
- data/ext/packaging/tasks/jenkins_dynamic.rake +0 -123
- data/ext/packaging/tasks/load_extras.rake +0 -21
- data/ext/packaging/tasks/mock.rake +0 -290
- data/ext/packaging/tasks/pe_deb.rake +0 -12
- data/ext/packaging/tasks/pe_remote.rake +0 -41
- data/ext/packaging/tasks/pe_rpm.rake +0 -13
- data/ext/packaging/tasks/pe_ship.rake +0 -179
- data/ext/packaging/tasks/pe_sign.rake +0 -47
- data/ext/packaging/tasks/pe_tar.rake +0 -5
- data/ext/packaging/tasks/release.rake +0 -91
- data/ext/packaging/tasks/remote_build.rake +0 -158
- data/ext/packaging/tasks/retrieve.rake +0 -45
- data/ext/packaging/tasks/rpm.rake +0 -71
- data/ext/packaging/tasks/rpm_repos.rake +0 -139
- data/ext/packaging/tasks/ship.rake +0 -192
- data/ext/packaging/tasks/sign.rake +0 -164
- data/ext/packaging/tasks/tag.rake +0 -8
- data/ext/packaging/tasks/tar.rake +0 -34
- data/ext/packaging/tasks/tickets.rake +0 -449
- data/ext/packaging/tasks/update.rake +0 -16
- data/ext/packaging/tasks/vendor_gems.rake +0 -110
- data/ext/packaging/tasks/version.rake +0 -33
- data/ext/packaging/tasks/z_data_dump.rake +0 -65
- data/ext/packaging/templates/README +0 -1
- data/ext/packaging/templates/downstream.xml.erb +0 -45
- data/ext/packaging/templates/packaging.xml.erb +0 -330
- data/ext/packaging/templates/repo.xml.erb +0 -106
- data/ext/project_data.yaml +0 -24
- data/lib/puppet/file_system.rb +0 -3
- data/lib/puppet/file_system/path_pattern.rb +0 -97
- data/lib/puppet/indirector/certificate/disabled_ca.rb +0 -22
- data/lib/puppet/indirector/certificate_request/disabled_ca.rb +0 -22
- data/lib/puppet/indirector/certificate_revocation_list/disabled_ca.rb +0 -22
- data/lib/puppet/indirector/errors.rb +0 -5
- data/lib/puppet/indirector/inventory/yaml.rb +0 -81
- data/lib/puppet/indirector/key/disabled_ca.rb +0 -22
- data/lib/puppet/indirector/resource/validator.rb +0 -8
- data/lib/puppet/network/handler.rb +0 -50
- data/lib/puppet/network/handler/ca.rb +0 -61
- data/lib/puppet/network/handler/filebucket.rb +0 -53
- data/lib/puppet/network/handler/fileserver.rb +0 -732
- data/lib/puppet/network/handler/master.rb +0 -87
- data/lib/puppet/network/handler/report.rb +0 -82
- data/lib/puppet/network/handler/runner.rb +0 -33
- data/lib/puppet/network/handler/status.rb +0 -18
- data/lib/puppet/network/http/rack/xmlrpc.rb +0 -65
- data/lib/puppet/network/http_server.rb +0 -3
- data/lib/puppet/network/http_server/mongrel.rb +0 -129
- data/lib/puppet/network/rest_authconfig.rb +0 -102
- data/lib/puppet/network/rest_authorization.rb +0 -23
- data/lib/puppet/network/xmlrpc/processor.rb +0 -86
- data/lib/puppet/network/xmlrpc/server.rb +0 -19
- data/lib/puppet/network/xmlrpc/webrick_servlet.rb +0 -114
- data/lib/puppet/node/inventory.rb +0 -7
- data/lib/puppet/reference/network.rb +0 -39
- data/lib/puppet/transportable.rb +0 -248
- data/lib/puppet/util/autoload/file_cache.rb +0 -92
- data/lib/puppet/util/file_locking.rb +0 -47
- data/lib/puppet/util/settings.rb +0 -926
- data/lib/puppet/util/settings/setting.rb +0 -94
- data/lib/puppet/util/windows/sid.rb +0 -96
- data/lib/puppet/vendor.rb +0 -55
- data/lib/puppet/vendor/load_safe_yaml.rb +0 -1
- data/lib/puppet/vendor/require_vendored.rb +0 -4
- data/lib/puppet/vendor/safe_yaml/CHANGES.md +0 -104
- data/lib/puppet/vendor/safe_yaml/Gemfile +0 -11
- data/lib/puppet/vendor/safe_yaml/LICENSE.txt +0 -22
- data/lib/puppet/vendor/safe_yaml/README.md +0 -179
- data/lib/puppet/vendor/safe_yaml/Rakefile +0 -6
- data/lib/puppet/vendor/safe_yaml/lib/safe_yaml.rb +0 -253
- data/lib/puppet/vendor/safe_yaml/lib/safe_yaml/deep.rb +0 -34
- data/lib/puppet/vendor/safe_yaml/lib/safe_yaml/parse/date.rb +0 -27
- data/lib/puppet/vendor/safe_yaml/lib/safe_yaml/parse/hexadecimal.rb +0 -12
- data/lib/puppet/vendor/safe_yaml/lib/safe_yaml/parse/sexagesimal.rb +0 -26
- data/lib/puppet/vendor/safe_yaml/lib/safe_yaml/psych_handler.rb +0 -92
- data/lib/puppet/vendor/safe_yaml/lib/safe_yaml/psych_resolver.rb +0 -52
- data/lib/puppet/vendor/safe_yaml/lib/safe_yaml/resolver.rb +0 -94
- data/lib/puppet/vendor/safe_yaml/lib/safe_yaml/safe_to_ruby_visitor.rb +0 -17
- data/lib/puppet/vendor/safe_yaml/lib/safe_yaml/syck_hack.rb +0 -36
- data/lib/puppet/vendor/safe_yaml/lib/safe_yaml/syck_node_monkeypatch.rb +0 -43
- data/lib/puppet/vendor/safe_yaml/lib/safe_yaml/syck_resolver.rb +0 -38
- data/lib/puppet/vendor/safe_yaml/lib/safe_yaml/transform.rb +0 -41
- data/lib/puppet/vendor/safe_yaml/lib/safe_yaml/transform/to_boolean.rb +0 -21
- data/lib/puppet/vendor/safe_yaml/lib/safe_yaml/transform/to_date.rb +0 -11
- data/lib/puppet/vendor/safe_yaml/lib/safe_yaml/transform/to_float.rb +0 -33
- data/lib/puppet/vendor/safe_yaml/lib/safe_yaml/transform/to_integer.rb +0 -25
- data/lib/puppet/vendor/safe_yaml/lib/safe_yaml/transform/to_nil.rb +0 -18
- data/lib/puppet/vendor/safe_yaml/lib/safe_yaml/transform/to_symbol.rb +0 -13
- data/lib/puppet/vendor/safe_yaml/lib/safe_yaml/transform/transformation_map.rb +0 -47
- data/lib/puppet/vendor/safe_yaml/lib/safe_yaml/version.rb +0 -3
- data/lib/puppet/vendor/safe_yaml/run_specs_all_ruby_versions.sh +0 -21
- data/lib/puppet/vendor/safe_yaml/safe_yaml.gemspec +0 -18
- data/lib/puppet/vendor/safe_yaml/spec/exploit.1.9.2.yaml +0 -2
- data/lib/puppet/vendor/safe_yaml/spec/exploit.1.9.3.yaml +0 -2
- data/lib/puppet/vendor/safe_yaml/spec/psych_resolver_spec.rb +0 -10
- data/lib/puppet/vendor/safe_yaml/spec/resolver_specs.rb +0 -250
- data/lib/puppet/vendor/safe_yaml/spec/safe_yaml_spec.rb +0 -702
- data/lib/puppet/vendor/safe_yaml/spec/spec_helper.rb +0 -18
- data/lib/puppet/vendor/safe_yaml/spec/support/exploitable_back_door.rb +0 -29
- data/lib/puppet/vendor/safe_yaml/spec/syck_resolver_spec.rb +0 -10
- data/lib/puppet/vendor/safe_yaml/spec/transform/base64_spec.rb +0 -11
- data/lib/puppet/vendor/safe_yaml/spec/transform/to_date_spec.rb +0 -34
- data/lib/puppet/vendor/safe_yaml/spec/transform/to_float_spec.rb +0 -42
- data/lib/puppet/vendor/safe_yaml/spec/transform/to_integer_spec.rb +0 -59
- data/lib/puppet/vendor/safe_yaml/spec/transform/to_symbol_spec.rb +0 -49
- data/man/man8/filebucket.8 +0 -81
- data/man/man8/pi.8 +0 -51
- data/man/man8/puppetca.8 +0 -97
- data/man/man8/puppetd.8 +0 -154
- data/man/man8/puppetdoc.8 +0 -113
- data/man/man8/puppetmasterd.8 +0 -78
- data/man/man8/puppetqd.8 +0 -55
- data/man/man8/puppetrun.8 +0 -127
- data/man/man8/ralsh.8 +0 -84
- data/spec/integration/network/handler_spec.rb +0 -24
- data/spec/integration/network/rest_authconfig_spec.rb +0 -164
- data/spec/integration/util/file_locking_spec.rb +0 -56
- data/spec/unit/agent_backward_compatibility_spec.rb +0 -152
- data/spec/unit/file_system/path_pattern_spec.rb +0 -139
- data/spec/unit/indirector/catalog/static_compiler_spec.rb +0 -194
- data/spec/unit/indirector/certificate/disabled_ca_spec.rb +0 -33
- data/spec/unit/indirector/certificate_request/disabled_ca_spec.rb +0 -33
- data/spec/unit/indirector/certificate_revocation_list/disabled_ca_spec.rb +0 -33
- data/spec/unit/indirector/inventory/yaml_spec.rb +0 -220
- data/spec/unit/indirector/key/disabled_ca_spec.rb +0 -33
- data/spec/unit/network/handler/ca_spec.rb +0 -87
- data/spec/unit/network/handler/fileserver_spec.rb +0 -201
- data/spec/unit/network/http/mongrel/xmlrpc_spec.rb +0 -0
- data/spec/unit/network/http/rack/xmlrpc_spec.rb +0 -155
- data/spec/unit/network/http/webrick/xmlrpc_spec.rb +0 -0
- data/spec/unit/network/rest_authconfig_spec.rb +0 -142
- data/spec/unit/other/transbucket_spec.rb +0 -184
- data/spec/unit/other/transobject_spec.rb +0 -111
- data/spec/unit/provider/zfs/solaris_spec.rb +0 -99
- data/spec/unit/provider/zpool/solaris_spec.rb +0 -208
- data/spec/unit/transportable_spec.rb +0 -0
- data/spec/unit/util/autoload/file_cache_spec.rb +0 -158
- data/spec/unit/util/file_locking_spec.rb +0 -159
- data/spec/unit/util/settings_spec.rb +0 -1088
- data/spec/unit/util/windows/sid_spec.rb +0 -100
- data/test/README +0 -24
- data/test/Rakefile +0 -96
- data/test/data/failers/badclassnoparam +0 -10
- data/test/data/failers/badclassparam +0 -10
- data/test/data/failers/badcompnoparam +0 -9
- data/test/data/failers/badcompparam +0 -9
- data/test/data/failers/badtypeparam +0 -3
- data/test/data/failers/noobjectrvalue +0 -1
- data/test/data/providers/cron/crontab.allthree +0 -17
- data/test/data/providers/cron/crontab.envNcomment +0 -12
- data/test/data/providers/cron/crontab.envNname +0 -11
- data/test/data/providers/cron/crontab.multirecords +0 -12
- data/test/data/providers/cron/crontab_collections.yaml +0 -44
- data/test/data/providers/cron/crontab_multiple_with_env.yaml +0 -54
- data/test/data/providers/cron/examples/freebsd +0 -2
- data/test/data/providers/cron/examples/one +0 -14
- data/test/data/providers/cron/examples/openbsd +0 -20
- data/test/data/providers/host/parsed/valid_hosts +0 -19
- data/test/data/providers/mailalias/aliases/test1 +0 -28
- data/test/data/providers/mount/parsed/aix.mount +0 -7
- data/test/data/providers/mount/parsed/darwin.mount +0 -6
- data/test/data/providers/mount/parsed/hpux.mount +0 -17
- data/test/data/providers/mount/parsed/linux.mount +0 -5
- data/test/data/providers/mount/parsed/solaris.mount +0 -6
- data/test/data/providers/package/testpackages.yaml +0 -65
- data/test/data/providers/ssh_authorized_key/parsed/authorized_keys +0 -7
- data/test/data/providers/ssh_authorized_key/parsed/authorized_keys1 +0 -3
- data/test/data/providers/ssh_authorized_key/parsed/authorized_keys2 +0 -1
- data/test/data/reports/1.yaml +0 -108
- data/test/data/reports/2.yaml +0 -108
- data/test/data/reports/tagmail_failers.conf +0 -3
- data/test/data/reports/tagmail_passers.conf +0 -30
- data/test/data/snippets/aliastest.pp +0 -16
- data/test/data/snippets/append.pp +0 -11
- data/test/data/snippets/argumentdefaults +0 -14
- data/test/data/snippets/arithmetic_expression.pp +0 -8
- data/test/data/snippets/arraytrailingcomma.pp +0 -3
- data/test/data/snippets/casestatement.pp +0 -65
- data/test/data/snippets/classheirarchy.pp +0 -15
- data/test/data/snippets/classincludes.pp +0 -17
- data/test/data/snippets/classpathtest +0 -11
- data/test/data/snippets/collection.pp +0 -10
- data/test/data/snippets/collection_override.pp +0 -8
- data/test/data/snippets/collection_within_virtual_definitions.pp +0 -20
- data/test/data/snippets/componentmetaparams.pp +0 -11
- data/test/data/snippets/componentrequire.pp +0 -8
- data/test/data/snippets/deepclassheirarchy.pp +0 -23
- data/test/data/snippets/defineoverrides.pp +0 -17
- data/test/data/snippets/emptyclass.pp +0 -9
- data/test/data/snippets/emptyexec.pp +0 -3
- data/test/data/snippets/emptyifelse.pp +0 -9
- data/test/data/snippets/falsevalues.pp +0 -3
- data/test/data/snippets/filecreate +0 -11
- data/test/data/snippets/fqdefinition.pp +0 -5
- data/test/data/snippets/fqparents.pp +0 -11
- data/test/data/snippets/funccomma.pp +0 -5
- data/test/data/snippets/hash.pp +0 -33
- data/test/data/snippets/ifexpression.pp +0 -12
- data/test/data/snippets/implicititeration +0 -15
- data/test/data/snippets/multilinecomments.pp +0 -10
- data/test/data/snippets/multipleclass.pp +0 -9
- data/test/data/snippets/multipleinstances +0 -7
- data/test/data/snippets/multisubs.pp +0 -13
- data/test/data/snippets/namevartest +0 -9
- data/test/data/snippets/scopetest +0 -13
- data/test/data/snippets/selectorvalues.pp +0 -49
- data/test/data/snippets/simpledefaults +0 -5
- data/test/data/snippets/simpleselector +0 -38
- data/test/data/snippets/singleary.pp +0 -19
- data/test/data/snippets/singlequote.pp +0 -11
- data/test/data/snippets/singleselector.pp +0 -22
- data/test/data/snippets/subclass_name_duplication.pp +0 -11
- data/test/data/snippets/tag.pp +0 -9
- data/test/data/snippets/tagged.pp +0 -35
- data/test/data/snippets/virtualresources.pp +0 -14
- data/test/data/types/hosts/1 +0 -3
- data/test/data/types/hosts/2 +0 -13
- data/test/data/types/hosts/solaris +0 -5
- data/test/data/types/mailalias/file1 +0 -183
- data/test/data/types/mount/freebsd.fstab +0 -7
- data/test/data/types/mount/linux.fstab +0 -12
- data/test/data/types/mount/solaris.fstab +0 -12
- data/test/data/types/port/1 +0 -533
- data/test/data/types/port/darwin +0 -11866
- data/test/data/types/ssh_authorized_key/1 +0 -2
- data/test/data/types/yumrepos/fedora-devel.repo +0 -26
- data/test/data/types/yumrepos/fedora.repo +0 -9
- data/test/language/ast.rb +0 -90
- data/test/language/ast/variable.rb +0 -25
- data/test/language/functions.rb +0 -540
- data/test/language/parser.rb +0 -739
- data/test/language/scope.rb +0 -261
- data/test/language/snippets.rb +0 -512
- data/test/language/transportable.rb +0 -87
- data/test/lib/puppettest.rb +0 -307
- data/test/lib/puppettest/certificates.rb +0 -74
- data/test/lib/puppettest/exetest.rb +0 -125
- data/test/lib/puppettest/fakes.rb +0 -199
- data/test/lib/puppettest/fileparsing.rb +0 -28
- data/test/lib/puppettest/filetesting.rb +0 -221
- data/test/lib/puppettest/parsertesting.rb +0 -424
- data/test/lib/puppettest/railstesting.rb +0 -18
- data/test/lib/puppettest/reporttesting.rb +0 -16
- data/test/lib/puppettest/resourcetesting.rb +0 -54
- data/test/lib/puppettest/runnable_test.rb +0 -43
- data/test/lib/puppettest/servertest.rb +0 -77
- data/test/lib/puppettest/support.rb +0 -8
- data/test/lib/puppettest/support/assertions.rb +0 -69
- data/test/lib/puppettest/support/helpers.rb +0 -18
- data/test/lib/puppettest/support/resources.rb +0 -31
- data/test/lib/puppettest/support/utils.rb +0 -141
- data/test/lib/puppettest/testcase.rb +0 -24
- data/test/lib/rake/puppet_test_loader.rb +0 -14
- data/test/lib/rake/puppet_testtask.rb +0 -19
- data/test/lib/stubba.rb +0 -2
- data/test/network/authconfig.rb +0 -69
- data/test/network/authorization.rb +0 -138
- data/test/network/authstore.rb +0 -538
- data/test/network/client_request.rb +0 -38
- data/test/network/handler/fileserver.rb +0 -1266
- data/test/network/handler/master.rb +0 -93
- data/test/network/handler/report.rb +0 -47
- data/test/network/handler/runner.rb +0 -20
- data/test/network/rights.rb +0 -40
- data/test/network/xmlrpc/processor.rb +0 -79
- data/test/network/xmlrpc/server.rb +0 -26
- data/test/network/xmlrpc/webrick_servlet.rb +0 -35
- data/test/other/provider.rb +0 -90
- data/test/other/puppet.rb +0 -85
- data/test/other/relationships.rb +0 -91
- data/test/other/report.rb +0 -135
- data/test/other/transactions.rb +0 -395
- data/test/puppet/defaults.rb +0 -65
- data/test/rails/rails.rb +0 -24
- data/test/rails/railsparameter.rb +0 -80
- data/test/ral/manager/attributes.rb +0 -296
- data/test/ral/manager/instances.rb +0 -88
- data/test/ral/manager/manager.rb +0 -50
- data/test/ral/manager/provider.rb +0 -84
- data/test/ral/manager/type.rb +0 -361
- data/test/ral/providers/cron/crontab.rb +0 -652
- data/test/ral/providers/group.rb +0 -242
- data/test/ral/providers/host/parsed.rb +0 -32
- data/test/ral/providers/mailalias/aliases.rb +0 -55
- data/test/ral/providers/nameservice.rb +0 -32
- data/test/ral/providers/package.rb +0 -245
- data/test/ral/providers/package/aptitude.rb +0 -83
- data/test/ral/providers/package/aptrpm.rb +0 -100
- data/test/ral/providers/parsedfile.rb +0 -695
- data/test/ral/providers/port/parsed.rb +0 -232
- data/test/ral/providers/provider.rb +0 -529
- data/test/ral/providers/service/base.rb +0 -76
- data/test/ral/providers/sshkey/parsed.rb +0 -112
- data/test/ral/providers/user.rb +0 -586
- data/test/ral/providers/user/useradd.rb +0 -233
- data/test/ral/type/cron.rb +0 -505
- data/test/ral/type/exec.rb +0 -717
- data/test/ral/type/file.rb +0 -912
- data/test/ral/type/file/target.rb +0 -346
- data/test/ral/type/fileignoresource.rb +0 -265
- data/test/ral/type/filesources.rb +0 -446
- data/test/ral/type/host.rb +0 -180
- data/test/ral/type/mailalias.rb +0 -45
- data/test/ral/type/port.rb +0 -147
- data/test/ral/type/resources.rb +0 -104
- data/test/ral/type/service.rb +0 -38
- data/test/ral/type/sshkey.rb +0 -148
- data/test/ral/type/user.rb +0 -167
- data/test/ral/type/yumrepo.rb +0 -116
- data/test/ral/type/zone.rb +0 -447
- data/test/test +0 -241
- data/test/util/classgen.rb +0 -241
- data/test/util/execution.rb +0 -33
- data/test/util/fileparsing.rb +0 -721
- data/test/util/inifile.rb +0 -138
- data/test/util/instance_loader.rb +0 -52
- data/test/util/log.rb +0 -219
- data/test/util/metrics.rb +0 -72
- data/test/util/package.rb +0 -25
- data/test/util/pidlock.rb +0 -125
- data/test/util/settings.rb +0 -773
- data/test/util/storage.rb +0 -81
- data/test/util/subclass_loader.rb +0 -89
- data/test/util/utiltest.rb +0 -223
data/lib/puppet/daemon.rb
CHANGED
@@ -8,7 +8,7 @@ class Puppet::Daemon
|
|
8
8
|
attr_accessor :agent, :server, :argv
|
9
9
|
|
10
10
|
def daemonname
|
11
|
-
Puppet
|
11
|
+
Puppet.run_mode.name
|
12
12
|
end
|
13
13
|
|
14
14
|
# Put the daemon into the background.
|
@@ -25,24 +25,36 @@ class Puppet::Daemon
|
|
25
25
|
|
26
26
|
Process.setsid
|
27
27
|
Dir.chdir("/")
|
28
|
+
end
|
29
|
+
|
30
|
+
# Close stdin/stdout/stderr so that we can finish our transition into 'daemon' mode.
|
31
|
+
# @return nil
|
32
|
+
def self.close_streams()
|
33
|
+
Puppet.debug("Closing streams for daemon mode")
|
28
34
|
begin
|
29
35
|
$stdin.reopen "/dev/null"
|
30
36
|
$stdout.reopen "/dev/null", "a"
|
31
37
|
$stderr.reopen $stdout
|
32
38
|
Puppet::Util::Log.reopen
|
39
|
+
Puppet.debug("Finished closing streams for daemon mode")
|
33
40
|
rescue => detail
|
34
|
-
Puppet.err "Could not start #{Puppet
|
41
|
+
Puppet.err "Could not start #{Puppet.run_mode.name}: #{detail}"
|
35
42
|
Puppet::Util::replace_file("/tmp/daemonout", 0644) do |f|
|
36
|
-
f.puts "Could not start #{Puppet
|
43
|
+
f.puts "Could not start #{Puppet.run_mode.name}: #{detail}"
|
37
44
|
end
|
38
45
|
exit(12)
|
39
46
|
end
|
40
47
|
end
|
41
48
|
|
49
|
+
# Convenience signature for calling Puppet::Daemon.close_streams
|
50
|
+
def close_streams()
|
51
|
+
Puppet::Daemon.close_streams
|
52
|
+
end
|
53
|
+
|
42
54
|
# Create a pidfile for our daemon, so we can be stopped and others
|
43
55
|
# don't try to start.
|
44
56
|
def create_pidfile
|
45
|
-
Puppet::Util.synchronize_on(Puppet
|
57
|
+
Puppet::Util.synchronize_on(Puppet.run_mode.name,Sync::EX) do
|
46
58
|
raise "Could not create PID file: #{pidfile}" unless Puppet::Util::Pidlock.new(pidfile).lock
|
47
59
|
end
|
48
60
|
end
|
@@ -72,7 +84,7 @@ class Puppet::Daemon
|
|
72
84
|
|
73
85
|
# Remove the pid file for our daemon.
|
74
86
|
def remove_pidfile
|
75
|
-
Puppet::Util.synchronize_on(Puppet
|
87
|
+
Puppet::Util.synchronize_on(Puppet.run_mode.name,Sync::EX) do
|
76
88
|
Puppet::Util::Pidlock.new(pidfile).unlock
|
77
89
|
end
|
78
90
|
end
|
@@ -123,6 +135,12 @@ class Puppet::Daemon
|
|
123
135
|
# Start the listening server, if required.
|
124
136
|
server.start if server
|
125
137
|
|
138
|
+
# now that the server has started, we've waited just about as long as possible to close
|
139
|
+
# our streams and become a "real" daemon process. This is in hopes of allowing
|
140
|
+
# errors to have the console available as a fallback for logging for as long as
|
141
|
+
# possible.
|
142
|
+
close_streams if Puppet[:daemonize]
|
143
|
+
|
126
144
|
# Finally, loop forever running events - or, at least, until we exit.
|
127
145
|
run_event_loop
|
128
146
|
end
|
@@ -160,7 +178,7 @@ class Puppet::Daemon
|
|
160
178
|
# `reparse` will just check if the action is required, and would be
|
161
179
|
# better named `reparse_if_changed` instead.
|
162
180
|
if reparse_interval > 0 and now >= next_reparse
|
163
|
-
Puppet.settings.
|
181
|
+
Puppet.settings.reparse_config_files
|
164
182
|
|
165
183
|
# The time to the next reparse might have changed, so recalculate
|
166
184
|
# now. That way we react dynamically to reconfiguration.
|
@@ -0,0 +1,11 @@
|
|
1
|
+
require 'puppet/indirector'
|
2
|
+
|
3
|
+
# A class for managing data lookups
|
4
|
+
class Puppet::DataBinding
|
5
|
+
|
6
|
+
# Set up indirection, so that data can be looked for in the complier
|
7
|
+
extend Puppet::Indirector
|
8
|
+
|
9
|
+
indirects(:data_binding, :terminus_setting => :data_binding_terminus,
|
10
|
+
:doc => "Where to find external data bindings.")
|
11
|
+
end
|
data/lib/puppet/defaults.rb
CHANGED
@@ -1,142 +1,249 @@
|
|
1
1
|
# The majority of Puppet's configuration settings are set in this file.
|
2
2
|
module Puppet
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
:
|
3
|
+
|
4
|
+
############################################################################################
|
5
|
+
# NOTE: For information about the available values for the ":type" property of settings,
|
6
|
+
# see the docs for Settings.define_settings
|
7
|
+
############################################################################################
|
8
|
+
|
9
|
+
define_settings(:main,
|
10
|
+
:confdir => {
|
11
|
+
:default => nil,
|
12
|
+
:type => :directory,
|
13
|
+
:desc =>
|
14
|
+
"The main Puppet configuration directory. The default for this setting is calculated based on the user. If the process\n" +
|
15
|
+
"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,\n" +
|
16
|
+
"it defaults to being in the user's home directory.",
|
17
|
+
},
|
18
|
+
:vardir => {
|
19
|
+
:default => nil,
|
20
|
+
:type => :directory,
|
21
|
+
:desc => "Where Puppet stores dynamic and growing data. The default for this setting is calculated specially, like `confdir`_.",
|
22
|
+
},
|
23
|
+
|
24
|
+
### NOTE: this setting is usually being set to a symbol value. We don't officially have a
|
25
|
+
### setting type for that yet, but we might want to consider creating one.
|
26
|
+
:name => {
|
27
|
+
:default => nil,
|
28
|
+
:desc => "The name of the application, if we are running as one. The\n" +
|
29
|
+
"default is essentially $0 without the path or `.rb`.",
|
30
|
+
},
|
31
|
+
|
32
|
+
## This setting needs to go away. As a first step, we could just make it a first-class property of the Settings
|
33
|
+
## class, instead of treating it as a normal setting. There are places where the Settings class tries to use
|
34
|
+
## the value of run_mode to help in resolving other values, and that is no good for nobody. It would cause
|
35
|
+
## infinite recursion and stack overflows without some chicanery... so, it needs to be cleaned up.
|
36
|
+
##
|
37
|
+
## As a longer term goal I think we should be looking into getting rid of run_mode altogether, but that is going
|
38
|
+
## to be a larger undertaking, as it is being branched on in a lot of places in the current code.
|
39
|
+
##
|
40
|
+
## --cprice 2012-03-16
|
41
|
+
:run_mode => {
|
42
|
+
:default => nil,
|
43
|
+
:desc => "The effective 'run mode' of the application: master, agent, or user.",
|
44
|
+
}
|
11
45
|
)
|
12
46
|
|
13
|
-
|
47
|
+
define_settings(:main,
|
48
|
+
:logdir => {
|
49
|
+
:default => nil,
|
50
|
+
:type => :directory,
|
51
|
+
:mode => 0750,
|
52
|
+
:owner => "service",
|
53
|
+
:group => "service",
|
54
|
+
:desc => "The directory in which to store log files",
|
55
|
+
}
|
56
|
+
)
|
14
57
|
|
15
|
-
|
16
|
-
:trace =>
|
58
|
+
define_settings(:main,
|
59
|
+
:trace => {
|
60
|
+
:default => false,
|
61
|
+
:type => :boolean,
|
62
|
+
:desc => "Whether to print stack traces on some errors",
|
63
|
+
},
|
17
64
|
:autoflush => {
|
18
65
|
:default => true,
|
19
|
-
:
|
20
|
-
:
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
66
|
+
:type => :boolean,
|
67
|
+
:desc => "Whether log files should always flush to disk.",
|
68
|
+
:hook => proc { |value| Log.autoflush = value }
|
69
|
+
},
|
70
|
+
:syslogfacility => {
|
71
|
+
:default => "daemon",
|
72
|
+
:desc => "What syslog facility to use when logging to\n" +
|
73
|
+
"syslog. Syslog has a fixed list of valid facilities, and you must\n" +
|
74
|
+
"choose one of those; you cannot just make one up."
|
75
|
+
},
|
76
|
+
:statedir => {
|
77
|
+
:default => "$vardir/state",
|
78
|
+
:type => :directory,
|
79
|
+
:mode => 01755,
|
80
|
+
:desc => "The directory where Puppet state is stored. Generally,
|
81
|
+
this directory can be removed without causing harm (although it
|
82
|
+
might result in spurious service restarts)."
|
30
83
|
},
|
31
84
|
:rundir => {
|
32
|
-
:default
|
33
|
-
:
|
34
|
-
:
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
:
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
85
|
+
:default => nil,
|
86
|
+
:type => :directory,
|
87
|
+
:mode => 01777,
|
88
|
+
:desc => "Where Puppet PID files are kept."
|
89
|
+
},
|
90
|
+
:genconfig => {
|
91
|
+
:default => false,
|
92
|
+
:type => :boolean,
|
93
|
+
:desc => "Whether to just print a configuration to stdout and exit. Only makes\n" +
|
94
|
+
"sense when used interactively. Takes into account arguments specified\n" +
|
95
|
+
"on the CLI.",
|
96
|
+
},
|
97
|
+
:genmanifest => {
|
98
|
+
:default => false,
|
99
|
+
:type => :boolean,
|
100
|
+
:desc => "Whether to just print a manifest to stdout and exit. Only makes\n" +
|
101
|
+
"sense when used interactively. Takes into account arguments specified\n" +
|
102
|
+
"on the CLI.",
|
103
|
+
},
|
104
|
+
:configprint => {
|
105
|
+
:default => "",
|
106
|
+
:desc => "Print the value of a specific configuration setting. If the name of a\n" +
|
107
|
+
"setting is provided for this, then the value is printed and puppet\n" +
|
108
|
+
"exits. Comma-separate multiple values. For a list of all values,\n" +
|
109
|
+
"specify 'all'.",
|
110
|
+
},
|
49
111
|
:color => {
|
50
112
|
:default => "ansi",
|
51
|
-
:type => :
|
52
|
-
:desc => "Whether to use colors when logging to the console. Valid values are
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
113
|
+
:type => :string,
|
114
|
+
:desc => "Whether to use colors when logging to the console. Valid values are\n" +
|
115
|
+
"`ansi` (equivalent to `true`), `html`, and `false`, which produces no color.\n" +
|
116
|
+
"Defaults to false on Windows, as its console does not support ansi colors.",
|
117
|
+
},
|
118
|
+
:mkusers => {
|
119
|
+
:default => false,
|
120
|
+
:type => :boolean,
|
121
|
+
:desc => "Whether to create the necessary user and group that puppet agent will run as.",
|
122
|
+
},
|
123
|
+
:manage_internal_file_permissions => {
|
124
|
+
:default => true,
|
125
|
+
:type => :boolean,
|
126
|
+
:desc => "Whether Puppet should manage the owner, group, and mode of files it uses internally",
|
127
|
+
},
|
128
|
+
:onetime => {
|
129
|
+
:default => false,
|
130
|
+
:type => :boolean,
|
131
|
+
:desc => "Run the configuration once, rather than as a long-running\n" +
|
132
|
+
"daemon. This is useful for interactively running puppetd.",
|
133
|
+
:short => 'o',
|
134
|
+
},
|
135
|
+
:path => {
|
136
|
+
:default => "none",
|
137
|
+
:desc => "The shell search path. Defaults to whatever is inherited\n" +
|
138
|
+
"from the parent process.",
|
139
|
+
:call_hook => :on_define_and_write,
|
140
|
+
:hook => proc do |value|
|
141
|
+
ENV["PATH"] = "" if ENV["PATH"].nil?
|
142
|
+
ENV["PATH"] = value unless value == "none"
|
143
|
+
paths = ENV["PATH"].split(File::PATH_SEPARATOR)
|
144
|
+
%w{/usr/sbin /sbin}.each do |path|
|
145
|
+
ENV["PATH"] += File::PATH_SEPARATOR + path unless paths.include?(path)
|
146
|
+
end
|
147
|
+
value
|
77
148
|
end
|
78
|
-
value
|
79
|
-
end
|
80
149
|
},
|
81
|
-
:libdir => {
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
150
|
+
:libdir => {
|
151
|
+
:type => :directory,
|
152
|
+
:default => "$vardir/lib",
|
153
|
+
:desc => "An extra search path for Puppet. This is only useful\n" +
|
154
|
+
"for those files that Puppet will load on demand, and is only\n" +
|
155
|
+
"guaranteed to work for those cases. In fact, the autoload\n" +
|
156
|
+
"mechanism is responsible for making sure this directory\n" +
|
157
|
+
"is in Ruby's search path\n",
|
158
|
+
:call_hook => :on_initialize_and_write,
|
159
|
+
:hook => proc do |value|
|
89
160
|
$LOAD_PATH.delete(@oldlibdir) if defined?(@oldlibdir) and $LOAD_PATH.include?(@oldlibdir)
|
90
161
|
@oldlibdir = value
|
91
162
|
$LOAD_PATH << value
|
92
163
|
end
|
93
164
|
},
|
94
|
-
:ignoreimport =>
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
},
|
107
|
-
:
|
108
|
-
|
165
|
+
:ignoreimport => {
|
166
|
+
:default => false,
|
167
|
+
:type => :boolean,
|
168
|
+
:desc => "If true, allows the parser to continue without requiring\n" +
|
169
|
+
"all files referenced with `import` statements to exist. This setting was primarily\n" +
|
170
|
+
"designed for use with commit hooks for parse-checking.",
|
171
|
+
},
|
172
|
+
:authconfig => {
|
173
|
+
:default => "$confdir/namespaceauth.conf",
|
174
|
+
:desc => "The configuration file that defines the rights to the different\n" +
|
175
|
+
"namespaces and methods. This can be used as a coarse-grained\n" +
|
176
|
+
"authorization system for both `puppet agent` and `puppet master`.",
|
177
|
+
},
|
178
|
+
:environment => {
|
179
|
+
:default => "production",
|
180
|
+
:desc => "The environment Puppet is running in. For clients\n" +
|
181
|
+
"(e.g., `puppet agent`) this determines the environment itself, which\n" +
|
182
|
+
"is used to find modules and much more. For servers (i.e., `puppet master`)\n" +
|
183
|
+
"this provides the default environment for nodes we know nothing about."
|
184
|
+
},
|
185
|
+
:diff_args => {
|
186
|
+
:default => "-u",
|
187
|
+
:desc => "Which arguments to pass to the diff command when printing differences between\n" +
|
188
|
+
"files. The command to use can be chosen with the `diff` setting.",
|
189
|
+
},
|
109
190
|
:diff => {
|
110
191
|
: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 =>
|
116
|
-
|
117
|
-
|
118
|
-
|
192
|
+
:desc => "Which diff command to use when printing differences between files. This setting\n" +
|
193
|
+
"has no default value on Windows, as standard `diff` is not available, but Puppet can use many\n" +
|
194
|
+
"third-party diff tools.",
|
195
|
+
},
|
196
|
+
:show_diff => {
|
197
|
+
:type => :boolean,
|
198
|
+
:default => false,
|
199
|
+
:desc => "Whether to log and report a contextual diff when files are being replaced. This causes\n" +
|
200
|
+
"partial file contents to pass through Puppet's normal logging and reporting system, so this setting\n" +
|
201
|
+
"should be used with caution if you are sending Puppet's reports to an insecure destination.\n" +
|
202
|
+
"This feature currently requires the `diff/lcs` Ruby library.",
|
203
|
+
},
|
119
204
|
:daemonize => {
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
205
|
+
:type => :boolean,
|
206
|
+
:default => (Puppet.features.microsoft_windows? ? false : true),
|
207
|
+
:desc => "Whether to send the process into the background. This defaults to true on POSIX systems,
|
208
|
+
and to false on Windows (where Puppet currently cannot daemonize).",
|
209
|
+
:short => "D",
|
210
|
+
:hook => proc do |value|
|
211
|
+
if value and Puppet.features.microsoft_windows?
|
212
|
+
raise "Cannot daemonize on Windows"
|
213
|
+
end
|
128
214
|
end
|
129
215
|
},
|
130
|
-
:maximum_uid =>
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
216
|
+
:maximum_uid => {
|
217
|
+
:default => 4294967290,
|
218
|
+
:desc => "The maximum allowed UID. Some platforms use negative UIDs\n" +
|
219
|
+
"but then ship with tools that do not know how to handle signed ints, so the UIDs show up as\n" +
|
220
|
+
"huge numbers that can then not be fed back into the system. This is a hackish way to fail in a\n" +
|
221
|
+
"slightly more useful way when that happens.",
|
222
|
+
},
|
223
|
+
:route_file => {
|
224
|
+
:default => "$confdir/routes.yaml",
|
225
|
+
:desc => "The YAML file containing indirector route configuration.",
|
226
|
+
},
|
227
|
+
:node_terminus => {
|
228
|
+
:default => "plain",
|
229
|
+
:desc => "Where to find information about nodes.",
|
230
|
+
},
|
231
|
+
:data_binding_terminus => {
|
232
|
+
:default => "hiera",
|
233
|
+
:desc => "Where to retrive information about data.",
|
234
|
+
},
|
235
|
+
:hiera_config => {
|
236
|
+
:default => "$confdir/hiera.yaml",
|
237
|
+
:desc => "The hiera configuration file",
|
238
|
+
:type => :file,
|
239
|
+
},
|
240
|
+
:catalog_terminus => {
|
241
|
+
:default => "compiler",
|
242
|
+
:desc => "Where to get node catalogs. This is useful to change if, for instance,
|
243
|
+
you'd like to pre-compile catalogs and store them in memcached or some other easily-accessed store.",
|
244
|
+
},
|
138
245
|
:facts_terminus => {
|
139
|
-
:default =>
|
246
|
+
:default => 'facter',
|
140
247
|
:desc => "The node facts terminus.",
|
141
248
|
:hook => proc do |value|
|
142
249
|
require 'puppet/node/facts'
|
@@ -146,86 +253,132 @@ module Puppet
|
|
146
253
|
end
|
147
254
|
end
|
148
255
|
},
|
149
|
-
:inventory_terminus =>
|
150
|
-
|
151
|
-
:
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
256
|
+
:inventory_terminus => {
|
257
|
+
:default => "$facts_terminus",
|
258
|
+
:desc => "Should usually be the same as the facts terminus",
|
259
|
+
},
|
260
|
+
:default_file_terminus => {
|
261
|
+
:default => "rest",
|
262
|
+
:desc => "The default source for files if no server is given in a
|
263
|
+
uri, e.g. puppet:///file. The default of `rest` causes the file to be
|
264
|
+
retrieved using the `server` setting. When running `apply` the default
|
265
|
+
is `file_server`, causing requests to be filled locally."
|
266
|
+
},
|
267
|
+
:httplog => {
|
268
|
+
:default => "$logdir/http.log",
|
269
|
+
:type => :file,
|
270
|
+
:owner => "root",
|
271
|
+
:mode => 0640,
|
272
|
+
:desc => "Where the puppet agent web server logs.",
|
273
|
+
},
|
274
|
+
:http_proxy_host => {
|
275
|
+
:default => "none",
|
276
|
+
:desc => "The HTTP proxy host to use for outgoing connections. Note: You
|
277
|
+
may need to use a FQDN for the server hostname when using a proxy.",
|
278
|
+
},
|
279
|
+
:http_proxy_port => {
|
280
|
+
:default => 3128,
|
281
|
+
:desc => "The HTTP proxy port to use for outgoing connections",
|
282
|
+
},
|
283
|
+
:filetimeout => {
|
284
|
+
:default => 15,
|
285
|
+
:desc => "The minimum time to wait (in seconds) between checking for updates in
|
161
286
|
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 =>
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
:
|
169
|
-
|
170
|
-
:
|
171
|
-
|
172
|
-
|
173
|
-
|
287
|
+
a file (such as manifests or templates) has changed on disk.",
|
288
|
+
},
|
289
|
+
:queue_type => {
|
290
|
+
:default => "stomp",
|
291
|
+
:desc => "Which type of queue to use for asynchronous processing.",
|
292
|
+
},
|
293
|
+
:queue_type => {
|
294
|
+
:default => "stomp",
|
295
|
+
:desc => "Which type of queue to use for asynchronous processing.",
|
296
|
+
},
|
297
|
+
:queue_source => {
|
298
|
+
:default => "stomp://localhost:61613/",
|
299
|
+
:desc => "Which type of queue to use for asynchronous processing. If your stomp server requires
|
300
|
+
authentication, you can include it in the URI as long as your stomp client library is at least 1.1.1",
|
301
|
+
},
|
302
|
+
:async_storeconfigs => {
|
303
|
+
:default => false,
|
304
|
+
:type => :boolean,
|
305
|
+
:desc => "Whether to use a queueing system to provide asynchronous database integration.
|
306
|
+
Requires that `puppet queue` be running and that 'PSON' support for ruby be installed.",
|
307
|
+
:hook => proc do |value|
|
308
|
+
if value
|
309
|
+
# This reconfigures the terminii for Node, Facts, and Catalog
|
310
|
+
Puppet.settings[:storeconfigs] = true
|
174
311
|
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
312
|
+
# But then we modify the configuration
|
313
|
+
Puppet::Resource::Catalog.indirection.cache_class = :queue
|
314
|
+
else
|
315
|
+
raise "Cannot disable asynchronous storeconfigs in a running process"
|
316
|
+
end
|
179
317
|
end
|
180
|
-
end
|
181
318
|
},
|
182
|
-
:thin_storeconfigs => {
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
319
|
+
:thin_storeconfigs => {
|
320
|
+
:default => false,
|
321
|
+
:type => :boolean,
|
322
|
+
:desc =>
|
323
|
+
"Boolean; whether Puppet should store only facts and exported resources in the storeconfigs
|
324
|
+
database. This will improve the performance of exported resources with the older
|
325
|
+
`active_record` backend, but will disable external tools that search the storeconfigs database.
|
326
|
+
Thinning catalogs is generally unnecessary when using PuppetDB to store catalogs.",
|
327
|
+
:hook => proc do |value|
|
188
328
|
Puppet.settings[:storeconfigs] = true if value
|
189
329
|
end
|
190
330
|
},
|
191
|
-
:config_version =>
|
331
|
+
:config_version => {
|
332
|
+
:default => "",
|
333
|
+
:desc => "How to determine the configuration version. By default, it will be the
|
192
334
|
time that the configuration is parsed, but you can provide a shell script to override how the
|
193
335
|
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
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
336
|
+
reports, allowing you to correlate changes on your hosts to the source version on the server.",
|
337
|
+
},
|
338
|
+
:zlib => {
|
339
|
+
:default => true,
|
340
|
+
:type => :boolean,
|
341
|
+
:desc => "Boolean; whether to use the zlib library",
|
342
|
+
},
|
343
|
+
:prerun_command => {
|
344
|
+
:default => "",
|
345
|
+
:desc => "A command to run before every agent run. If this command returns a non-zero
|
346
|
+
return code, the entire Puppet run will fail.",
|
347
|
+
},
|
348
|
+
:postrun_command => {
|
349
|
+
:default => "",
|
350
|
+
:desc => "A command to run after every agent run. If this command returns a non-zero
|
201
351
|
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
|
-
|
204
|
-
|
205
|
-
|
352
|
+
performed work during the normal run.",
|
353
|
+
},
|
354
|
+
:freeze_main => {
|
355
|
+
:default => false,
|
356
|
+
:type => :boolean,
|
357
|
+
:desc => "Freezes the 'main' class, disallowing any code to be added to it. This\n" +
|
358
|
+
"essentially means that you can't have any code outside of a node, class, or definition other\n" +
|
359
|
+
"than in the site manifest.",
|
360
|
+
}
|
206
361
|
)
|
207
|
-
Puppet.
|
208
|
-
:module_repository =>
|
209
|
-
|
362
|
+
Puppet.define_settings(:module_tool,
|
363
|
+
:module_repository => {
|
364
|
+
:default => 'https://forge.puppetlabs.com',
|
365
|
+
:desc => "The module repository",
|
366
|
+
},
|
367
|
+
:module_working_dir => {
|
368
|
+
:default => '$vardir/puppet-module',
|
369
|
+
:desc => "The directory into which module tool data is stored",
|
370
|
+
}
|
210
371
|
)
|
211
372
|
|
212
|
-
|
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(
|
373
|
+
Puppet.define_settings(
|
222
374
|
:main,
|
223
375
|
|
224
376
|
# We have to downcase the fqdn, because the current ssl stuff (as oppsed to in master) doesn't have good facilities for
|
225
377
|
# manipulating naming.
|
226
|
-
:certname => {
|
378
|
+
:certname => {
|
379
|
+
:default => Puppet::Settings.default_certname.downcase, :desc => "The name to use when handling certificates. Defaults
|
227
380
|
to the fully qualified domain name.",
|
228
|
-
:
|
381
|
+
:call_hook => :on_define_and_write, # Call our hook with the default value, so we're always downcased
|
229
382
|
:hook => proc { |value| raise(ArgumentError, "Certificate names must be lower case; see #1168") unless value == value.downcase }},
|
230
383
|
:certdnsnames => {
|
231
384
|
:default => '',
|
@@ -281,164 +434,262 @@ EOT
|
|
281
434
|
},
|
282
435
|
:certdir => {
|
283
436
|
:default => "$ssldir/certs",
|
437
|
+
:type => :directory,
|
284
438
|
:owner => "service",
|
285
439
|
:desc => "The certificate directory."
|
286
440
|
},
|
287
441
|
:ssldir => {
|
288
442
|
:default => "$confdir/ssl",
|
443
|
+
:type => :directory,
|
289
444
|
:mode => 0771,
|
290
445
|
:owner => "service",
|
291
446
|
:desc => "Where SSL certificates are kept."
|
292
447
|
},
|
293
448
|
:publickeydir => {
|
294
449
|
:default => "$ssldir/public_keys",
|
450
|
+
:type => :directory,
|
295
451
|
:owner => "service",
|
296
452
|
:desc => "The public key directory."
|
297
453
|
},
|
298
454
|
:requestdir => {
|
299
455
|
:default => "$ssldir/certificate_requests",
|
456
|
+
:type => :directory,
|
300
457
|
:owner => "service",
|
301
458
|
:desc => "Where host certificate requests are stored."
|
302
459
|
},
|
303
|
-
:privatekeydir => {
|
460
|
+
:privatekeydir => {
|
461
|
+
:default => "$ssldir/private_keys",
|
462
|
+
:type => :directory,
|
304
463
|
:mode => 0750,
|
305
464
|
:owner => "service",
|
306
465
|
:desc => "The private key directory."
|
307
466
|
},
|
308
|
-
:privatedir => {
|
467
|
+
:privatedir => {
|
468
|
+
:default => "$ssldir/private",
|
469
|
+
:type => :directory,
|
309
470
|
:mode => 0750,
|
310
471
|
:owner => "service",
|
311
472
|
:desc => "Where the client stores private certificate information."
|
312
473
|
},
|
313
|
-
:passfile => {
|
474
|
+
:passfile => {
|
475
|
+
:default => "$privatedir/password",
|
476
|
+
:type => :file,
|
314
477
|
:mode => 0640,
|
315
478
|
:owner => "service",
|
316
479
|
:desc => "Where puppet agent stores the password for its private key.
|
317
480
|
Generally unused."
|
318
481
|
},
|
319
|
-
:hostcsr => {
|
482
|
+
:hostcsr => {
|
483
|
+
:default => "$ssldir/csr_$certname.pem",
|
484
|
+
:type => :file,
|
320
485
|
:mode => 0644,
|
321
486
|
:owner => "service",
|
322
487
|
:desc => "Where individual hosts store and look for their certificate requests."
|
323
488
|
},
|
324
|
-
:hostcert => {
|
489
|
+
:hostcert => {
|
490
|
+
:default => "$certdir/$certname.pem",
|
491
|
+
:type => :file,
|
325
492
|
:mode => 0644,
|
326
493
|
:owner => "service",
|
327
494
|
:desc => "Where individual hosts store and look for their certificates."
|
328
495
|
},
|
329
|
-
:hostprivkey => {
|
496
|
+
:hostprivkey => {
|
497
|
+
:default => "$privatekeydir/$certname.pem",
|
498
|
+
:type => :file,
|
330
499
|
:mode => 0600,
|
331
500
|
:owner => "service",
|
332
501
|
:desc => "Where individual hosts store and look for their private key."
|
333
502
|
},
|
334
|
-
:hostpubkey => {
|
503
|
+
:hostpubkey => {
|
504
|
+
:default => "$publickeydir/$certname.pem",
|
505
|
+
:type => :file,
|
335
506
|
:mode => 0644,
|
336
507
|
:owner => "service",
|
337
508
|
:desc => "Where individual hosts store and look for their public key."
|
338
509
|
},
|
339
|
-
:localcacert => {
|
510
|
+
:localcacert => {
|
511
|
+
:default => "$certdir/ca.pem",
|
512
|
+
:type => :file,
|
340
513
|
:mode => 0644,
|
341
514
|
:owner => "service",
|
342
515
|
:desc => "Where each client stores the CA certificate."
|
343
516
|
},
|
344
|
-
|
517
|
+
## JJM - The ssl_client_ca_chain setting is commented out because it is
|
518
|
+
# intended for (#3143) and is not expected to be used until CA chaining is
|
519
|
+
# supported.
|
520
|
+
# :ssl_client_ca_chain => {
|
521
|
+
# :type => :file,
|
522
|
+
# :mode => 0644,
|
523
|
+
# :owner => "service",
|
524
|
+
# :desc => "The list of CA certificate to complete the chain of trust to CA certificates \n" <<
|
525
|
+
# "listed in the ssl_client_ca_auth file."
|
526
|
+
# },
|
527
|
+
:ssl_client_ca_auth => {
|
528
|
+
:type => :file,
|
529
|
+
:mode => 0644,
|
530
|
+
:owner => "service",
|
531
|
+
:desc => "Certificate authorities who issue server certificates. SSL servers will not be \n" <<
|
532
|
+
"considered authentic unless they posses a certificate issued by an authority \n" <<
|
533
|
+
"listed in this file. If this setting has no value then the Puppet master's CA \n" <<
|
534
|
+
"certificate (localcacert) will be used."
|
535
|
+
},
|
536
|
+
## JJM - The ssl_server_ca_chain setting is commented out because it is
|
537
|
+
# intended for (#3143) and is not expected to be used until CA chaining is
|
538
|
+
# supported.
|
539
|
+
# :ssl_server_ca_chain => {
|
540
|
+
# :type => :file,
|
541
|
+
# :mode => 0644,
|
542
|
+
# :owner => "service",
|
543
|
+
# :desc => "The list of CA certificate to complete the chain of trust to CA certificates \n" <<
|
544
|
+
# "listed in the ssl_server_ca_auth file."
|
545
|
+
# },
|
546
|
+
:ssl_server_ca_auth => {
|
547
|
+
:type => :file,
|
548
|
+
:mode => 0644,
|
549
|
+
:owner => "service",
|
550
|
+
:desc => "Certificate authorities who issue client certificates. SSL clients will not be \n" <<
|
551
|
+
"considered authentic unless they posses a certificate issued by an authority \n" <<
|
552
|
+
"listed in this file. If this setting has no value then the Puppet master's CA \n" <<
|
553
|
+
"certificate (localcacert) will be used."
|
554
|
+
},
|
555
|
+
:hostcrl => {
|
556
|
+
:default => "$ssldir/crl.pem",
|
557
|
+
:type => :file,
|
345
558
|
:mode => 0644,
|
346
559
|
:owner => "service",
|
347
560
|
:desc => "Where the host's certificate revocation list can be found.
|
348
561
|
This is distinct from the certificate authority's CRL."
|
349
562
|
},
|
350
|
-
:certificate_revocation =>
|
351
|
-
|
563
|
+
:certificate_revocation => {
|
564
|
+
:default => true,
|
565
|
+
:type => :boolean,
|
566
|
+
:desc => "Whether certificate revocation should be supported by downloading a Certificate Revocation List (CRL)
|
567
|
+
to all clients. If enabled, CA chaining will almost definitely not work.",
|
568
|
+
}
|
352
569
|
)
|
353
570
|
|
354
|
-
|
571
|
+
define_settings(
|
355
572
|
:ca,
|
356
|
-
:ca_name =>
|
357
|
-
|
573
|
+
:ca_name => {
|
574
|
+
:default => "Puppet CA: $certname",
|
575
|
+
:desc => "The name to use the Certificate Authority certificate.",
|
576
|
+
},
|
577
|
+
:cadir => {
|
578
|
+
:default => "$ssldir/ca",
|
579
|
+
:type => :directory,
|
358
580
|
:owner => "service",
|
359
581
|
:group => "service",
|
360
582
|
:mode => 0770,
|
361
583
|
:desc => "The root directory for the certificate authority."
|
362
584
|
},
|
363
|
-
:cacert => {
|
585
|
+
:cacert => {
|
586
|
+
:default => "$cadir/ca_crt.pem",
|
587
|
+
:type => :file,
|
364
588
|
:owner => "service",
|
365
589
|
:group => "service",
|
366
590
|
:mode => 0660,
|
367
591
|
:desc => "The CA certificate."
|
368
592
|
},
|
369
|
-
:cakey => {
|
593
|
+
:cakey => {
|
594
|
+
:default => "$cadir/ca_key.pem",
|
595
|
+
:type => :file,
|
370
596
|
:owner => "service",
|
371
597
|
:group => "service",
|
372
598
|
:mode => 0660,
|
373
599
|
:desc => "The CA private key."
|
374
600
|
},
|
375
|
-
:capub => {
|
601
|
+
:capub => {
|
602
|
+
:default => "$cadir/ca_pub.pem",
|
603
|
+
:type => :file,
|
376
604
|
:owner => "service",
|
377
605
|
:group => "service",
|
378
606
|
:desc => "The CA public key."
|
379
607
|
},
|
380
|
-
:cacrl => {
|
608
|
+
:cacrl => {
|
609
|
+
:default => "$cadir/ca_crl.pem",
|
610
|
+
:type => :file,
|
381
611
|
:owner => "service",
|
382
612
|
:group => "service",
|
383
613
|
:mode => 0664,
|
384
614
|
|
385
615
|
: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
616
|
},
|
392
|
-
:caprivatedir => {
|
617
|
+
:caprivatedir => {
|
618
|
+
:default => "$cadir/private",
|
619
|
+
:type => :directory,
|
393
620
|
:owner => "service",
|
394
621
|
:group => "service",
|
395
622
|
:mode => 0770,
|
396
623
|
:desc => "Where the CA stores private certificate information."
|
397
624
|
},
|
398
|
-
:csrdir => {
|
625
|
+
:csrdir => {
|
626
|
+
:default => "$cadir/requests",
|
627
|
+
:type => :directory,
|
399
628
|
:owner => "service",
|
400
629
|
:group => "service",
|
401
630
|
:desc => "Where the CA stores certificate requests"
|
402
631
|
},
|
403
|
-
:signeddir => {
|
632
|
+
:signeddir => {
|
633
|
+
:default => "$cadir/signed",
|
634
|
+
:type => :directory,
|
404
635
|
:owner => "service",
|
405
636
|
:group => "service",
|
406
637
|
:mode => 0770,
|
407
638
|
:desc => "Where the CA stores signed certificates."
|
408
639
|
},
|
409
|
-
:capass => {
|
640
|
+
:capass => {
|
641
|
+
:default => "$caprivatedir/ca.pass",
|
642
|
+
:type => :file,
|
410
643
|
:owner => "service",
|
411
644
|
:group => "service",
|
412
645
|
:mode => 0660,
|
413
646
|
:desc => "Where the CA stores the password for the private key"
|
414
647
|
},
|
415
|
-
:serial => {
|
648
|
+
:serial => {
|
649
|
+
:default => "$cadir/serial",
|
650
|
+
:type => :file,
|
416
651
|
:owner => "service",
|
417
652
|
:group => "service",
|
418
653
|
:mode => 0644,
|
419
654
|
:desc => "Where the serial number for certificates is stored."
|
420
655
|
},
|
421
|
-
:autosign => {
|
656
|
+
:autosign => {
|
657
|
+
:default => "$confdir/autosign.conf",
|
658
|
+
:type => :file,
|
422
659
|
:mode => 0644,
|
423
660
|
:desc => "Whether to enable autosign. Valid values are true (which
|
424
661
|
autosigns any key request, and is a very bad idea), false (which
|
425
662
|
never autosigns any key request), and the path to a file, which
|
426
663
|
uses that configuration file to determine which keys to sign."},
|
427
|
-
:allow_duplicate_certs =>
|
428
|
-
|
429
|
-
|
430
|
-
|
431
|
-
|
664
|
+
:allow_duplicate_certs => {
|
665
|
+
:default => false,
|
666
|
+
:type => :boolean,
|
667
|
+
:desc => "Whether to allow a new certificate
|
668
|
+
request to overwrite an existing certificate.",
|
669
|
+
},
|
670
|
+
:ca_ttl => {
|
671
|
+
:default => "5y",
|
672
|
+
:desc => "The default TTL for new certificates; valid values
|
432
673
|
must be an integer, optionally followed by one of the units
|
433
674
|
'y' (years of 365 days), 'd' (days), 'h' (hours), or
|
434
|
-
's' (seconds). The unit defaults to seconds.
|
435
|
-
|
436
|
-
|
437
|
-
:ca_md =>
|
438
|
-
|
439
|
-
|
675
|
+
's' (seconds). The unit defaults to seconds. Examples are '3600'
|
676
|
+
(one hour) and '1825d', which is the same as '5y' (5 years) ",
|
677
|
+
},
|
678
|
+
:ca_md => {
|
679
|
+
:default => "md5",
|
680
|
+
:desc => "The type of hash used in certificates.",
|
681
|
+
},
|
682
|
+
:req_bits => {
|
683
|
+
:default => 4096,
|
684
|
+
:desc => "The bit length of the certificates.",
|
685
|
+
},
|
686
|
+
:keylength => {
|
687
|
+
:default => 4096,
|
688
|
+
:desc => "The bit length of keys.",
|
689
|
+
},
|
440
690
|
:cert_inventory => {
|
441
691
|
:default => "$cadir/inventory.txt",
|
692
|
+
:type => :file,
|
442
693
|
:mode => 0644,
|
443
694
|
:owner => "service",
|
444
695
|
:group => "service",
|
@@ -448,131 +699,224 @@ EOT
|
|
448
699
|
|
449
700
|
# Define the config default.
|
450
701
|
|
451
|
-
|
452
|
-
|
453
|
-
|
454
|
-
|
455
|
-
|
456
|
-
|
457
|
-
|
458
|
-
|
459
|
-
|
460
|
-
|
461
|
-
|
462
|
-
|
463
|
-
|
464
|
-
|
465
|
-
|
702
|
+
define_settings(:application,
|
703
|
+
:config_file_name => {
|
704
|
+
:type => :string,
|
705
|
+
:default => Puppet::Settings.default_config_file_name,
|
706
|
+
:desc => "The name of the puppet config file.",
|
707
|
+
},
|
708
|
+
:config => {
|
709
|
+
:type => :file,
|
710
|
+
:default => "$confdir/${config_file_name}",
|
711
|
+
:desc => "The configuration file for the current puppet application",
|
712
|
+
},
|
713
|
+
:pidfile => {
|
714
|
+
:type => :file,
|
715
|
+
:default => "$rundir/${run_mode}.pid",
|
716
|
+
:desc => "The pid file",
|
717
|
+
},
|
718
|
+
:bindaddress => {
|
719
|
+
:default => "",
|
720
|
+
:desc => "The address a listening server should bind to. Mongrel servers
|
721
|
+
default to 127.0.0.1 and WEBrick defaults to 0.0.0.0.",
|
722
|
+
},
|
723
|
+
:servertype => {
|
724
|
+
:default => "webrick", :desc => "The type of server to use. Currently supported
|
725
|
+
options are webrick and mongrel. If you use mongrel, you will need
|
726
|
+
a proxy in front of the process or processes, since Mongrel cannot
|
727
|
+
speak SSL.",
|
728
|
+
|
729
|
+
:call_hook => :on_define_and_write, # Call our hook with the default value, so we always get the correct bind address set.
|
730
|
+
:hook => proc { |value| value == "webrick" ? Puppet.settings[:bindaddress] = "0.0.0.0" : Puppet.settings[:bindaddress] = "127.0.0.1" if Puppet.settings[:bindaddress] == "" }
|
731
|
+
}
|
466
732
|
)
|
467
733
|
|
468
|
-
|
469
|
-
:user =>
|
470
|
-
|
471
|
-
|
472
|
-
|
473
|
-
:
|
734
|
+
define_settings(:master,
|
735
|
+
:user => {
|
736
|
+
:default => "puppet",
|
737
|
+
:desc => "The user puppet master should run as.",
|
738
|
+
},
|
739
|
+
:group => {
|
740
|
+
:default => "puppet",
|
741
|
+
:desc => "The group puppet master should run as.",
|
742
|
+
},
|
743
|
+
:manifestdir => {
|
744
|
+
:default => "$confdir/manifests",
|
745
|
+
:type => :directory,
|
746
|
+
:desc => "Where puppet master looks for its manifests.",
|
747
|
+
},
|
748
|
+
:manifest => {
|
749
|
+
:default => "$manifestdir/site.pp",
|
750
|
+
:type => :file,
|
751
|
+
:desc => "The entry-point manifest for puppet master.",
|
752
|
+
},
|
753
|
+
:code => {
|
754
|
+
:default => "",
|
755
|
+
:desc => "Code to parse directly. This is essentially only used
|
474
756
|
by `puppet`, and should only be set if you're writing your own Puppet
|
475
|
-
executable"
|
476
|
-
|
757
|
+
executable",
|
758
|
+
},
|
759
|
+
:masterlog => {
|
760
|
+
:default => "$logdir/puppetmaster.log",
|
761
|
+
:type => :file,
|
477
762
|
:owner => "service",
|
478
763
|
:group => "service",
|
479
764
|
:mode => 0660,
|
480
765
|
:desc => "Where puppet master logs. This is generally not used,
|
481
766
|
since syslog is the default log destination."
|
482
767
|
},
|
483
|
-
:masterhttplog => {
|
768
|
+
:masterhttplog => {
|
769
|
+
:default => "$logdir/masterhttp.log",
|
770
|
+
:type => :file,
|
484
771
|
:owner => "service",
|
485
772
|
:group => "service",
|
486
773
|
:mode => 0660,
|
487
774
|
:create => true,
|
488
775
|
:desc => "Where the puppet master web server logs."
|
489
776
|
},
|
490
|
-
:masterport =>
|
491
|
-
|
777
|
+
:masterport => {
|
778
|
+
:default => 8140,
|
779
|
+
:desc => "Which port puppet master listens on.",
|
780
|
+
},
|
781
|
+
:node_name => {
|
782
|
+
:default => "cert",
|
783
|
+
:desc => "How the puppet master determines the client's identity
|
492
784
|
and sets the 'hostname', 'fqdn' and 'domain' facts for use in the manifest,
|
493
785
|
in particular for determining which 'node' statement applies to the client.
|
494
786
|
Possible values are 'cert' (use the subject's CN in the client's
|
495
787
|
certificate) and 'facter' (use the hostname that the client
|
496
|
-
reported in its facts)"
|
788
|
+
reported in its facts)",
|
789
|
+
},
|
497
790
|
:bucketdir => {
|
498
791
|
:default => "$vardir/bucket",
|
792
|
+
:type => :directory,
|
499
793
|
:mode => 0750,
|
500
794
|
:owner => "service",
|
501
795
|
:group => "service",
|
502
796
|
:desc => "Where FileBucket files are stored."
|
503
797
|
},
|
504
|
-
:rest_authconfig =>
|
505
|
-
"
|
798
|
+
:rest_authconfig => {
|
799
|
+
:default => "$confdir/auth.conf",
|
800
|
+
:type => :file,
|
801
|
+
:desc => "The configuration file that defines the rights to the different
|
506
802
|
rest indirections. This can be used as a fine-grained
|
507
|
-
authorization system for `puppet master`."
|
508
|
-
|
509
|
-
:ca =>
|
803
|
+
authorization system for `puppet master`.",
|
804
|
+
},
|
805
|
+
:ca => {
|
806
|
+
:default => true,
|
807
|
+
:type => :boolean,
|
808
|
+
:desc => "Whether the master should function as a certificate authority.",
|
809
|
+
},
|
510
810
|
:modulepath => {
|
511
811
|
:default => "$confdir/modules#{File::PATH_SEPARATOR}/usr/share/puppet/modules",
|
512
|
-
:
|
513
|
-
:
|
812
|
+
:type => :path,
|
813
|
+
:desc => "The search path for modules, as a list of directories separated by the system path separator character. " +
|
814
|
+
"(The POSIX path separator is ':', and the Windows path separator is ';'.)",
|
514
815
|
},
|
515
|
-
:ssl_client_header =>
|
816
|
+
:ssl_client_header => {
|
817
|
+
:default => "HTTP_X_CLIENT_DN",
|
818
|
+
:desc => "The header containing an authenticated
|
516
819
|
client's SSL DN. Only used with Mongrel. This header must be set by the proxy
|
517
820
|
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
|
-
|
821
|
+
See http://projects.puppetlabs.com/projects/puppet/wiki/Using_Mongrel for more information.",
|
822
|
+
},
|
823
|
+
:ssl_client_verify_header => {
|
824
|
+
:default => "HTTP_X_CLIENT_VERIFY",
|
825
|
+
:desc => "The header containing the status
|
520
826
|
message of the client verification. Only used with Mongrel. This header must be set by the proxy
|
521
827
|
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."
|
828
|
+
See http://projects.puppetlabs.com/projects/puppet/wiki/Using_Mongrel for more information.",
|
829
|
+
},
|
523
830
|
# To make sure this directory is created before we try to use it on the server, we need
|
524
831
|
# it to be in the server section (#1138).
|
525
|
-
:yamldir => {
|
832
|
+
:yamldir => {
|
833
|
+
:default => "$vardir/yaml",
|
834
|
+
:type => :directory,
|
835
|
+
:owner => "service",
|
836
|
+
:group => "service",
|
837
|
+
:mode => "750",
|
526
838
|
:desc => "The directory in which YAML data is stored, usually in a subdirectory."},
|
527
|
-
:server_datadir => {
|
839
|
+
:server_datadir => {
|
840
|
+
:default => "$vardir/server_data",
|
841
|
+
:type => :directory,
|
842
|
+
:owner => "service",
|
843
|
+
:group => "service",
|
844
|
+
:mode => "750",
|
528
845
|
:desc => "The directory in which serialized data is stored, usually in a subdirectory."},
|
529
|
-
:reports =>
|
530
|
-
"
|
531
|
-
|
532
|
-
|
533
|
-
|
534
|
-
|
846
|
+
:reports => {
|
847
|
+
:default => "store",
|
848
|
+
:desc => "The list of reports to generate. All reports are looked for
|
849
|
+
in `puppet/reports/name.rb`, and multiple report names should be
|
850
|
+
comma-separated (whitespace is okay).",
|
851
|
+
},
|
852
|
+
:reportdir => {
|
853
|
+
:default => "$vardir/reports",
|
854
|
+
:type => :directory,
|
535
855
|
:mode => 0750,
|
536
856
|
:owner => "service",
|
537
857
|
:group => "service",
|
538
858
|
:desc => "The directory in which to store reports
|
539
859
|
received from the client. Each client gets a separate
|
540
860
|
subdirectory."},
|
541
|
-
:reporturl =>
|
542
|
-
"
|
543
|
-
|
544
|
-
|
545
|
-
|
546
|
-
|
861
|
+
:reporturl => {
|
862
|
+
:default => "http://localhost:3000/reports/upload",
|
863
|
+
:desc => "The URL used by the http reports processor to send reports",
|
864
|
+
},
|
865
|
+
:fileserverconfig => {
|
866
|
+
:default => "$confdir/fileserver.conf",
|
867
|
+
:type => :file,
|
868
|
+
:desc => "Where the fileserver configuration is stored.",
|
869
|
+
},
|
870
|
+
:strict_hostname_checking => {
|
871
|
+
:default => false,
|
872
|
+
:desc => "Whether to only search for the complete
|
873
|
+
hostname as it is in the certificate when searching for node information
|
874
|
+
in the catalogs.",
|
875
|
+
}
|
547
876
|
)
|
548
877
|
|
549
|
-
|
550
|
-
:rrddir => {
|
551
|
-
:
|
552
|
-
:
|
553
|
-
:
|
554
|
-
:
|
878
|
+
define_settings(:metrics,
|
879
|
+
:rrddir => {
|
880
|
+
:type => :directory,
|
881
|
+
:default => "$vardir/rrd",
|
882
|
+
:mode => 0750,
|
883
|
+
:owner => "service",
|
884
|
+
:group => "service",
|
885
|
+
:desc => "The directory where RRD database files are stored.
|
555
886
|
Directories for each reporting host will be created under
|
556
887
|
this directory."
|
557
888
|
},
|
558
|
-
:rrdinterval =>
|
559
|
-
|
889
|
+
:rrdinterval => {
|
890
|
+
:default => "$runinterval",
|
891
|
+
:desc => "How often RRD should expect data.
|
892
|
+
This should match how often the hosts report back to the server.",
|
893
|
+
}
|
560
894
|
)
|
561
895
|
|
562
|
-
|
563
|
-
:devicedir => {
|
564
|
-
|
896
|
+
define_settings(:device,
|
897
|
+
:devicedir => {
|
898
|
+
:default => "$vardir/devices",
|
899
|
+
:type => :directory,
|
900
|
+
:mode => "750",
|
901
|
+
:desc => "The root directory of devices' $vardir",
|
902
|
+
},
|
903
|
+
:deviceconfig => {
|
904
|
+
:default => "$confdir/device.conf",
|
905
|
+
:desc => "Path to the device config file for puppet device",
|
906
|
+
}
|
565
907
|
)
|
566
908
|
|
567
|
-
|
568
|
-
:node_name_value => {
|
909
|
+
define_settings(:agent,
|
910
|
+
:node_name_value => {
|
911
|
+
:default => "$certname",
|
569
912
|
:desc => "The explicit value used for the node name for all requests the agent
|
570
913
|
makes to the master. WARNING: This setting is mutually exclusive with
|
571
914
|
node_name_fact. Changing this setting also requires changes to the default
|
572
915
|
auth.conf configuration on the Puppet Master. Please see
|
573
916
|
http://links.puppetlabs.com/node_name_value for more information."
|
574
917
|
},
|
575
|
-
:node_name_fact => {
|
918
|
+
:node_name_fact => {
|
919
|
+
:default => "",
|
576
920
|
:desc => "The fact name used to determine the node name used for all requests the agent
|
577
921
|
makes to the master. WARNING: This setting is mutually exclusive with
|
578
922
|
node_name_value. Changing this setting also requires changes to the default
|
@@ -584,57 +928,111 @@ EOT
|
|
584
928
|
end
|
585
929
|
end
|
586
930
|
},
|
587
|
-
:localconfig => {
|
931
|
+
:localconfig => {
|
932
|
+
:default => "$statedir/localconfig",
|
933
|
+
:type => :file,
|
588
934
|
:owner => "root",
|
589
935
|
:mode => 0660,
|
590
936
|
:desc => "Where puppet agent caches the local configuration. An
|
591
937
|
extension indicating the cache format is added automatically."},
|
592
|
-
:statefile => {
|
938
|
+
:statefile => {
|
939
|
+
:default => "$statedir/state.yaml",
|
940
|
+
:type => :file,
|
593
941
|
:mode => 0660,
|
594
942
|
:desc => "Where puppet agent and puppet master store state associated
|
595
943
|
with the running configuration. In the case of puppet master,
|
596
944
|
this file reflects the state discovered through interacting
|
597
945
|
with clients."
|
598
946
|
},
|
599
|
-
:clientyamldir => {
|
600
|
-
|
601
|
-
|
947
|
+
:clientyamldir => {
|
948
|
+
:default => "$vardir/client_yaml",
|
949
|
+
:type => :directory,
|
950
|
+
:mode => "750",
|
951
|
+
:desc => "The directory in which client-side YAML data is stored."
|
952
|
+
},
|
953
|
+
:client_datadir => {
|
954
|
+
:default => "$vardir/client_data",
|
955
|
+
:type => :directory,
|
956
|
+
:mode => "750",
|
957
|
+
:desc => "The directory in which serialized data is stored on the client."
|
958
|
+
},
|
959
|
+
:classfile => {
|
960
|
+
:default => "$statedir/classes.txt",
|
961
|
+
:type => :file,
|
602
962
|
:owner => "root",
|
603
963
|
:mode => 0640,
|
604
964
|
:desc => "The file in which puppet agent stores a list of the classes
|
605
965
|
associated with the retrieved configuration. Can be loaded in
|
606
966
|
the separate `puppet` executable using the `--loadclasses`
|
607
967
|
option."},
|
608
|
-
:resourcefile => {
|
968
|
+
:resourcefile => {
|
969
|
+
:default => "$statedir/resources.txt",
|
970
|
+
:type => :file,
|
609
971
|
:owner => "root",
|
610
972
|
:mode => 0640,
|
611
973
|
:desc => "The file in which puppet agent stores a list of the resources
|
612
974
|
associated with the retrieved configuration." },
|
613
|
-
:puppetdlog => {
|
975
|
+
:puppetdlog => {
|
976
|
+
:default => "$logdir/puppetd.log",
|
977
|
+
:type => :file,
|
614
978
|
:owner => "root",
|
615
979
|
:mode => 0640,
|
616
980
|
:desc => "The log file for puppet agent. This is generally not used."
|
617
981
|
},
|
618
|
-
:server =>
|
619
|
-
|
620
|
-
"
|
621
|
-
|
622
|
-
:
|
623
|
-
|
624
|
-
|
625
|
-
"
|
626
|
-
|
627
|
-
|
628
|
-
|
629
|
-
|
982
|
+
:server => {
|
983
|
+
:default => "puppet",
|
984
|
+
:desc => "The server to which the puppet agent should connect"
|
985
|
+
},
|
986
|
+
:use_srv_records => {
|
987
|
+
:default => false,
|
988
|
+
:type => :boolean,
|
989
|
+
:desc => "Whether the server will search for SRV records in DNS for the current domain.",
|
990
|
+
},
|
991
|
+
:srv_domain => {
|
992
|
+
:default => "#{Puppet::Settings.domain_fact}",
|
993
|
+
:desc => "The domain which will be queried to find the SRV records of servers to use.",
|
994
|
+
},
|
995
|
+
:ignoreschedules => {
|
996
|
+
:default => false,
|
997
|
+
:type => :boolean,
|
998
|
+
:desc => "Boolean; whether puppet agent should ignore schedules. This is useful
|
999
|
+
for initial puppet agent runs.",
|
1000
|
+
},
|
1001
|
+
:puppetport => {
|
1002
|
+
:default => 8139,
|
1003
|
+
:desc => "Which port puppet agent listens on.",
|
1004
|
+
},
|
1005
|
+
:noop => {
|
1006
|
+
:default => false,
|
1007
|
+
:type => :boolean,
|
1008
|
+
:desc => "Whether puppet agent should be run in noop mode.",
|
1009
|
+
},
|
1010
|
+
:runinterval => {
|
1011
|
+
:default => 1800, # 30 minutes
|
1012
|
+
:desc => "How often puppet agent applies the client configuration; in seconds.
|
1013
|
+
Note that a runinterval of 0 means \"run continuously\" rather than
|
1014
|
+
\"never run.\" If you want puppet agent to never run, you should start
|
1015
|
+
it with the `--no-client` option.",
|
1016
|
+
},
|
1017
|
+
:listen => {
|
1018
|
+
:default => false,
|
1019
|
+
:type => :boolean,
|
1020
|
+
:desc => "Whether puppet agent should listen for
|
630
1021
|
connections. If this is true, then puppet agent will accept incoming
|
631
1022
|
REST API requests, subject to the default ACLs and the ACLs set in
|
632
1023
|
the `rest_authconfig` file. Puppet agent can respond usefully to
|
633
|
-
requests on the `run`, `facts`, `certificate`, and `resource` endpoints."
|
634
|
-
|
1024
|
+
requests on the `run`, `facts`, `certificate`, and `resource` endpoints.",
|
1025
|
+
},
|
1026
|
+
:ca_server => {
|
1027
|
+
:default => "$server",
|
1028
|
+
:desc => "The server to use for certificate
|
635
1029
|
authority requests. It's a separate server because it cannot
|
636
|
-
and does not need to horizontally scale."
|
637
|
-
|
1030
|
+
and does not need to horizontally scale.",
|
1031
|
+
},
|
1032
|
+
:ca_port => {
|
1033
|
+
:default => "$masterport",
|
1034
|
+
:desc => "The port to use for the certificate authority.",
|
1035
|
+
},
|
638
1036
|
:catalog_format => {
|
639
1037
|
:default => "",
|
640
1038
|
:desc => "(Deprecated for 'preferred_serialization_format') What format to
|
@@ -642,271 +1040,418 @@ EOT
|
|
642
1040
|
matters on the client, since it asks the server for a specific format.",
|
643
1041
|
:hook => proc { |value|
|
644
1042
|
if value
|
645
|
-
Puppet.
|
1043
|
+
Puppet.deprecation_warning "Setting 'catalog_format' is deprecated; use 'preferred_serialization_format' instead."
|
646
1044
|
Puppet.settings[:preferred_serialization_format] = value
|
647
1045
|
end
|
648
1046
|
}
|
649
1047
|
},
|
650
|
-
:preferred_serialization_format =>
|
1048
|
+
:preferred_serialization_format => {
|
1049
|
+
:default => "pson",
|
1050
|
+
:desc => "The preferred means of serializing
|
651
1051
|
ruby instances for passing over the wire. This won't guarantee that all
|
652
1052
|
instances will be serialized using this method, since not all classes
|
653
1053
|
can be guaranteed to support this format, but it will be used for all
|
654
|
-
classes that support it."
|
655
|
-
|
656
|
-
|
657
|
-
:
|
1054
|
+
classes that support it.",
|
1055
|
+
},
|
1056
|
+
:agent_pidfile => {
|
1057
|
+
:default => "$statedir/agent.pid",
|
1058
|
+
:type => :file,
|
1059
|
+
:desc => "A lock file to indicate that a puppet agent run is currently in progress. File contains the pid of the running process.",
|
658
1060
|
},
|
659
|
-
:
|
660
|
-
|
1061
|
+
:agent_disabled_lockfile => {
|
1062
|
+
:default => "$statedir/agent_disabled.lock",
|
1063
|
+
:type => :file,
|
1064
|
+
:desc => "A lock file to indicate that puppet agent runs have been administratively disabled. File contains a JSON object with state information.",
|
1065
|
+
},
|
1066
|
+
:usecacheonfailure => {
|
1067
|
+
:default => true,
|
1068
|
+
:type => :boolean,
|
1069
|
+
:desc => "Whether to use the cached configuration when the remote
|
661
1070
|
configuration will not compile. This option is useful for testing
|
662
1071
|
new configurations, where you want to fix the broken configuration
|
663
|
-
rather than reverting to a known-good one."
|
664
|
-
|
665
|
-
:use_cached_catalog =>
|
666
|
-
|
1072
|
+
rather than reverting to a known-good one.",
|
1073
|
+
},
|
1074
|
+
:use_cached_catalog => {
|
1075
|
+
:default => false,
|
1076
|
+
:type => :boolean,
|
1077
|
+
:desc => "Whether to only use the cached catalog rather than compiling a new catalog
|
667
1078
|
on every run. Puppet can be run with this enabled by default and then selectively
|
668
|
-
disabled when a recompile is desired."
|
669
|
-
|
670
|
-
|
1079
|
+
disabled when a recompile is desired.",
|
1080
|
+
},
|
1081
|
+
:ignorecache => {
|
1082
|
+
:default => false,
|
1083
|
+
:type => :boolean,
|
1084
|
+
:desc => "Ignore cache and always recompile the configuration. This is
|
671
1085
|
useful for testing new configurations, where the local cache may in
|
672
1086
|
fact be stale even if the timestamps are up to date - if the facts
|
673
|
-
change or if the server changes."
|
674
|
-
|
675
|
-
:
|
676
|
-
|
677
|
-
"Facts that are dynamic; these facts will be ignored when deciding whether
|
1087
|
+
change or if the server changes.",
|
1088
|
+
},
|
1089
|
+
:dynamicfacts => {
|
1090
|
+
:default => "memorysize,memoryfree,swapsize,swapfree",
|
1091
|
+
:desc => "Facts that are dynamic; these facts will be ignored when deciding whether
|
678
1092
|
changed facts should result in a recompile. Multiple facts should be
|
679
|
-
comma-separated."
|
680
|
-
|
681
|
-
|
682
|
-
|
683
|
-
|
684
|
-
"
|
685
|
-
|
1093
|
+
comma-separated.",
|
1094
|
+
},
|
1095
|
+
:splaylimit => {
|
1096
|
+
:default => "$runinterval",
|
1097
|
+
:desc => "The maximum time to delay before runs. Defaults to being the same as the
|
1098
|
+
run interval.",
|
1099
|
+
},
|
1100
|
+
:splay => {
|
1101
|
+
:default => false,
|
1102
|
+
:type => :boolean,
|
1103
|
+
:desc => "Whether to sleep for a pseudo-random (but consistent) amount of time before
|
1104
|
+
a run.",
|
1105
|
+
},
|
686
1106
|
:clientbucketdir => {
|
687
|
-
:default
|
688
|
-
:
|
689
|
-
:
|
1107
|
+
:default => "$vardir/clientbucket",
|
1108
|
+
:type => :directory,
|
1109
|
+
:mode => 0750,
|
1110
|
+
:desc => "Where FileBucket files are stored locally."
|
690
1111
|
},
|
691
|
-
:configtimeout =>
|
692
|
-
|
1112
|
+
:configtimeout => {
|
1113
|
+
:default => 120,
|
1114
|
+
:desc => "How long the client should wait for the configuration to be retrieved
|
693
1115
|
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
|
1116
|
+
many clients contact the server at one time.",
|
703
1117
|
},
|
704
|
-
:report_server =>
|
705
|
-
"
|
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."
|
1118
|
+
:report_server => {
|
1119
|
+
:default => "$server",
|
1120
|
+
:desc => "The server to send transaction reports to.",
|
722
1121
|
},
|
723
|
-
:
|
724
|
-
:
|
725
|
-
:desc
|
1122
|
+
:report_port => {
|
1123
|
+
:default => "$masterport",
|
1124
|
+
:desc => "The port to communicate with the report_server.",
|
726
1125
|
},
|
727
|
-
:
|
1126
|
+
:inventory_server => {
|
1127
|
+
:default => "$server",
|
1128
|
+
:desc => "The server to send facts to.",
|
1129
|
+
},
|
1130
|
+
:inventory_port => {
|
1131
|
+
:default => "$masterport",
|
1132
|
+
:desc => "The port to communicate with the inventory_server.",
|
1133
|
+
},
|
1134
|
+
:report => {
|
1135
|
+
:default => true,
|
1136
|
+
:type => :boolean,
|
1137
|
+
:desc => "Whether to send reports after every transaction.",
|
1138
|
+
},
|
1139
|
+
:lastrunfile => {
|
1140
|
+
:default => "$statedir/last_run_summary.yaml",
|
1141
|
+
:type => :file,
|
1142
|
+
:mode => 0644,
|
1143
|
+
:desc => "Where puppet agent stores the last run report summary in yaml format."
|
1144
|
+
},
|
1145
|
+
:lastrunreport => {
|
1146
|
+
:default => "$statedir/last_run_report.yaml",
|
1147
|
+
:type => :file,
|
1148
|
+
:mode => 0640,
|
1149
|
+
:desc => "Where puppet agent stores the last run report in yaml format."
|
1150
|
+
},
|
1151
|
+
:graph => {
|
1152
|
+
:default => false,
|
1153
|
+
:type => :boolean,
|
1154
|
+
:desc => "Whether to create dot graph files for the different
|
728
1155
|
configuration graphs. These dot files can be interpreted by tools
|
729
|
-
like OmniGraffle or dot (which is part of ImageMagick)."
|
730
|
-
|
731
|
-
:
|
1156
|
+
like OmniGraffle or dot (which is part of ImageMagick).",
|
1157
|
+
},
|
1158
|
+
:graphdir => {
|
1159
|
+
:default => "$statedir/graphs",
|
1160
|
+
:type => :directory,
|
1161
|
+
:desc => "Where to store dot-outputted graphs.",
|
1162
|
+
},
|
1163
|
+
:http_compression => {
|
1164
|
+
:default => false,
|
1165
|
+
:type => :boolean,
|
1166
|
+
:desc => "Allow http compression in REST communication with the master.
|
732
1167
|
This setting might improve performance for agent -> master communications over slow WANs.
|
733
1168
|
Your puppet master needs to support compression (usually by activating some settings in a reverse-proxy
|
734
1169
|
in front of the puppet master, which rules out webrick).
|
735
1170
|
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."
|
1171
|
+
compression, but if it supports it, this setting might reduce performance on high-speed LANs.",
|
1172
|
+
},
|
1173
|
+
:waitforcert => {
|
1174
|
+
:default => 120, # 2 minutes
|
1175
|
+
:desc => "The time interval, specified in seconds, 'puppet agent' should connect to the server
|
1176
|
+
and ask it to sign a certificate request. This is useful for the initial setup of a
|
1177
|
+
puppet client. You can turn off waiting for certificates by specifying a time of 0.",
|
1178
|
+
}
|
737
1179
|
)
|
738
1180
|
|
739
|
-
|
740
|
-
|
741
|
-
|
1181
|
+
define_settings(:inspect,
|
1182
|
+
:archive_files => {
|
1183
|
+
:type => :boolean,
|
1184
|
+
:default => false,
|
1185
|
+
:desc => "During an inspect run, whether to archive files whose contents are audited to a file bucket.",
|
1186
|
+
},
|
1187
|
+
:archive_file_server => {
|
1188
|
+
:default => "$server",
|
1189
|
+
:desc => "During an inspect run, the file bucket server to archive files to if archive_files is set.",
|
1190
|
+
}
|
742
1191
|
)
|
743
1192
|
|
744
1193
|
# Plugin information.
|
745
1194
|
|
746
|
-
|
1195
|
+
define_settings(
|
747
1196
|
:main,
|
748
|
-
:plugindest =>
|
749
|
-
|
750
|
-
|
751
|
-
|
752
|
-
"
|
1197
|
+
:plugindest => {
|
1198
|
+
:type => :directory,
|
1199
|
+
:default => "$libdir",
|
1200
|
+
:desc => "Where Puppet should store plugins that it pulls down from the central
|
1201
|
+
server.",
|
1202
|
+
},
|
1203
|
+
:pluginsource => {
|
1204
|
+
:default => "puppet://$server/plugins",
|
1205
|
+
:desc => "From where to retrieve plugins. The standard Puppet `file` type
|
753
1206
|
is used for retrieval, so anything that is a valid file source can
|
754
|
-
be used here."
|
755
|
-
|
1207
|
+
be used here.",
|
1208
|
+
},
|
1209
|
+
:pluginsync => {
|
1210
|
+
:default => true,
|
1211
|
+
:type => :boolean,
|
1212
|
+
:desc => "Whether plugins should be synced with the central server.",
|
1213
|
+
},
|
756
1214
|
|
757
|
-
:pluginsignore =>
|
1215
|
+
:pluginsignore => {
|
1216
|
+
:default => ".svn CVS .git",
|
1217
|
+
:desc => "What files to ignore when pulling down plugins.",
|
1218
|
+
}
|
758
1219
|
)
|
759
1220
|
|
760
1221
|
# Central fact information.
|
761
1222
|
|
762
|
-
|
1223
|
+
define_settings(
|
763
1224
|
:main,
|
764
|
-
:factpath => {
|
765
|
-
:
|
1225
|
+
:factpath => {
|
1226
|
+
:type => :path,
|
1227
|
+
:default => "$vardir/lib/facter#{File::PATH_SEPARATOR}$vardir/facts",
|
1228
|
+
:desc => "Where Puppet should look for facts. Multiple directories should
|
766
1229
|
be separated by the system path separator character. (The POSIX path separator is ':', and the Windows path separator is ';'.)",
|
767
1230
|
|
768
|
-
:
|
769
|
-
:
|
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."]
|
1231
|
+
:call_hook => :on_initialize_and_write, # Call our hook with the default value, so we always get the value added to facter.
|
1232
|
+
:hook => proc { |value| Facter.search(value) if Facter.respond_to?(:search) }}
|
780
1233
|
)
|
781
1234
|
|
782
1235
|
|
783
|
-
|
1236
|
+
define_settings(
|
784
1237
|
:tagmail,
|
785
|
-
:tagmap =>
|
786
|
-
|
1238
|
+
:tagmap => {
|
1239
|
+
:default => "$confdir/tagmail.conf",
|
1240
|
+
:desc => "The mapping between reporting tags and email addresses.",
|
1241
|
+
},
|
1242
|
+
:sendmail => {
|
1243
|
+
:default => which('sendmail') || '',
|
1244
|
+
:desc => "Where to find the sendmail binary with which to send email.",
|
1245
|
+
},
|
787
1246
|
|
788
|
-
:reportfrom =>
|
789
|
-
|
1247
|
+
:reportfrom => {
|
1248
|
+
:default => "report@" + [Facter["hostname"].value,Facter["domain"].value].join("."),
|
1249
|
+
:desc => "The 'from' email address for the reports.",
|
1250
|
+
},
|
1251
|
+
|
1252
|
+
:smtpserver => {
|
1253
|
+
:default => "none",
|
1254
|
+
:desc => "The server through which to send email reports.",
|
1255
|
+
}
|
790
1256
|
)
|
791
1257
|
|
792
|
-
|
1258
|
+
define_settings(
|
793
1259
|
:rails,
|
794
|
-
:dblocation => {
|
795
|
-
:
|
796
|
-
:
|
797
|
-
:
|
798
|
-
:
|
1260
|
+
:dblocation => {
|
1261
|
+
:default => "$statedir/clientconfigs.sqlite3",
|
1262
|
+
:type => :file,
|
1263
|
+
:mode => 0660,
|
1264
|
+
:owner => "service",
|
1265
|
+
:group => "service",
|
1266
|
+
:desc => "The database cache for client configurations. Used for
|
799
1267
|
querying within the language."
|
800
1268
|
},
|
801
|
-
:dbadapter =>
|
802
|
-
|
803
|
-
|
804
|
-
|
805
|
-
|
806
|
-
|
807
|
-
|
808
|
-
|
809
|
-
|
810
|
-
:
|
811
|
-
|
812
|
-
|
813
|
-
|
814
|
-
:
|
815
|
-
|
816
|
-
|
817
|
-
|
818
|
-
|
819
|
-
|
820
|
-
:
|
1269
|
+
:dbadapter => {
|
1270
|
+
:default => "sqlite3",
|
1271
|
+
:desc => "The type of database to use.",
|
1272
|
+
},
|
1273
|
+
:dbmigrate => {
|
1274
|
+
:default => false,
|
1275
|
+
:type => :boolean,
|
1276
|
+
:desc => "Whether to automatically migrate the database.",
|
1277
|
+
},
|
1278
|
+
:dbname => {
|
1279
|
+
:default => "puppet",
|
1280
|
+
:desc => "The name of the database to use.",
|
1281
|
+
},
|
1282
|
+
:dbserver => {
|
1283
|
+
:default => "localhost",
|
1284
|
+
:desc => "The database server for caching. Only
|
1285
|
+
used when networked databases are used.",
|
1286
|
+
},
|
1287
|
+
:dbport => {
|
1288
|
+
:default => "",
|
1289
|
+
:desc => "The database password for caching. Only
|
1290
|
+
used when networked databases are used.",
|
1291
|
+
},
|
1292
|
+
:dbuser => {
|
1293
|
+
:default => "puppet",
|
1294
|
+
:desc => "The database user for caching. Only
|
1295
|
+
used when networked databases are used.",
|
1296
|
+
},
|
1297
|
+
:dbpassword => {
|
1298
|
+
:default => "puppet",
|
1299
|
+
:desc => "The database password for caching. Only
|
1300
|
+
used when networked databases are used.",
|
1301
|
+
},
|
1302
|
+
:dbconnections => {
|
1303
|
+
:default => '',
|
1304
|
+
:desc => "The number of database connections for networked
|
1305
|
+
databases. Will be ignored unless the value is a positive integer.",
|
1306
|
+
},
|
1307
|
+
:dbsocket => {
|
1308
|
+
:default => "",
|
1309
|
+
:desc => "The database socket location. Only used when networked
|
1310
|
+
databases are used. Will be ignored if the value is an empty string.",
|
1311
|
+
},
|
1312
|
+
:railslog => {
|
1313
|
+
:default => "$logdir/rails.log",
|
1314
|
+
:type => :file,
|
1315
|
+
:mode => 0600,
|
1316
|
+
:owner => "service",
|
1317
|
+
:group => "service",
|
1318
|
+
:desc => "Where Rails-specific logs are sent"
|
821
1319
|
},
|
822
1320
|
|
823
|
-
:rails_loglevel =>
|
824
|
-
|
825
|
-
|
1321
|
+
:rails_loglevel => {
|
1322
|
+
:default => "info",
|
1323
|
+
:desc => "The log level for Rails connections. The value must be
|
1324
|
+
a valid log level within Rails. Production environments normally use `info`
|
1325
|
+
and other environments normally use `debug`.",
|
1326
|
+
}
|
826
1327
|
)
|
827
1328
|
|
828
|
-
|
1329
|
+
define_settings(
|
829
1330
|
:couchdb,
|
830
1331
|
|
831
|
-
:couchdb_url =>
|
1332
|
+
:couchdb_url => {
|
1333
|
+
:default => "http://127.0.0.1:5984/puppet",
|
1334
|
+
:desc => "The url where the puppet couchdb database will be created",
|
1335
|
+
}
|
832
1336
|
)
|
833
1337
|
|
834
|
-
|
1338
|
+
define_settings(
|
835
1339
|
:transaction,
|
836
|
-
:tags =>
|
1340
|
+
:tags => {
|
1341
|
+
:default => "",
|
1342
|
+
:desc => "Tags to use to find resources. If this is set, then
|
837
1343
|
only resources tagged with the specified tags will be applied.
|
838
|
-
Values must be comma-separated."
|
839
|
-
|
1344
|
+
Values must be comma-separated.",
|
1345
|
+
},
|
1346
|
+
:evaltrace => {
|
1347
|
+
:default => false,
|
1348
|
+
:type => :boolean,
|
1349
|
+
:desc => "Whether each resource should log when it is
|
840
1350
|
being evaluated. This allows you to interactively see exactly
|
841
|
-
what is being done."
|
842
|
-
|
843
|
-
|
844
|
-
|
845
|
-
|
1351
|
+
what is being done.",
|
1352
|
+
},
|
1353
|
+
:summarize => {
|
1354
|
+
:default => false,
|
1355
|
+
:type => :boolean,
|
1356
|
+
:desc => "Whether to print a transaction summary.",
|
1357
|
+
}
|
846
1358
|
)
|
847
1359
|
|
848
|
-
|
1360
|
+
define_settings(
|
849
1361
|
:main,
|
850
|
-
:external_nodes =>
|
851
|
-
|
852
|
-
|
853
|
-
|
854
|
-
|
855
|
-
|
856
|
-
|
1362
|
+
:external_nodes => {
|
1363
|
+
:default => "none",
|
1364
|
+
:desc => "An external command that can produce node information. The command's output
|
1365
|
+
must be a YAML dump of a hash, and that hash must have a `classes` key and/or
|
1366
|
+
a `parameters` key, where `classes` is an array or hash and
|
1367
|
+
`parameters` is a hash. For unknown nodes, the command should
|
1368
|
+
exit with a non-zero exit code.
|
857
1369
|
|
858
|
-
|
859
|
-
|
1370
|
+
This command makes it straightforward to store your node mapping
|
1371
|
+
information in other data sources like databases.",
|
1372
|
+
}
|
1373
|
+
)
|
860
1374
|
|
861
|
-
|
1375
|
+
define_settings(
|
862
1376
|
:ldap,
|
863
|
-
:ldapnodes =>
|
864
|
-
|
865
|
-
|
866
|
-
|
867
|
-
|
1377
|
+
:ldapnodes => {
|
1378
|
+
:default => false,
|
1379
|
+
:type => :boolean,
|
1380
|
+
:desc => "Whether to search for node configurations in LDAP. See
|
1381
|
+
http://projects.puppetlabs.com/projects/puppet/wiki/LDAP_Nodes for more information.",
|
1382
|
+
},
|
1383
|
+
:ldapssl => {
|
1384
|
+
:default => false,
|
1385
|
+
:type => :boolean,
|
1386
|
+
:desc => "Whether SSL should be used when searching for nodes.
|
868
1387
|
Defaults to false because SSL usually requires certificates
|
869
|
-
to be set up on the client side."
|
870
|
-
|
871
|
-
|
1388
|
+
to be set up on the client side.",
|
1389
|
+
},
|
1390
|
+
:ldaptls => {
|
1391
|
+
:default => false,
|
1392
|
+
:type => :boolean,
|
1393
|
+
:desc => "Whether TLS should be used when searching for nodes.
|
872
1394
|
Defaults to false because TLS usually requires certificates
|
873
|
-
to be set up on the client side."
|
874
|
-
|
875
|
-
|
876
|
-
|
877
|
-
"The LDAP
|
878
|
-
|
879
|
-
:
|
880
|
-
|
881
|
-
|
882
|
-
|
883
|
-
|
884
|
-
:
|
885
|
-
"
|
1395
|
+
to be set up on the client side.",
|
1396
|
+
},
|
1397
|
+
:ldapserver => {
|
1398
|
+
:default => "ldap",
|
1399
|
+
:desc => "The LDAP server. Only used if `ldapnodes` is enabled.",
|
1400
|
+
},
|
1401
|
+
:ldapport => {
|
1402
|
+
:default => 389,
|
1403
|
+
:desc => "The LDAP port. Only used if `ldapnodes` is enabled.",
|
1404
|
+
},
|
1405
|
+
|
1406
|
+
:ldapstring => {
|
1407
|
+
:default => "(&(objectclass=puppetClient)(cn=%s))",
|
1408
|
+
:desc => "The search string used to find an LDAP node.",
|
1409
|
+
},
|
1410
|
+
:ldapclassattrs => {
|
1411
|
+
:default => "puppetclass",
|
1412
|
+
:desc => "The LDAP attributes to use to define Puppet classes. Values
|
1413
|
+
should be comma-separated.",
|
1414
|
+
},
|
1415
|
+
:ldapstackedattrs => {
|
1416
|
+
:default => "puppetvar",
|
1417
|
+
:desc => "The LDAP attributes that should be stacked to arrays by adding
|
886
1418
|
the values in all hierarchy elements of the tree. Values
|
887
|
-
should be comma-separated."
|
888
|
-
|
889
|
-
|
1419
|
+
should be comma-separated.",
|
1420
|
+
},
|
1421
|
+
:ldapattrs => {
|
1422
|
+
:default => "all",
|
1423
|
+
:desc => "The LDAP attributes to include when querying LDAP for nodes. All
|
890
1424
|
returned attributes are set as variables in the top-level scope.
|
891
1425
|
Multiple values should be comma-separated. The value 'all' returns
|
892
|
-
all attributes."
|
893
|
-
|
894
|
-
|
895
|
-
|
896
|
-
"The
|
897
|
-
|
898
|
-
:
|
899
|
-
|
900
|
-
"The
|
901
|
-
|
902
|
-
|
903
|
-
|
1426
|
+
all attributes.",
|
1427
|
+
},
|
1428
|
+
:ldapparentattr => {
|
1429
|
+
:default => "parentnode",
|
1430
|
+
:desc => "The attribute to use to define the parent node.",
|
1431
|
+
},
|
1432
|
+
:ldapuser => {
|
1433
|
+
:default => "",
|
1434
|
+
:desc => "The user to use to connect to LDAP. Must be specified as a
|
1435
|
+
full DN.",
|
1436
|
+
},
|
1437
|
+
:ldappassword => {
|
1438
|
+
:default => "",
|
1439
|
+
:desc => "The password to use to connect to LDAP.",
|
1440
|
+
},
|
1441
|
+
:ldapbase => {
|
1442
|
+
:default => "",
|
1443
|
+
:desc => "The search base for LDAP searches. It's impossible to provide
|
1444
|
+
a meaningful default here, although the LDAP libraries might
|
1445
|
+
have one already set. Generally, it should be the 'ou=Hosts'
|
1446
|
+
branch under your main directory.",
|
1447
|
+
}
|
904
1448
|
)
|
905
1449
|
|
906
|
-
|
1450
|
+
define_settings(:master,
|
907
1451
|
:storeconfigs => {
|
908
|
-
:default
|
909
|
-
:
|
1452
|
+
:default => false,
|
1453
|
+
:type => :boolean,
|
1454
|
+
:desc => "Whether to store each client's configuration, including catalogs, facts,
|
910
1455
|
and related data. This also enables the import and export of resources in
|
911
1456
|
the Puppet language - a mechanism for exchange resources between nodes.
|
912
1457
|
|
@@ -915,7 +1460,7 @@ the data; this, in turn, will depend on Rails being available.
|
|
915
1460
|
|
916
1461
|
You can adjust the backend using the storeconfigs_backend setting.",
|
917
1462
|
# Call our hook with the default value, so we always get the libdir set.
|
918
|
-
:
|
1463
|
+
:call_hook => :on_initialize_and_write,
|
919
1464
|
:hook => proc do |value|
|
920
1465
|
require 'puppet/node'
|
921
1466
|
require 'puppet/node/facts'
|
@@ -939,32 +1484,27 @@ database from within the Puppet Master process."
|
|
939
1484
|
|
940
1485
|
# This doesn't actually work right now.
|
941
1486
|
|
942
|
-
|
1487
|
+
define_settings(
|
943
1488
|
:parser,
|
944
1489
|
|
945
|
-
:lexical =>
|
946
|
-
|
947
|
-
|
948
|
-
|
949
|
-
|
950
|
-
|
951
|
-
|
952
|
-
|
953
|
-
|
954
|
-
|
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
|
1490
|
+
:lexical => {
|
1491
|
+
:default => false,
|
1492
|
+
:type => :boolean,
|
1493
|
+
:desc => "Whether to use lexical scoping (vs. dynamic).",
|
1494
|
+
},
|
1495
|
+
:templatedir => {
|
1496
|
+
:default => "$vardir/templates",
|
1497
|
+
:type => :directory,
|
1498
|
+
:desc => "Where Puppet looks for template files. Can be a list of colon-separated
|
1499
|
+
directories.",
|
964
1500
|
}
|
965
1501
|
)
|
966
|
-
|
1502
|
+
define_settings(
|
967
1503
|
:puppetdoc,
|
968
|
-
:document_all =>
|
1504
|
+
:document_all => {
|
1505
|
+
:default => false,
|
1506
|
+
:type => :boolean,
|
1507
|
+
:desc => "Document all resources",
|
1508
|
+
}
|
969
1509
|
)
|
970
1510
|
end
|