puppet 3.0.0 → 3.0.1.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/Rakefile +24 -19
- data/bin/puppet +0 -6
- data/examples/modules/{sample-module.pp → sample_module.pp} +1 -1
- data/examples/modules/{sample-module → sample_module}/lib/puppet/parser/functions/hostname_to_dn.rb +0 -0
- data/examples/modules/{sample-module → sample_module}/manifests/init.pp +1 -1
- data/examples/modules/{sample-module → sample_module}/templates/sample.erb +0 -0
- data/ext/debian/puppetmaster.README.debian +1 -2
- data/ext/debian/puppetmaster.default +1 -28
- data/ext/debian/puppetmaster.init +49 -70
- data/ext/project_data.yaml +2 -2
- data/ext/rack/README +0 -15
- data/ext/rack/files/config.ru +4 -2
- data/ext/redhat/logrotate +1 -1
- data/ext/redhat/server.init +34 -49
- data/ext/redhat/server.sysconfig +2 -20
- data/ext/suse/client.init +10 -9
- data/ext/suse/puppet.spec +12 -25
- data/ext/suse/server.init +25 -15
- data/ext/windows/service/daemon.bat +1 -1
- data/ext/windows/service/daemon.rb +1 -1
- data/lib/puppet.rb +0 -6
- data/lib/puppet/application/agent.rb +1 -0
- data/lib/puppet/defaults.rb +2 -9
- data/lib/puppet/feature/eventlog.rb +0 -1
- data/lib/puppet/feature/rack.rb +1 -6
- data/lib/puppet/feature/rails.rb +0 -2
- data/lib/puppet/feature/rubygems.rb +5 -1
- data/lib/puppet/feature/ssh.rb +0 -1
- data/lib/puppet/feature/stomp.rb +0 -1
- data/lib/puppet/feature/zlib.rb +0 -1
- data/lib/puppet/network/http/rack/rest.rb +4 -1
- data/lib/puppet/rails/inventory_node.rb +26 -13
- data/lib/puppet/run.rb +1 -1
- data/lib/puppet/settings.rb +12 -7
- data/lib/puppet/util/command_line.rb +11 -0
- data/lib/puppet/util/rubygems.rb +7 -6
- data/lib/puppet/util/run_mode.rb +12 -11
- data/lib/puppet/util/zaml.rb +1 -1
- data/lib/puppet/version.rb +1 -1
- data/man/man5/puppet.conf.5 +4 -4
- data/spec/integration/defaults_spec.rb +4 -4
- data/spec/unit/network/http/rack/rest_spec.rb +13 -0
- data/spec/unit/run_spec.rb +11 -5
- data/spec/unit/util/rubygems_spec.rb +4 -2
- data/spec/unit/util/run_mode_spec.rb +9 -0
- data/spec/unit/util/zaml_spec.rb +53 -25
- metadata +2189 -2210
- data/examples/modules/sample-module/README.txt +0 -17
- data/ext/packaging/README-Solaris.md +0 -117
- data/ext/packaging/README.md +0 -89
- data/ext/packaging/tasks/00_utils.rb +0 -290
- data/ext/packaging/tasks/10_setupvars.rake +0 -64
- data/ext/packaging/tasks/apple.rake +0 -201
- data/ext/packaging/tasks/clean.rake +0 -5
- data/ext/packaging/tasks/deb.rake +0 -103
- data/ext/packaging/tasks/gem.rake +0 -55
- data/ext/packaging/tasks/ips.rake +0 -80
- data/ext/packaging/tasks/mock.rake +0 -88
- data/ext/packaging/tasks/release.rake +0 -56
- data/ext/packaging/tasks/rpm.rake +0 -39
- data/ext/packaging/tasks/ship.rake +0 -36
- data/ext/packaging/tasks/sign.rake +0 -79
- data/ext/packaging/tasks/tag.rake +0 -8
- data/ext/packaging/tasks/tar.rake +0 -20
- data/ext/packaging/tasks/version.rake +0 -20
- data/ext/suse/fileserver.conf +0 -12
- data/ext/suse/logrotate +0 -10
- data/ext/suse/puppet.conf +0 -25
- data/lib/puppet/network/http/mongrel/rest.rb +0 -104
- data/spec/integration/network/server/mongrel_spec.rb +0 -64
@@ -1,64 +0,0 @@
|
|
1
|
-
#! /usr/bin/env ruby
|
2
|
-
require 'spec_helper'
|
3
|
-
require 'puppet/network/server'
|
4
|
-
require 'net/http'
|
5
|
-
|
6
|
-
describe Puppet::Network::Server do
|
7
|
-
describe "when using mongrel", :if => Puppet.features.mongrel? do
|
8
|
-
|
9
|
-
# This reduces the odds of conflicting port numbers between concurrent runs
|
10
|
-
# of the suite on the same machine dramatically.
|
11
|
-
def port
|
12
|
-
20001 + ($$ % 40000)
|
13
|
-
end
|
14
|
-
|
15
|
-
before :each do
|
16
|
-
Puppet[:servertype] = 'mongrel'
|
17
|
-
Puppet[:server] = '127.0.0.1'
|
18
|
-
@params = { :port => port, :handlers => [ :node ] }
|
19
|
-
@server = Puppet::Network::Server.new(@params)
|
20
|
-
end
|
21
|
-
|
22
|
-
after :each do
|
23
|
-
@server.unlisten if @server.listening?
|
24
|
-
end
|
25
|
-
|
26
|
-
describe "when listening" do
|
27
|
-
it "should be reachable on the specified address and port" do
|
28
|
-
@server.listen
|
29
|
-
expect { Net::HTTP.get('127.0.0.1', '/', port) }.to_not raise_error
|
30
|
-
end
|
31
|
-
|
32
|
-
it "should default to '127.0.0.1' as its bind address" do
|
33
|
-
@server = Puppet::Network::Server.new(@params.merge(:port => 34343))
|
34
|
-
@server.stubs(:unlisten) # we're breaking listening internally, so we have to keep it from unlistening
|
35
|
-
@server.send(:http_server).expects(:listen).with { |args| args[:address] == "127.0.0.1" }
|
36
|
-
@server.listen
|
37
|
-
end
|
38
|
-
|
39
|
-
it "should use any specified bind address" do
|
40
|
-
Puppet[:bindaddress] = "0.0.0.0"
|
41
|
-
@server = Puppet::Network::Server.new(@params.merge(:port => 34343))
|
42
|
-
@server.stubs(:unlisten) # we're breaking listening internally, so we have to keep it from unlistening
|
43
|
-
@server.send(:http_server).expects(:listen).with { |args| args[:address] == "0.0.0.0" }
|
44
|
-
@server.listen
|
45
|
-
end
|
46
|
-
|
47
|
-
it "should not allow multiple servers to listen on the same address and port" do
|
48
|
-
@server.listen
|
49
|
-
@server2 = Puppet::Network::Server.new(@params)
|
50
|
-
expect { @server2.listen }.to raise_error
|
51
|
-
end
|
52
|
-
end
|
53
|
-
|
54
|
-
describe "after unlistening" do
|
55
|
-
it "should not be reachable on the port and address assigned" do
|
56
|
-
@server.listen
|
57
|
-
@server.unlisten
|
58
|
-
expect {
|
59
|
-
Net::HTTP.get('127.0.0.1', '/', port)
|
60
|
-
}.to raise_error Errno::ECONNREFUSED
|
61
|
-
end
|
62
|
-
end
|
63
|
-
end
|
64
|
-
end
|