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.

Files changed (70) hide show
  1. data/Rakefile +24 -19
  2. data/bin/puppet +0 -6
  3. data/examples/modules/{sample-module.pp → sample_module.pp} +1 -1
  4. data/examples/modules/{sample-module → sample_module}/lib/puppet/parser/functions/hostname_to_dn.rb +0 -0
  5. data/examples/modules/{sample-module → sample_module}/manifests/init.pp +1 -1
  6. data/examples/modules/{sample-module → sample_module}/templates/sample.erb +0 -0
  7. data/ext/debian/puppetmaster.README.debian +1 -2
  8. data/ext/debian/puppetmaster.default +1 -28
  9. data/ext/debian/puppetmaster.init +49 -70
  10. data/ext/project_data.yaml +2 -2
  11. data/ext/rack/README +0 -15
  12. data/ext/rack/files/config.ru +4 -2
  13. data/ext/redhat/logrotate +1 -1
  14. data/ext/redhat/server.init +34 -49
  15. data/ext/redhat/server.sysconfig +2 -20
  16. data/ext/suse/client.init +10 -9
  17. data/ext/suse/puppet.spec +12 -25
  18. data/ext/suse/server.init +25 -15
  19. data/ext/windows/service/daemon.bat +1 -1
  20. data/ext/windows/service/daemon.rb +1 -1
  21. data/lib/puppet.rb +0 -6
  22. data/lib/puppet/application/agent.rb +1 -0
  23. data/lib/puppet/defaults.rb +2 -9
  24. data/lib/puppet/feature/eventlog.rb +0 -1
  25. data/lib/puppet/feature/rack.rb +1 -6
  26. data/lib/puppet/feature/rails.rb +0 -2
  27. data/lib/puppet/feature/rubygems.rb +5 -1
  28. data/lib/puppet/feature/ssh.rb +0 -1
  29. data/lib/puppet/feature/stomp.rb +0 -1
  30. data/lib/puppet/feature/zlib.rb +0 -1
  31. data/lib/puppet/network/http/rack/rest.rb +4 -1
  32. data/lib/puppet/rails/inventory_node.rb +26 -13
  33. data/lib/puppet/run.rb +1 -1
  34. data/lib/puppet/settings.rb +12 -7
  35. data/lib/puppet/util/command_line.rb +11 -0
  36. data/lib/puppet/util/rubygems.rb +7 -6
  37. data/lib/puppet/util/run_mode.rb +12 -11
  38. data/lib/puppet/util/zaml.rb +1 -1
  39. data/lib/puppet/version.rb +1 -1
  40. data/man/man5/puppet.conf.5 +4 -4
  41. data/spec/integration/defaults_spec.rb +4 -4
  42. data/spec/unit/network/http/rack/rest_spec.rb +13 -0
  43. data/spec/unit/run_spec.rb +11 -5
  44. data/spec/unit/util/rubygems_spec.rb +4 -2
  45. data/spec/unit/util/run_mode_spec.rb +9 -0
  46. data/spec/unit/util/zaml_spec.rb +53 -25
  47. metadata +2189 -2210
  48. data/examples/modules/sample-module/README.txt +0 -17
  49. data/ext/packaging/README-Solaris.md +0 -117
  50. data/ext/packaging/README.md +0 -89
  51. data/ext/packaging/tasks/00_utils.rb +0 -290
  52. data/ext/packaging/tasks/10_setupvars.rake +0 -64
  53. data/ext/packaging/tasks/apple.rake +0 -201
  54. data/ext/packaging/tasks/clean.rake +0 -5
  55. data/ext/packaging/tasks/deb.rake +0 -103
  56. data/ext/packaging/tasks/gem.rake +0 -55
  57. data/ext/packaging/tasks/ips.rake +0 -80
  58. data/ext/packaging/tasks/mock.rake +0 -88
  59. data/ext/packaging/tasks/release.rake +0 -56
  60. data/ext/packaging/tasks/rpm.rake +0 -39
  61. data/ext/packaging/tasks/ship.rake +0 -36
  62. data/ext/packaging/tasks/sign.rake +0 -79
  63. data/ext/packaging/tasks/tag.rake +0 -8
  64. data/ext/packaging/tasks/tar.rake +0 -20
  65. data/ext/packaging/tasks/version.rake +0 -20
  66. data/ext/suse/fileserver.conf +0 -12
  67. data/ext/suse/logrotate +0 -10
  68. data/ext/suse/puppet.conf +0 -25
  69. data/lib/puppet/network/http/mongrel/rest.rb +0 -104
  70. 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