1
Description: Undocumented upstream changes
2
This patch has been created by dpkg-source during the package build
3
but it might have accumulated changes from several uploads. Please
4
check the changelog to (hopefully) learn more on those changes.
6
--- puppet-2.7.1.orig/Rakefile
7
+++ puppet-2.7.1/Rakefile
8
@@ -9,7 +9,7 @@ require 'rspec'
9
require "rspec/core/rake_task"
12
- PUPPETVERSION = File.read('lib/puppet.rb')[/PUPPETVERSION *= *'(.*)'/,1] or fail "Couldn't find PUPPETVERSION"
13
+ PUPPETVERSION = File.read('/usr/lib/ruby/1.8/puppet.rb')[/PUPPETVERSION *= *'(.*)'/,1] or fail "Couldn't find PUPPETVERSION"
16
Dir['tasks/**/*.rake'].each { |t| load t }
17
--- puppet-2.7.1.orig/test/lib/puppettest/fakes.rb
18
+++ puppet-2.7.1/test/lib/puppettest/fakes.rb
20
-require File.expand_path(File.join(File.dirname(__FILE__), '../../../lib/puppet/util'))
21
+require '/usr/lib/ruby/1.8/puppet/util'
24
# A baseclass for the faketypes.
25
--- puppet-2.7.1.orig/lib/puppet/provider/service/init.rb
26
+++ puppet-2.7.1/lib/puppet/provider/service/init.rb
27
@@ -134,7 +134,15 @@ Puppet::Type.type(:service).provide :ini
28
# we just return that; otherwise, we return false, which causes it to
29
# fallback to other mechanisms.
31
- (@resource[:hasstatus] == :true) && [initscript, :status]
32
+ if @resource[:hasstatus] == :true then
33
+ # Workaround the fact that initctl status command doesn't return
34
+ # proper exit codes. Can be removed once LP: #552786 is fixed.
35
+ if File.symlink?(initscript) && File.readlink(initscript) == "/lib/init/upstart-job" then
36
+ ['sh', '-c', "LANG=C invoke-rc.d #{File::basename(initscript)} status | grep -q '^#{File::basename(initscript)}.*running'" ]
38
+ [initscript, :status ]
44
--- puppet-2.7.1.orig/ext/rack/files/apache2.conf
45
+++ puppet-2.7.1/ext/rack/files/apache2.conf
48
-# you probably want to tune these settings
49
-PassengerHighPerformance on
50
-PassengerMaxPoolSize 12
51
-PassengerPoolIdleTime 1500
52
-# PassengerMaxRequests 1000
53
-PassengerStatThrottleRate 120
56
+# Based on http://projects.puppetlabs.com/projects/1/wiki/Using_Passenger
60
@@ -15,20 +7,32 @@ Listen 8140
61
SSLProtocol -ALL +SSLv3 +TLSv1
62
SSLCipherSuite ALL:!ADH:RC4+RSA:+HIGH:+MEDIUM:-LOW:-SSLv2:-EXP
64
- SSLCertificateFile /etc/puppet/ssl/certs/squigley.namespace.at.pem
65
- SSLCertificateKeyFile /etc/puppet/ssl/private_keys/squigley.namespace.at.pem
66
- SSLCertificateChainFile /etc/puppet/ssl/ca/ca_crt.pem
67
- SSLCACertificateFile /etc/puppet/ssl/ca/ca_crt.pem
68
+ SSLCertificateKeyFile /var/lib/puppet/ssl/private_keys/puppetmaster.example.com.pem
69
+ SSLCertificateFile /var/lib/puppet/ssl/certs/puppetmaster.example.com.pem
70
+ SSLCACertificateFile /var/lib/puppet/ssl/ca/ca_crt.pem
71
+ SSLCertificateChainFile /var/lib/puppet/ssl/ca/ca_crt.pem
72
# If Apache complains about invalid signatures on the CRL, you can try disabling
73
# CRL checking by commenting the next line, but this is not recommended.
74
- SSLCARevocationFile /etc/puppet/ssl/ca/ca_crl.pem
75
+ SSLCARevocationFile /var/lib/puppet/ssl/ca/ca_crl.pem
76
+ # Set to require if this puppetmaster doesn't issue certificates
77
+ # to puppet clients.
78
+ # NB: this requires SSLCACertificateFile to include the CA cert
79
+ # issuing puppet client certificate.
80
SSLVerifyClient optional
82
SSLOptions +StdEnvVars
84
- DocumentRoot /etc/puppet/rack/public/
85
+ # Passenger options that can be set in a virtual host
86
+ # configuration block.
87
+ PassengerHighPerformance on
88
+ PassengerStatThrottleRate 120
89
+ PassengerUseGlobalQueue on
93
- <Directory /etc/puppet/rack/>
95
+ DocumentRoot /usr/share/puppet/rack/puppetmasterd/public
96
+ <Directory /usr/share/puppet/rack/puppetmasterd/>
100
--- puppet-2.7.1.orig/lib/puppet/network/rest_authconfig.rb
101
+++ puppet-2.7.1/lib/puppet/network/rest_authconfig.rb
102
@@ -18,6 +18,7 @@ module Puppet
103
{ :acl => "/certificate/", :method => :find, :authenticated => false },
104
{ :acl => "/certificate_request", :method => [:find, :save], :authenticated => false },
105
{ :acl => "/status", :method => [:find], :authenticated => true },
106
+ { :acl => "/resource", :method => [:find, :save, :search], :authenticated => true },