puppet 2.7.19 → 2.7.20.rc1
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/CONTRIBUTING.md +61 -238
- data/Gemfile +32 -0
- data/Gemfile.lock +44 -0
- data/LICENSE +1 -1
- data/README_DEVELOPER.md +300 -5
- data/Rakefile +41 -37
- data/ext/build_defaults.yaml +20 -0
- data/ext/debian/README.Debian +8 -0
- data/ext/debian/README.source +2 -0
- data/ext/debian/TODO.Debian +1 -0
- data/ext/debian/changelog.erb +1104 -0
- data/ext/debian/compat +1 -0
- data/ext/debian/control +142 -0
- data/ext/debian/copyright +361 -0
- data/ext/debian/docs +1 -0
- data/ext/debian/fileserver.conf +17 -0
- data/ext/debian/puppet-common.dirs +8 -0
- data/ext/debian/puppet-common.install +3 -0
- data/ext/debian/puppet-common.lintian-overrides +7 -0
- data/ext/debian/puppet-common.manpages +2 -0
- data/ext/debian/puppet-common.postinst +35 -0
- data/ext/debian/puppet-common.postrm +32 -0
- data/ext/debian/puppet-el.dirs +1 -0
- data/ext/debian/puppet-el.emacsen-install +25 -0
- data/ext/debian/puppet-el.emacsen-remove +11 -0
- data/ext/debian/puppet-el.emacsen-startup +9 -0
- data/ext/debian/puppet-el.install +1 -0
- data/ext/debian/puppet-testsuite.install +3 -0
- data/ext/debian/puppet-testsuite.lintian-overrides +4 -0
- data/ext/debian/puppet.NEWS +86 -0
- data/ext/debian/puppet.conf +14 -0
- data/ext/debian/puppet.default +7 -0
- data/ext/debian/puppet.dirs +1 -0
- data/ext/debian/puppet.init +118 -0
- data/ext/debian/puppet.install +4 -0
- data/ext/debian/puppet.lintian-overrides +3 -0
- data/ext/debian/puppet.logrotate +11 -0
- data/ext/debian/puppet.manpages +36 -0
- data/ext/debian/puppet.postinst +20 -0
- data/ext/debian/puppet.postrm +20 -0
- data/ext/debian/puppet.preinst +20 -0
- data/ext/debian/puppetmaster-common.install +5 -0
- data/ext/debian/puppetmaster-common.manpages +5 -0
- data/ext/debian/puppetmaster-common.puppetqd.default +27 -0
- data/ext/debian/puppetmaster-common.puppetqd.init +84 -0
- data/ext/debian/puppetmaster-passenger.dirs +4 -0
- data/ext/debian/puppetmaster-passenger.postinst +66 -0
- data/ext/debian/puppetmaster-passenger.postrm +33 -0
- data/ext/debian/puppetmaster.NEWS +13 -0
- data/ext/debian/puppetmaster.README.debian +16 -0
- data/ext/debian/puppetmaster.default +38 -0
- data/ext/debian/puppetmaster.dirs +1 -0
- data/ext/debian/puppetmaster.init +158 -0
- data/ext/debian/puppetmaster.install +1 -0
- data/ext/debian/puppetmaster.lintian-overrides +3 -0
- data/ext/debian/puppetmaster.manpages +1 -0
- data/ext/debian/puppetmaster.postinst +20 -0
- data/ext/debian/puppetmaster.postrm +5 -0
- data/ext/debian/puppetmaster.preinst +22 -0
- data/ext/debian/rules +127 -0
- data/ext/debian/source/format +1 -0
- data/ext/debian/source/options +1 -0
- data/ext/debian/vim-puppet.README.Debian +13 -0
- data/ext/debian/vim-puppet.dirs +3 -0
- data/ext/debian/vim-puppet.yaml +5 -0
- data/ext/debian/watch +2 -0
- data/ext/emacs/puppet-mode.el +1 -0
- data/{conf → ext}/osx/PackageInfo.plist +0 -0
- data/{conf → ext}/osx/createpackage.sh +0 -0
- data/ext/osx/file_mapping.yaml +38 -0
- data/ext/osx/preflight.erb +37 -0
- data/{tasks/rake/templates → ext/osx}/prototype.plist.erb +0 -0
- data/ext/packaging/README-Solaris.md +117 -0
- data/ext/packaging/README.md +255 -0
- data/ext/packaging/spec/spec_helper.rb +12 -0
- data/ext/packaging/spec/tasks/00_utils_spec.rb +66 -0
- data/ext/packaging/tasks/00_utils.rake +382 -0
- data/ext/packaging/tasks/10_setupvars.rake +71 -0
- data/ext/packaging/tasks/20_setupextravars.rake +25 -0
- data/ext/packaging/tasks/apple.rake +201 -0
- data/ext/packaging/tasks/clean.rake +5 -0
- data/ext/packaging/tasks/deb.rake +108 -0
- data/ext/packaging/tasks/doc.rake +20 -0
- data/ext/packaging/tasks/fetch.rake +18 -0
- data/ext/packaging/tasks/gem.rake +68 -0
- data/ext/packaging/tasks/ips.rake +80 -0
- data/ext/packaging/tasks/mock.rake +126 -0
- data/ext/packaging/tasks/pe_deb.rake +9 -0
- data/ext/packaging/tasks/pe_remote.rake +45 -0
- data/ext/packaging/tasks/pe_rpm.rake +21 -0
- data/ext/packaging/tasks/pe_ship.rake +30 -0
- data/ext/packaging/tasks/pe_sign.rake +27 -0
- data/ext/packaging/tasks/pe_sles.rake +96 -0
- data/ext/packaging/tasks/release.rake +73 -0
- data/ext/packaging/tasks/remote_build.rake +78 -0
- data/ext/packaging/tasks/rpm.rake +52 -0
- data/ext/packaging/tasks/ship.rake +78 -0
- data/ext/packaging/tasks/sign.rake +82 -0
- data/ext/packaging/tasks/tag.rake +8 -0
- data/ext/packaging/tasks/tar.rake +68 -0
- data/ext/packaging/tasks/template.rake +13 -0
- data/ext/packaging/tasks/update.rake +16 -0
- data/ext/packaging/tasks/version.rake +21 -0
- data/ext/project_data.yaml +24 -0
- data/{conf/redhat/puppet.spec → ext/redhat/puppet.spec.erb} +18 -10
- data/install.rb +8 -8
- data/lib/puppet.rb +2 -6
- data/lib/puppet/agent/locker.rb +2 -0
- data/lib/puppet/application.rb +1 -1
- data/lib/puppet/application/agent.rb +1 -1
- data/lib/puppet/application/apply.rb +1 -1
- data/lib/puppet/application/cert.rb +5 -6
- data/lib/puppet/application/describe.rb +1 -1
- data/lib/puppet/application/device.rb +1 -1
- data/lib/puppet/application/doc.rb +1 -1
- data/lib/puppet/application/filebucket.rb +1 -1
- data/lib/puppet/application/inspect.rb +1 -1
- data/lib/puppet/application/kick.rb +1 -1
- data/lib/puppet/application/master.rb +1 -1
- data/lib/puppet/application/resource.rb +1 -1
- data/lib/puppet/defaults.rb +21 -3
- data/lib/puppet/external/dot.rb +1 -1
- data/lib/puppet/face/help/global.erb +1 -1
- data/lib/puppet/face/module/install.rb +1 -1
- data/lib/puppet/face/module/list.rb +1 -1
- data/lib/puppet/face/module/uninstall.rb +1 -1
- data/lib/puppet/face/node/clean.rb +23 -18
- data/lib/puppet/face/parser.rb +11 -2
- data/lib/puppet/file_collection.rb +16 -27
- data/lib/puppet/file_collection/lookup.rb +6 -16
- data/lib/puppet/file_serving/base.rb +4 -4
- data/lib/puppet/indirector/catalog/static_compiler.rb +3 -4
- data/lib/puppet/indirector/certificate/disabled_ca.rb +22 -0
- data/lib/puppet/indirector/certificate_request/disabled_ca.rb +22 -0
- data/lib/puppet/indirector/certificate_revocation_list/disabled_ca.rb +22 -0
- data/lib/puppet/indirector/face.rb +2 -2
- data/lib/puppet/indirector/key/disabled_ca.rb +22 -0
- data/lib/puppet/indirector/node/exec.rb +13 -1
- data/lib/puppet/indirector/request.rb +4 -0
- data/lib/puppet/metatype/manager.rb +17 -10
- data/lib/puppet/network/authstore.rb +1 -1
- data/lib/puppet/network/rights.rb +1 -2
- data/lib/puppet/node/environment.rb +1 -0
- data/lib/puppet/parameter/value.rb +9 -3
- data/lib/puppet/parser/ast.rb +1 -4
- data/lib/puppet/parser/files.rb +1 -1
- data/lib/puppet/parser/functions.rb +68 -22
- data/lib/puppet/parser/functions/create_resources.rb +2 -3
- data/lib/puppet/parser/functions/shellquote.rb +21 -25
- data/lib/puppet/parser/lexer.rb +40 -6
- data/lib/puppet/parser/relationship.rb +3 -1
- data/lib/puppet/parser/resource.rb +2 -3
- data/lib/puppet/parser/resource/param.rb +3 -5
- data/lib/puppet/parser/scope.rb +7 -4
- data/lib/puppet/property.rb +5 -3
- data/lib/puppet/provider.rb +5 -5
- data/lib/puppet/provider/aixobject.rb +1 -1
- data/lib/puppet/provider/augeas/augeas.rb +1 -1
- data/lib/puppet/provider/exec/windows.rb +1 -1
- data/lib/puppet/provider/file/windows.rb +10 -29
- data/lib/puppet/provider/group/groupadd.rb +2 -3
- data/lib/puppet/provider/group/ldap.rb +1 -1
- data/lib/puppet/provider/group/windows_adsi.rb +1 -1
- data/lib/puppet/provider/ldap.rb +5 -1
- data/lib/puppet/provider/nameservice.rb +3 -3
- data/lib/puppet/provider/nameservice/directoryservice.rb +2 -2
- data/lib/puppet/provider/package/gem.rb +6 -2
- data/lib/puppet/provider/package/portage.rb +4 -2
- data/lib/puppet/provider/parsedfile.rb +1 -1
- data/lib/puppet/provider/scheduled_task/win32_taskscheduler.rb +2 -2
- data/lib/puppet/provider/service/base.rb +2 -41
- data/lib/puppet/provider/service/daemontools.rb +1 -1
- data/lib/puppet/provider/service/launchd.rb +1 -1
- data/lib/puppet/provider/service/redhat.rb +6 -5
- data/lib/puppet/provider/service/runit.rb +1 -1
- data/lib/puppet/provider/service/service.rb +43 -0
- data/lib/puppet/provider/service/windows.rb +1 -8
- data/lib/puppet/provider/user/user_role_add.rb +2 -1
- data/lib/puppet/provider/user/useradd.rb +8 -3
- data/lib/puppet/provider/user/windows_adsi.rb +12 -1
- data/lib/puppet/provider/zone/solaris.rb +1 -1
- data/lib/puppet/rails/inventory_node.rb +26 -13
- data/lib/puppet/reports.rb +1 -1
- data/lib/puppet/resource.rb +20 -5
- data/lib/puppet/resource/status.rb +1 -1
- data/lib/puppet/ssl/certificate_authority.rb +2 -0
- data/lib/puppet/ssl/host.rb +31 -6
- data/lib/puppet/test/test_helper.rb +3 -1
- data/lib/puppet/transaction/event.rb +1 -1
- data/lib/puppet/transaction/report.rb +2 -2
- data/lib/puppet/type.rb +30 -25
- data/lib/puppet/type/augeas.rb +1 -1
- data/lib/puppet/type/cron.rb +2 -2
- data/lib/puppet/type/exec.rb +6 -6
- data/lib/puppet/type/file.rb +5 -15
- data/lib/puppet/type/file/content.rb +1 -1
- 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 +6 -2
- data/lib/puppet/type/file/source.rb +1 -1
- data/lib/puppet/type/mount.rb +1 -1
- data/lib/puppet/type/package.rb +1 -1
- data/lib/puppet/type/schedule.rb +1 -1
- data/lib/puppet/type/scheduled_task.rb +1 -1
- data/lib/puppet/type/tidy.rb +1 -1
- data/lib/puppet/type/whit.rb +16 -9
- data/lib/puppet/util.rb +27 -11
- data/lib/puppet/util/adsi.rb +25 -23
- data/lib/puppet/util/autoload.rb +1 -1
- data/lib/puppet/util/classgen.rb +1 -1
- data/lib/puppet/util/feature.rb +3 -1
- data/lib/puppet/util/fileparsing.rb +9 -9
- data/lib/puppet/util/filetype.rb +55 -40
- data/lib/puppet/util/instance_loader.rb +5 -5
- data/lib/puppet/util/instrumentation.rb +3 -5
- data/lib/puppet/util/log_paths.rb +1 -3
- data/lib/puppet/util/monkey_patches.rb +34 -8
- data/lib/puppet/util/platform.rb +7 -0
- data/lib/puppet/util/posix.rb +3 -3
- data/lib/puppet/util/provider_features.rb +2 -3
- data/lib/puppet/util/rdoc.rb +4 -3
- data/lib/puppet/util/reference.rb +1 -1
- data/lib/puppet/util/selinux.rb +31 -36
- data/lib/puppet/util/tagging.rb +28 -6
- data/lib/puppet/util/windows.rb +1 -0
- data/lib/puppet/util/windows/error.rb +1 -1
- data/lib/puppet/util/windows/process.rb +3 -3
- data/lib/puppet/util/windows/security.rb +9 -46
- data/lib/puppet/util/windows/sid.rb +96 -0
- data/lib/puppet/util/windows/user.rb +65 -2
- data/lib/puppet/util/zaml.rb +109 -59
- data/lib/puppet/version.rb +18 -0
- data/spec/fixtures/unit/util/filetype/aixtab_output +44 -0
- data/spec/fixtures/unit/util/filetype/suntab_output +9 -0
- data/spec/integration/defaults_spec.rb +26 -7
- data/spec/integration/parser/functions_spec.rb +0 -4
- data/spec/integration/util/file_locking_spec.rb +1 -1
- data/spec/integration/util/windows/security_spec.rb +3 -23
- data/spec/lib/puppet_spec/files.rb +3 -3
- data/spec/shared_contexts/platform.rb +8 -0
- data/spec/spec_helper.rb +6 -1
- data/spec/unit/application/queue_spec.rb +2 -1
- data/spec/unit/configurer_spec.rb +1 -1
- data/spec/unit/face/{instrumentation_data.rb → instrumentation_data_spec.rb} +0 -0
- data/spec/unit/face/{instrumentation_listener.rb → instrumentation_listener_spec.rb} +0 -0
- data/spec/unit/face/{instrumentation_probe.rb → instrumentation_probe_spec.rb} +0 -0
- data/spec/unit/indirector/catalog/static_compiler_spec.rb +194 -0
- data/spec/unit/indirector/certificate/disabled_ca_spec.rb +33 -0
- data/spec/unit/indirector/certificate_request/disabled_ca_spec.rb +33 -0
- data/spec/unit/indirector/certificate_revocation_list/disabled_ca_spec.rb +33 -0
- data/spec/unit/indirector/key/disabled_ca_spec.rb +33 -0
- data/spec/unit/indirector/request_spec.rb +22 -0
- data/spec/unit/network/http/webrick_spec.rb +0 -7
- data/spec/unit/node/environment_spec.rb +8 -8
- data/spec/unit/parser/ast_spec.rb +0 -5
- data/spec/unit/parser/collector_spec.rb +1 -0
- data/spec/unit/parser/files_spec.rb +2 -2
- data/spec/unit/parser/functions/create_resources_spec.rb +3 -4
- data/spec/unit/parser/functions/require_spec.rb +0 -6
- data/spec/unit/parser/functions/shellquote_spec.rb +0 -5
- data/spec/unit/parser/functions/template_spec.rb +6 -1
- data/spec/unit/parser/functions_spec.rb +73 -23
- data/spec/unit/parser/lexer_spec.rb +133 -8
- data/spec/unit/parser/relationship_spec.rb +24 -0
- data/spec/unit/parser/resource_spec.rb +0 -4
- data/spec/unit/parser/scope_spec.rb +2 -2
- data/spec/unit/property_spec.rb +21 -1
- data/spec/unit/provider/exec/posix_spec.rb +7 -6
- data/spec/unit/provider/file/windows_spec.rb +29 -29
- data/spec/unit/provider/group/groupadd_spec.rb +36 -30
- data/spec/unit/provider/group/windows_adsi_spec.rb +2 -2
- data/spec/unit/provider/package/gem_spec.rb +12 -0
- data/spec/unit/provider/scheduled_task/win32_taskscheduler_spec.rb +14 -11
- data/spec/unit/provider/service/redhat_spec.rb +11 -1
- data/spec/unit/provider/service/windows_spec.rb +19 -0
- data/spec/unit/provider/user/ldap_spec.rb +22 -8
- data/spec/unit/provider/user/user_role_add_spec.rb +12 -0
- data/spec/unit/provider/user/useradd_spec.rb +146 -118
- data/spec/unit/provider/user/windows_adsi_spec.rb +24 -2
- data/spec/unit/puppet_spec.rb +10 -0
- data/spec/unit/resource/status_spec.rb +1 -1
- data/spec/unit/resource_spec.rb +73 -0
- data/spec/unit/ssl/certificate_authority_spec.rb +25 -1
- data/spec/unit/ssl/host_spec.rb +73 -27
- data/spec/unit/ssl/key_spec.rb +0 -4
- data/spec/unit/transaction/event_spec.rb +1 -1
- data/spec/unit/type/exec_spec.rb +1 -1
- data/spec/unit/type/file/content_spec.rb +6 -4
- data/spec/unit/type/file/{ctime.rb → ctime_spec.rb} +0 -0
- data/spec/unit/type/file/{mtime.rb → mtime_spec.rb} +0 -0
- data/spec/unit/type/file/{type.rb → type_spec.rb} +0 -0
- data/spec/unit/type/file_spec.rb +2 -12
- data/spec/unit/type/host_spec.rb +14 -5
- data/spec/unit/type/mount_spec.rb +8 -0
- data/spec/unit/type/scheduled_task_spec.rb +2 -2
- data/spec/unit/util/adsi_spec.rb +23 -8
- data/spec/unit/util/command_line_spec.rb +11 -2
- data/spec/unit/util/feature_spec.rb +12 -1
- data/spec/unit/util/filetype_spec.rb +161 -55
- data/spec/unit/util/log_spec.rb +1 -1
- data/spec/unit/util/monkey_patches_spec.rb +7 -0
- data/spec/unit/util/rdoc_spec.rb +8 -2
- data/spec/unit/util/selinux_spec.rb +24 -32
- data/spec/unit/util/windows/sid_spec.rb +100 -0
- data/spec/unit/util/zaml_spec.rb +165 -25
- data/spec/unit/util_spec.rb +3 -9
- data/spec/watchr.rb +2 -6
- data/tasks/rake/gem.rake +4 -2
- data/tasks/rake/sign.rake +1 -1
- data/test/language/parser.rb +1 -0
- data/test/language/scope.rb +0 -5
- data/test/language/snippets.rb +1 -2
- data/test/lib/puppettest.rb +16 -27
- data/test/lib/puppettest/parsertesting.rb +0 -1
- data/test/network/authstore.rb +2 -4
- data/test/puppet/defaults.rb +0 -4
- data/test/util/fileparsing.rb +2 -6
- metadata +1706 -1617
- data/conf/osx/preflight +0 -24
- data/spec/spec.opts +0 -4
- data/spec/unit/file_collection/lookup_spec.rb +0 -45
- data/spec/unit/file_collection_spec.rb +0 -52
- data/tasks/rake/apple.rake +0 -176
- data/test/puppet/errortest.rb +0 -19
data/ext/debian/docs
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
README.md
|
@@ -0,0 +1,17 @@
|
|
1
|
+
# This file consists of arbitrarily named sections/modules
|
2
|
+
# defining where files are served from and to whom
|
3
|
+
|
4
|
+
# Define a section 'files'
|
5
|
+
# Adapt the allow/deny settings to your needs. Order
|
6
|
+
# for allow/deny does not matter, allow always takes precedence
|
7
|
+
# over deny
|
8
|
+
#[files]
|
9
|
+
# path /etc/puppet/files
|
10
|
+
# allow *.example.com
|
11
|
+
# deny *.evil.example.com
|
12
|
+
# allow 192.168.0.0/24
|
13
|
+
|
14
|
+
#[plugins]
|
15
|
+
# allow *.example.com
|
16
|
+
# deny *.evil.example.com
|
17
|
+
# allow 192.168.0.0/24
|
@@ -0,0 +1,7 @@
|
|
1
|
+
# Man pages are automatically generated, not much to do here
|
2
|
+
puppet-common binary: manpage-has-bad-whatis-entry
|
3
|
+
puppet-common binary: manpage-has-errors-from-man
|
4
|
+
# These are "scripts" but do nothing other than providing documentation
|
5
|
+
puppet-common: script-not-executable
|
6
|
+
# Puppet-common depends on ruby1.8, so lintian may be confused
|
7
|
+
puppet-common: ruby-script-but-no-ruby-dep
|
@@ -0,0 +1,35 @@
|
|
1
|
+
#!/bin/sh
|
2
|
+
|
3
|
+
set -e
|
4
|
+
|
5
|
+
if [ "$1" = "configure" ]; then
|
6
|
+
|
7
|
+
# Create the "puppet" user
|
8
|
+
if ! getent passwd puppet > /dev/null; then
|
9
|
+
adduser --quiet --system --group --home /var/lib/puppet \
|
10
|
+
--no-create-home \
|
11
|
+
--gecos "Puppet configuration management daemon" \
|
12
|
+
puppet
|
13
|
+
fi
|
14
|
+
|
15
|
+
# Set correct permissions and ownership for puppet directories
|
16
|
+
if ! dpkg-statoverride --list /var/log/puppet >/dev/null 2>&1; then
|
17
|
+
dpkg-statoverride --update --add puppet puppet 0750 /var/log/puppet
|
18
|
+
fi
|
19
|
+
|
20
|
+
if ! dpkg-statoverride --list /var/lib/puppet >/dev/null 2>&1; then
|
21
|
+
dpkg-statoverride --update --add puppet puppet 0750 /var/lib/puppet
|
22
|
+
fi
|
23
|
+
|
24
|
+
# Create folders common to "puppet" and "puppetmaster", which need
|
25
|
+
# to be owned by the "puppet" user
|
26
|
+
install --owner puppet --group puppet --directory \
|
27
|
+
/var/lib/puppet/state
|
28
|
+
|
29
|
+
# Handle
|
30
|
+
if [ -d /etc/puppet/ssl ] && [ ! -e /var/lib/puppet/ssl ] && grep -q 'ssldir=/var/lib/puppet/ssl' /etc/puppet/puppet.conf; then
|
31
|
+
mv /etc/puppet/ssl /var/lib/puppet/ssl
|
32
|
+
fi
|
33
|
+
fi
|
34
|
+
|
35
|
+
#DEBHELPER#
|
@@ -0,0 +1,32 @@
|
|
1
|
+
#!/bin/sh -e
|
2
|
+
|
3
|
+
case "$1" in
|
4
|
+
purge)
|
5
|
+
# Remove puppetd.conf (used in > 0.24)
|
6
|
+
rm -f /etc/puppet/puppetd.conf
|
7
|
+
|
8
|
+
# Remove puppet state directory created by the postinst script.
|
9
|
+
# This directory can be removed without causing harm
|
10
|
+
# according to upstream documentation.
|
11
|
+
rm -rf /var/lib/puppet/state
|
12
|
+
if [ -d /var/lib/puppet ]; then
|
13
|
+
rmdir --ignore-fail-on-non-empty /var/lib/puppet
|
14
|
+
fi
|
15
|
+
|
16
|
+
# Remove puppet log files
|
17
|
+
rm -rf /var/log/puppet/
|
18
|
+
;;
|
19
|
+
remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
|
20
|
+
|
21
|
+
|
22
|
+
;;
|
23
|
+
|
24
|
+
*)
|
25
|
+
echo "postrm called with unknown argument \`$1'" >&2
|
26
|
+
exit 1
|
27
|
+
|
28
|
+
esac
|
29
|
+
|
30
|
+
#DEBHELPER#
|
31
|
+
|
32
|
+
exit 0
|
@@ -0,0 +1 @@
|
|
1
|
+
usr/share/emacs/site-lisp
|
@@ -0,0 +1,25 @@
|
|
1
|
+
#!/bin/sh
|
2
|
+
#
|
3
|
+
# emacsen install script for the Debian GNU/Linux puppet-el package
|
4
|
+
|
5
|
+
FLAVOR=$1
|
6
|
+
PACKAGE=puppet-el
|
7
|
+
|
8
|
+
ELDIR=/usr/share/emacs/site-lisp/
|
9
|
+
ELCDIR=/usr/share/${FLAVOR}/site-lisp/${PACKAGE}
|
10
|
+
ELFILE="puppet-mode.el"
|
11
|
+
FLAGS="-batch -no-site-file -l path.el -f batch-byte-compile"
|
12
|
+
|
13
|
+
if [ ${FLAVOR} != emacs ]; then
|
14
|
+
echo install/${PACKAGE}: Byte-compiling for ${FLAVOR}
|
15
|
+
|
16
|
+
install -m 755 -d ${ELCDIR}
|
17
|
+
cd ${ELDIR}
|
18
|
+
cp ${ELFILE} ${ELCDIR}
|
19
|
+
cd ${ELCDIR}
|
20
|
+
cat << EOF > path.el
|
21
|
+
(setq load-path (cons "." load-path) byte-compile-warnings nil)
|
22
|
+
EOF
|
23
|
+
${FLAVOR} ${FLAGS} ${ELFILE}
|
24
|
+
rm -f ${ELFILE} path.el
|
25
|
+
fi
|
@@ -0,0 +1 @@
|
|
1
|
+
ext/emacs/puppet-mode.el usr/share/emacs/site-lisp
|
@@ -0,0 +1,86 @@
|
|
1
|
+
puppet (0.25.4-1) unstable; urgency=low
|
2
|
+
|
3
|
+
In this packaging version we add a "puppet-common" package, on which the
|
4
|
+
packages "puppet" and "puppetmaster" depend.
|
5
|
+
|
6
|
+
The editor syntax highlighting code previously in the "puppet" package has
|
7
|
+
been moved to the packages "puppet-el" and "vim-puppet".
|
8
|
+
|
9
|
+
-- Stig Sandbeck Mathisen <ssm@debian.org> Tue, 19 Jan 2010 13:09:36 +0000
|
10
|
+
|
11
|
+
puppet (0.25.1-3) unstable; urgency=low
|
12
|
+
|
13
|
+
The default setting for puppet starting on boot has been changed from true
|
14
|
+
to false. This means the puppet client will not automatically start on
|
15
|
+
install or boot until this file is modified.
|
16
|
+
|
17
|
+
Note that the last Debian packaged version of puppet 0.24.x is too old to
|
18
|
+
communicate with a 0.25.x puppetmaster server. To resolve this, either
|
19
|
+
upgrade your client to 0.25.x, or install puppet 0.24.8 from source from:
|
20
|
+
http://puppetlabs.com/downloads/puppet/puppet-0.24.8.tgz
|
21
|
+
|
22
|
+
-- Nigel Kersten <nigel@explanatorygap.net> Wed, 16 Dec 2009 12:49:03 -0800
|
23
|
+
|
24
|
+
puppet (0.23.2-12) unstable; urgency=low
|
25
|
+
|
26
|
+
* Handling of the rundir setting has been changed; we now store PID files
|
27
|
+
in /var/run/puppet, and the initscripts have been modified to ensure
|
28
|
+
that this directory exists on startup. It is no longer necessary to set
|
29
|
+
rundir explicitly in /etc/puppet/puppet.conf, and you should ensure that
|
30
|
+
you have no explicit rundir setting in your puppet.conf unless you want
|
31
|
+
to use a custom rundir setting for your own local purposes.
|
32
|
+
|
33
|
+
-- Matthew Palmer <mpalmer@debian.org> Sat, 20 Oct 2007 11:58:58 +1000
|
34
|
+
|
35
|
+
puppet (0.23.2-3) unstable; urgency=low
|
36
|
+
|
37
|
+
* This version of Puppet makes a fairly major change to the location of
|
38
|
+
the CA and certificates, from /etc/puppet/ssl to the more FHS-compliant
|
39
|
+
location /var/lib/puppet/ssl. This is to be both policy-compliant and
|
40
|
+
to match the location of the ssldir in other distributions.
|
41
|
+
|
42
|
+
If you have transitioned to using the consolidated puppet.conf config
|
43
|
+
file, there should be no problems. If you are using a stock
|
44
|
+
puppet.conf, the change should be made for you automatically, while if
|
45
|
+
you've customised puppet.conf the ssldir will be left where it is and
|
46
|
+
you should transition to the new location manually.
|
47
|
+
|
48
|
+
The only source of problems is if you're still using per-program config
|
49
|
+
files (puppetd.conf, puppetmasterd.conf, etc). I haven't been able to
|
50
|
+
work out a damage-free way of transitioning to the new location, so
|
51
|
+
things will likely break for you -- ssldir will have been moved to
|
52
|
+
/var/lib/puppet/ssl, but your puppet programs will use the
|
53
|
+
old config file (with the default ssldir of /etc/puppet/ssl. In this
|
54
|
+
case, you'll likely get all sorts of certificate-related problems.
|
55
|
+
|
56
|
+
The solution is to either switch to using puppet.conf (which is
|
57
|
+
necessary anyway because support for the deprecated per-program config
|
58
|
+
files will be going away sometime) with the new ssldir setting, or add
|
59
|
+
the ssldir setting to all your per-program config files (this includes
|
60
|
+
creating them for programs that don't already have a config file, like
|
61
|
+
puppetca.conf). Then delete /etc/puppet/ssl (since it's not needed) and
|
62
|
+
use the existing SSL data that was moved to /var/lib/puppet/ssl.
|
63
|
+
|
64
|
+
-- Matthew Palmer <mpalmer@debian.org> Fri, 24 Aug 2007 16:08:04 +1000
|
65
|
+
|
66
|
+
puppet (0.23.0-1) unstable; urgency=low
|
67
|
+
|
68
|
+
* As of upstream 0.23.0, the configuration file layout has been largely
|
69
|
+
revamped. Now, instead of having one file per program, there is now
|
70
|
+
a single file, /etc/puppet/puppet.conf, which contains sections for
|
71
|
+
each program, as well as a "main" section that sets global config
|
72
|
+
options relevant for all programs.
|
73
|
+
|
74
|
+
See http://puppetlabs.com/trac/puppet/wiki/ConfigurationReference for
|
75
|
+
more info.
|
76
|
+
|
77
|
+
For backwards compatibility, all programs still read the per-program
|
78
|
+
configuration files, and will ignore the generic puppet.conf file if the
|
79
|
+
per-program file still exists. To prevent accidents, you will need to
|
80
|
+
do the configuration change manually, by rewriting puppet.conf to match
|
81
|
+
your local configuration parameters and then deleting the old files. If
|
82
|
+
you haven't changed any config parameters, then it should be as simple
|
83
|
+
as deleting puppetd.conf and puppetmasterd.conf and restarting the
|
84
|
+
daemons, as the configuration itself hasn't changed between versions.
|
85
|
+
|
86
|
+
-- Matthew Palmer <mpalmer@debian.org> Mon, 25 Jun 2007 10:43:53 +1000
|
@@ -0,0 +1,14 @@
|
|
1
|
+
[main]
|
2
|
+
logdir=/var/log/puppet
|
3
|
+
vardir=/var/lib/puppet
|
4
|
+
ssldir=/var/lib/puppet/ssl
|
5
|
+
rundir=/var/run/puppet
|
6
|
+
factpath=$vardir/lib/facter
|
7
|
+
templatedir=$confdir/templates
|
8
|
+
|
9
|
+
[master]
|
10
|
+
# These are needed when the puppetmaster is run by passenger
|
11
|
+
# and can safely be removed if webrick is used.
|
12
|
+
ssl_client_header = SSL_CLIENT_S_DN
|
13
|
+
ssl_client_verify_header = SSL_CLIENT_VERIFY
|
14
|
+
|
@@ -0,0 +1 @@
|
|
1
|
+
usr/sbin
|
@@ -0,0 +1,118 @@
|
|
1
|
+
#! /bin/sh
|
2
|
+
### BEGIN INIT INFO
|
3
|
+
# Provides: puppet
|
4
|
+
# Required-Start: $network $named $remote_fs $syslog
|
5
|
+
# Required-Stop: $network $named $remote_fs $syslog
|
6
|
+
# Should-Start: puppet
|
7
|
+
# Default-Start: 2 3 4 5
|
8
|
+
# Default-Stop: 0 1 6
|
9
|
+
### END INIT INFO
|
10
|
+
|
11
|
+
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
|
12
|
+
DAEMON=/usr/bin/puppet
|
13
|
+
DAEMON_OPTS="agent"
|
14
|
+
NAME=agent
|
15
|
+
DESC="puppet agent"
|
16
|
+
PIDFILE="/var/run/puppet/${NAME}.pid"
|
17
|
+
|
18
|
+
test -x $DAEMON || exit 0
|
19
|
+
|
20
|
+
[ -r /etc/default/puppet ] && . /etc/default/puppet
|
21
|
+
|
22
|
+
. /lib/lsb/init-functions
|
23
|
+
|
24
|
+
is_true() {
|
25
|
+
if [ "x$1" = "xtrue" -o "x$1" = "xyes" -o "x$1" = "x0" ] ; then
|
26
|
+
return 0
|
27
|
+
else
|
28
|
+
return 1
|
29
|
+
fi
|
30
|
+
}
|
31
|
+
|
32
|
+
reload_puppet_agent() {
|
33
|
+
start-stop-daemon --stop --quiet --signal HUP --pidfile $PIDFILE
|
34
|
+
}
|
35
|
+
|
36
|
+
start_puppet_agent() {
|
37
|
+
if is_true "$START" ; then
|
38
|
+
start-stop-daemon --start --quiet --pidfile $PIDFILE \
|
39
|
+
--startas $DAEMON -- $NAME $DAEMON_OPTS
|
40
|
+
else
|
41
|
+
echo ""
|
42
|
+
echo "puppet not configured to start, please edit /etc/default/puppet to enable"
|
43
|
+
fi
|
44
|
+
}
|
45
|
+
|
46
|
+
stop_puppet_agent() {
|
47
|
+
start-stop-daemon --stop --quiet --oknodo --pidfile $PIDFILE
|
48
|
+
}
|
49
|
+
|
50
|
+
status_puppet_agent() {
|
51
|
+
if (type status_of_proc > /dev/null 2>&1) ; then
|
52
|
+
status_of_proc -p "${PIDFILE}" "${DAEMON}" "${NAME}"
|
53
|
+
else
|
54
|
+
status_of_proc() {
|
55
|
+
local pidfile daemon name status
|
56
|
+
|
57
|
+
pidfile=
|
58
|
+
OPTIND=1
|
59
|
+
while getopts p: opt ; do
|
60
|
+
case "$opt" in
|
61
|
+
p) pidfile="$OPTARG";;
|
62
|
+
esac
|
63
|
+
done
|
64
|
+
shift $(($OPTIND - 1))
|
65
|
+
|
66
|
+
if [ -n "$pidfile" ]; then
|
67
|
+
pidfile="-p $pidfile"
|
68
|
+
fi
|
69
|
+
daemon="$1"
|
70
|
+
name="$2"
|
71
|
+
status="0"
|
72
|
+
pidofproc $pidfile $daemon >/dev/null || status="$?"
|
73
|
+
if [ "$status" = 0 ]; then
|
74
|
+
log_success_msg "$name is running"
|
75
|
+
return 0
|
76
|
+
elif [ "$status" = 4 ]; then
|
77
|
+
log_failure_msg "could not access PID file for $name"
|
78
|
+
return $status
|
79
|
+
else
|
80
|
+
log_failure_msg "$name is not running"
|
81
|
+
return $status
|
82
|
+
fi
|
83
|
+
}
|
84
|
+
status_of_proc -p "${PIDFILE}" "${DAEMON}" "${NAME}"
|
85
|
+
fi
|
86
|
+
}
|
87
|
+
|
88
|
+
case "$1" in
|
89
|
+
start)
|
90
|
+
log_begin_msg "Starting $DESC"
|
91
|
+
start_puppet_agent
|
92
|
+
log_end_msg $?
|
93
|
+
;;
|
94
|
+
stop)
|
95
|
+
log_begin_msg "Stopping $DESC"
|
96
|
+
stop_puppet_agent
|
97
|
+
log_end_msg $?
|
98
|
+
;;
|
99
|
+
reload)
|
100
|
+
log_begin_msg "Reloading $DESC"
|
101
|
+
reload_puppet_agent
|
102
|
+
log_end_msg $?
|
103
|
+
;;
|
104
|
+
status)
|
105
|
+
status_puppet_agent
|
106
|
+
;;
|
107
|
+
restart|force-reload)
|
108
|
+
log_begin_msg "Restarting $DESC"
|
109
|
+
stop_puppet_agent
|
110
|
+
sleep 1
|
111
|
+
start_puppet_agent
|
112
|
+
log_end_msg $?
|
113
|
+
;;
|
114
|
+
*)
|
115
|
+
echo "Usage: $0 {start|stop|status|restart|force-reload|reload}" >&2
|
116
|
+
exit 1
|
117
|
+
;;
|
118
|
+
esac
|
@@ -0,0 +1,36 @@
|
|
1
|
+
man/man8/filebucket.8
|
2
|
+
man/man8/puppetd.8
|
3
|
+
man/man8/puppetdoc.8
|
4
|
+
man/man8/ralsh.8
|
5
|
+
man/man8/puppet-agent.8
|
6
|
+
man/man8/puppet-apply.8
|
7
|
+
man/man8/puppet-catalog.8
|
8
|
+
man/man8/puppet-describe.8
|
9
|
+
man/man8/puppet-cert.8
|
10
|
+
man/man8/puppet-certificate.8
|
11
|
+
man/man8/puppet-certificate_request.8
|
12
|
+
man/man8/puppet-certificate_revocation_list.8
|
13
|
+
man/man8/puppet-config.8
|
14
|
+
man/man8/puppet-device.8
|
15
|
+
man/man8/puppet-doc.8
|
16
|
+
man/man8/puppet-facts.8
|
17
|
+
man/man8/puppet-file.8
|
18
|
+
man/man8/puppet-filebucket.8
|
19
|
+
man/man8/puppet-help.8
|
20
|
+
man/man8/puppet-inspect.8
|
21
|
+
man/man8/puppet-instrumentation_data.8
|
22
|
+
man/man8/puppet-instrumentation_listener.8
|
23
|
+
man/man8/puppet-instrumentation_probe.8
|
24
|
+
man/man8/puppet-key.8
|
25
|
+
man/man8/puppet-kick.8
|
26
|
+
man/man8/puppet-man.8
|
27
|
+
man/man8/puppet-module.8
|
28
|
+
man/man8/puppet-node.8
|
29
|
+
man/man8/puppet-parser.8
|
30
|
+
man/man8/puppet-plugin.8
|
31
|
+
man/man8/puppet-queue.8
|
32
|
+
man/man8/puppet-report.8
|
33
|
+
man/man8/puppet-resource.8
|
34
|
+
man/man8/puppet-resource_type.8
|
35
|
+
man/man8/puppet-secret_agent.8
|
36
|
+
man/man8/puppet-status.8
|