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
@@ -0,0 +1,16 @@
|
|
1
|
+
namespace :package do
|
2
|
+
desc "Update your clone of the packaging repo with `git pull`"
|
3
|
+
task :update do
|
4
|
+
cd 'ext/packaging' do
|
5
|
+
remote = @packaging_url.split(' ')[0]
|
6
|
+
branch = @packaging_url.split(' ')[1].split('=')[1]
|
7
|
+
if branch.nil? or remote.nil?
|
8
|
+
STDERR.puts "Couldn't parse the packaging repo URL from 'ext/build_defaults.yaml'."
|
9
|
+
STDERR.puts "Normally this is a string in the format git@github.com:<User>/<packaging_repo> --branch=<branch>"
|
10
|
+
else
|
11
|
+
git_pull(remote, branch)
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
16
|
+
|
@@ -0,0 +1,21 @@
|
|
1
|
+
namespace :package do
|
2
|
+
desc "Update the version in #{@version_file} to current and commit."
|
3
|
+
task :versionbump do
|
4
|
+
old_version = get_version_file_version
|
5
|
+
contents = IO.read(@version_file)
|
6
|
+
new_version = '"' + @version.to_s.strip + '"'
|
7
|
+
if contents.match("@DEVELOPMENT_VERSION@")
|
8
|
+
contents.gsub!("@DEVELOPMENT_VERSION@", @version.to_s.strip)
|
9
|
+
elsif contents.match("VERSION = #{old_version}")
|
10
|
+
contents.gsub!("VERSION = #{old_version}", "VERSION = #{new_version}")
|
11
|
+
elsif contents.match("#{@name.upcase}VERSION = #{old_version}")
|
12
|
+
contents.gsub!("#{@name.upcase}VERSION = #{old_version}", "#{@name.upcase}VERSION = #{new_version}")
|
13
|
+
else
|
14
|
+
contents.gsub!(old_version, @version)
|
15
|
+
end
|
16
|
+
file = File.open(@version_file, 'w')
|
17
|
+
file.write contents
|
18
|
+
file.close
|
19
|
+
end
|
20
|
+
end
|
21
|
+
|
@@ -0,0 +1,24 @@
|
|
1
|
+
---
|
2
|
+
project: 'puppet'
|
3
|
+
author: 'Puppet Labs'
|
4
|
+
email: 'info@puppetlabs.com'
|
5
|
+
homepage: 'https://github.com/puppetlabs/puppet'
|
6
|
+
summary: 'Puppet, an automated configuration management tool'
|
7
|
+
description: 'Puppet, an automated configuration management tool'
|
8
|
+
version_file: 'lib/puppet/version.rb'
|
9
|
+
# files and gem_files are space separated lists
|
10
|
+
files: '[A-Z]* install.rb bin sbin lib conf man examples ext tasks test spec'
|
11
|
+
# The gem specification bits only work on Puppet >= 3.0rc, NOT 2.7.x and earlier
|
12
|
+
gem_files: '[A-Z]* install.rb bin lib conf man examples ext tasks test spec'
|
13
|
+
gem_test_files: 'spec/**/*'
|
14
|
+
gem_executables: 'filebucket pi puppet puppetdoc ralsh puppetca puppetd puppetmasterd puppetqd puppetrun'
|
15
|
+
gem_default_executables: 'puppet'
|
16
|
+
gem_forge_project: 'puppet'
|
17
|
+
gem_dependencies:
|
18
|
+
facter: '~> 1.5'
|
19
|
+
gem_rdoc_options:
|
20
|
+
- --title
|
21
|
+
- "Puppet - Configuration Management"
|
22
|
+
- --main
|
23
|
+
- README.md
|
24
|
+
- --line-numbers
|
@@ -9,26 +9,26 @@
|
|
9
9
|
%global puppet_libdir %(ruby -rrbconfig -e 'puts RbConfig::CONFIG["sitelibdir"]')
|
10
10
|
%endif
|
11
11
|
|
12
|
+
# VERSION is subbed out during rake srpm process
|
13
|
+
# %global realversion <%= @version %>
|
14
|
+
# %global rpmversion <%= @rpmversion %>
|
15
|
+
|
12
16
|
%global confdir conf/redhat
|
13
17
|
|
14
18
|
Name: puppet
|
15
|
-
Version:
|
16
|
-
|
17
|
-
Release: 1%{?dist}
|
19
|
+
Version: %{rpmversion}
|
20
|
+
Release: <%= @rpmrelease -%>%{?dist}
|
18
21
|
Vendor: %{?_host_vendor}
|
19
22
|
Summary: A network tool for managing many disparate systems
|
20
23
|
License: ASL 2.0
|
21
24
|
URL: http://puppetlabs.com
|
22
|
-
Source0: http://puppetlabs.com/downloads/%{name}/%{name}-%{
|
23
|
-
#Source0: http://puppetlabs.com/downloads/%{name}/%{name}-%{version}rc3.tar.gz
|
24
|
-
Source1: http://puppetlabs.com/downloads/%{name}/%{name}-%{version}.tar.gz.asc
|
25
|
-
#Source1: http://puppetlabs.com/downloads/%{name}/%{name}-%{version}rc3.tar.gz.asc
|
25
|
+
Source0: http://puppetlabs.com/downloads/%{name}/%{name}-%{realversion}.tar.gz
|
26
26
|
|
27
27
|
Group: System Environment/Base
|
28
28
|
|
29
29
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
30
30
|
|
31
|
-
BuildRequires: facter
|
31
|
+
BuildRequires: facter < 1:2.0
|
32
32
|
BuildRequires: ruby >= 1.8.5
|
33
33
|
|
34
34
|
BuildArch: noarch
|
@@ -74,8 +74,7 @@ Provides the central puppet server daemon which provides manifests to clients.
|
|
74
74
|
The server can also function as a certificate authority and file server.
|
75
75
|
|
76
76
|
%prep
|
77
|
-
%setup -q -n %{name}-%{
|
78
|
-
#%setup -q -n %{name}-%{version}rc3
|
77
|
+
%setup -q -n %{name}-%{realversion}
|
79
78
|
patch -s -p1 < conf/redhat/rundir-perms.patch
|
80
79
|
|
81
80
|
|
@@ -125,6 +124,9 @@ install -d %{buildroot}%{_datadir}/%{name}
|
|
125
124
|
cp -a ext/ %{buildroot}%{_datadir}/%{name}
|
126
125
|
# emacs and vim bits are installed elsewhere
|
127
126
|
rm -rf %{buildroot}%{_datadir}/%{name}/ext/{emacs,vim}
|
127
|
+
# remove misc packaging files we shouldn't ship with the rpm
|
128
|
+
rm -rf %{buildroot}%{_datadir}/%{name}/ext/{debian,osx}
|
129
|
+
rm -rf %{buildroot}%{_datadir}/%{name}/ext/{build_defaults.yaml,project_data.yaml}
|
128
130
|
|
129
131
|
# Install emacs mode files
|
130
132
|
emacsdir=%{buildroot}%{_datadir}/emacs/site-lisp
|
@@ -301,6 +303,12 @@ fi
|
|
301
303
|
rm -rf %{buildroot}
|
302
304
|
|
303
305
|
%changelog
|
306
|
+
* <%= Time.now.strftime("%a %b %d %Y") %> Puppet Labs Release <info@puppetlabs.com> - <%= @rpmversion %>-<%= @rpmrelease %>
|
307
|
+
- Build for <%= @version %>
|
308
|
+
|
309
|
+
* Tue Oct 30 2012 Michael Stahnke <stahnma@puppetlabs.com> - 2.7.19-1.0
|
310
|
+
- Remove the asc file as a source since it was never used
|
311
|
+
|
304
312
|
* Tue Aug 21 2012 Moses Mendoza <moses@puppetlabs.com> - 2.7.19-1
|
305
313
|
- Update for 2.7.19
|
306
314
|
|
data/install.rb
CHANGED
@@ -84,7 +84,7 @@ def do_configs(configs, target, strip = 'conf/')
|
|
84
84
|
if $haveftools
|
85
85
|
File.install(cf, ocf, 0644, true)
|
86
86
|
else
|
87
|
-
FileUtils.install(cf, ocf, {:mode => 0644, :verbose => true})
|
87
|
+
FileUtils.install(cf, ocf, {:mode => 0644, :preserve => true, :verbose => true})
|
88
88
|
end
|
89
89
|
end
|
90
90
|
|
@@ -94,7 +94,7 @@ def do_configs(configs, target, strip = 'conf/')
|
|
94
94
|
if $haveftools
|
95
95
|
File.install(src_dll, dst_dll, 0644, true)
|
96
96
|
else
|
97
|
-
FileUtils.install(src_dll, dst_dll, {:mode => 0644, :verbose => true})
|
97
|
+
FileUtils.install(src_dll, dst_dll, {:mode => 0644, :preserve => true, :verbose => true})
|
98
98
|
end
|
99
99
|
|
100
100
|
require 'win32/registry'
|
@@ -130,7 +130,7 @@ def do_libs(libs, strip = 'lib/')
|
|
130
130
|
else
|
131
131
|
FileUtils.makedirs(op, {:mode => 0755, :verbose => true})
|
132
132
|
FileUtils.chmod(0755, op)
|
133
|
-
FileUtils.install(lf, olf, {:mode => 0644, :verbose => true})
|
133
|
+
FileUtils.install(lf, olf, {:mode => 0644, :preserve => true, :verbose => true})
|
134
134
|
end
|
135
135
|
end
|
136
136
|
end
|
@@ -146,7 +146,7 @@ def do_man(man, strip = 'man/')
|
|
146
146
|
else
|
147
147
|
FileUtils.makedirs(om, {:mode => 0755, :verbose => true})
|
148
148
|
FileUtils.chmod(0755, om)
|
149
|
-
FileUtils.install(mf, omf, {:mode => 0644, :verbose => true})
|
149
|
+
FileUtils.install(mf, omf, {:mode => 0644, :preserve => true, :verbose => true})
|
150
150
|
end
|
151
151
|
gzip = %x{which gzip}
|
152
152
|
gzip.chomp!
|
@@ -420,12 +420,12 @@ def install_binfile(from, op_file, target)
|
|
420
420
|
installed_wrapper = false
|
421
421
|
|
422
422
|
if File.exists?("#{from}.bat")
|
423
|
-
FileUtils.install("#{from}.bat", File.join(target, "#{op_file}.bat"), :mode => 0755, :verbose => true)
|
423
|
+
FileUtils.install("#{from}.bat", File.join(target, "#{op_file}.bat"), :mode => 0755, :preserve => true, :verbose => true)
|
424
424
|
installed_wrapper = true
|
425
425
|
end
|
426
426
|
|
427
427
|
if File.exists?("#{from}.cmd")
|
428
|
-
FileUtils.install("#{from}.cmd", File.join(target, "#{op_file}.cmd"), :mode => 0755, :verbose => true)
|
428
|
+
FileUtils.install("#{from}.cmd", File.join(target, "#{op_file}.cmd"), :mode => 0755, :preserve => true, :verbose => true)
|
429
429
|
installed_wrapper = true
|
430
430
|
end
|
431
431
|
|
@@ -439,13 +439,13 @@ set RUBY_BIN=%RUBY_BIN:\\=/%
|
|
439
439
|
"%RUBY_BIN%ruby.exe" -x "%RUBY_BIN%puppet" %*
|
440
440
|
EOS
|
441
441
|
File.open(tmp_file2.path, "w") { |cw| cw.puts cwv }
|
442
|
-
FileUtils.install(tmp_file2.path, File.join(target, "#{op_file}.bat"), :mode => 0755, :verbose => true)
|
442
|
+
FileUtils.install(tmp_file2.path, File.join(target, "#{op_file}.bat"), :mode => 0755, :preserve => true, :verbose => true)
|
443
443
|
|
444
444
|
tmp_file2.unlink
|
445
445
|
installed_wrapper = true
|
446
446
|
end
|
447
447
|
end
|
448
|
-
FileUtils.install(tmp_file.path, File.join(target, op_file), :mode => 0755, :verbose => true)
|
448
|
+
FileUtils.install(tmp_file.path, File.join(target, op_file), :mode => 0755, :preserve => true, :verbose => true)
|
449
449
|
tmp_file.unlink
|
450
450
|
end
|
451
451
|
|
data/lib/puppet.rb
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
require 'puppet/version'
|
2
|
+
|
1
3
|
# Try to load rubygems. Hey rubygems, I hate you.
|
2
4
|
begin
|
3
5
|
require 'rubygems'
|
@@ -24,12 +26,6 @@ require 'puppet/util/run_mode'
|
|
24
26
|
# it's also a place to find top-level commands like 'debug'
|
25
27
|
|
26
28
|
module Puppet
|
27
|
-
PUPPETVERSION = '2.7.19'
|
28
|
-
|
29
|
-
def Puppet.version
|
30
|
-
PUPPETVERSION
|
31
|
-
end
|
32
|
-
|
33
29
|
class << self
|
34
30
|
include Puppet::Util
|
35
31
|
attr_reader :features
|
data/lib/puppet/agent/locker.rb
CHANGED
@@ -5,11 +5,13 @@ require 'puppet/util/pidlock'
|
|
5
5
|
module Puppet::Agent::Locker
|
6
6
|
# Let the daemon run again, freely in the filesystem.
|
7
7
|
def enable
|
8
|
+
Puppet.notice "Enabling Puppet."
|
8
9
|
lockfile.unlock(:anonymous => true)
|
9
10
|
end
|
10
11
|
|
11
12
|
# Stop the daemon from making any catalog runs.
|
12
13
|
def disable
|
14
|
+
Puppet.notice "Disabling Puppet."
|
13
15
|
lockfile.lock(:anonymous => true)
|
14
16
|
end
|
15
17
|
|
data/lib/puppet/application.rb
CHANGED
@@ -190,7 +190,7 @@ class Application
|
|
190
190
|
# used to declare code that handle an option
|
191
191
|
def option(*options, &block)
|
192
192
|
long = options.find { |opt| opt =~ /^--/ }.gsub(/^--(?:\[no-\])?([^ =]+).*$/, '\1' ).gsub('-','_')
|
193
|
-
fname =
|
193
|
+
fname = "handle_#{long}".intern
|
194
194
|
if (block_given?)
|
195
195
|
define_method(fname, &block)
|
196
196
|
else
|
@@ -53,7 +53,7 @@ class Puppet::Application::Cert < Puppet::Application
|
|
53
53
|
end
|
54
54
|
|
55
55
|
def help
|
56
|
-
<<-HELP
|
56
|
+
<<-'HELP'
|
57
57
|
|
58
58
|
puppet-cert(8) -- Manage certificates and requests
|
59
59
|
========
|
@@ -109,11 +109,10 @@ unless the '--all' option is set.
|
|
109
109
|
Print the full-text version of a host's certificate.
|
110
110
|
|
111
111
|
* revoke:
|
112
|
-
Revoke the certificate of a client. The certificate can be specified
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
given by the 'cacrl' configuration option. Note that the puppet master
|
112
|
+
Revoke the certificate of a client. The certificate can be specified either
|
113
|
+
by its serial number (given as a hexadecimal number prefixed by '0x') or by its
|
114
|
+
hostname. The certificate is revoked by adding it to the Certificate Revocation
|
115
|
+
List given by the 'cacrl' configuration option. Note that the puppet master
|
117
116
|
needs to be restarted after revoking certificates.
|
118
117
|
|
119
118
|
* sign:
|
data/lib/puppet/defaults.rb
CHANGED
@@ -72,7 +72,7 @@ module Puppet
|
|
72
72
|
ENV["PATH"] = "" if ENV["PATH"].nil?
|
73
73
|
ENV["PATH"] = value unless value == "none"
|
74
74
|
paths = ENV["PATH"].split(File::PATH_SEPARATOR)
|
75
|
-
|
75
|
+
Puppet::Util::Platform.default_paths.each do |path|
|
76
76
|
ENV["PATH"] += File::PATH_SEPARATOR + path unless paths.include?(path)
|
77
77
|
end
|
78
78
|
value
|
@@ -652,7 +652,10 @@ EOT
|
|
652
652
|
instances will be serialized using this method, since not all classes
|
653
653
|
can be guaranteed to support this format, but it will be used for all
|
654
654
|
classes that support it."],
|
655
|
-
:puppetdlockfile =>
|
655
|
+
:puppetdlockfile => { :default => "$statedir/puppetdlock",
|
656
|
+
:type => :setting, # (#2888) Ensure this file is not added to the settings catalog.
|
657
|
+
:desc => "A lock file to temporarily stop puppet agent from doing anything.",
|
658
|
+
},
|
656
659
|
:usecacheonfailure => [true,
|
657
660
|
"Whether to use the cached configuration when the remote
|
658
661
|
configuration will not compile. This option is useful for testing
|
@@ -943,7 +946,22 @@ database from within the Puppet Master process."
|
|
943
946
|
:templatedir => ["$vardir/templates",
|
944
947
|
"Where Puppet looks for template files. Can be a list of colon-separated
|
945
948
|
directories."
|
946
|
-
]
|
949
|
+
],
|
950
|
+
|
951
|
+
:allow_variables_with_dashes => {
|
952
|
+
:default => false,
|
953
|
+
:desc => <<-'EOT'
|
954
|
+
Permit hyphens (`-`) in variable names and issue deprecation warnings about
|
955
|
+
them. This setting **should always be `false`;** setting it to `true`
|
956
|
+
will cause subtle and wide-ranging bugs. It will be removed in a future version.
|
957
|
+
|
958
|
+
Hyphenated variables caused major problems in the language, but were allowed
|
959
|
+
between Puppet 2.7.3 and 2.7.14. If you used them during this window, we
|
960
|
+
apologize for the inconvenience --- you can temporarily set this to `true`
|
961
|
+
in order to upgrade, and can rename your variables at your leisure. Please
|
962
|
+
revert it to `false` after you have renamed all affected variables.
|
963
|
+
EOT
|
964
|
+
}
|
947
965
|
)
|
948
966
|
setdefaults(
|
949
967
|
:puppetdoc,
|
data/lib/puppet/external/dot.rb
CHANGED
@@ -35,7 +35,7 @@ module DOT
|
|
35
35
|
'fontcolor', # default: black; type face color
|
36
36
|
'fontname', # default: Times-Roman; font family
|
37
37
|
'fontsize', # default: 14; point size of label
|
38
|
-
'group', # name of node
|
38
|
+
'group', # name of node's group
|
39
39
|
'height', # default: .5; height in inches
|
40
40
|
'label', # default: node name; any string
|
41
41
|
'layer', # default: overlay range; all, id or id:id
|
@@ -16,4 +16,4 @@ Available applications, soon to be ported to Faces:
|
|
16
16
|
|
17
17
|
See 'puppet help <subcommand> <action>' for help on a specific subcommand action.
|
18
18
|
See 'puppet help <subcommand>' for help on a specific subcommand.
|
19
|
-
Puppet v<%= Puppet
|
19
|
+
Puppet v<%= Puppet.version %>
|