puppet 3.0.1 → 3.0.2.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/Gemfile +17 -3
- data/Rakefile +7 -5
- data/ext/build_defaults.yaml +1 -1
- data/ext/debian/puppet.init +33 -34
- data/ext/debian/puppet.logrotate +2 -1
- data/ext/debian/puppetmaster.init +1 -2
- data/ext/suse/client.init +1 -1
- data/ext/suse/puppet.spec +3 -0
- data/ext/suse/server.init +1 -1
- data/ext/windows/service/daemon.rb +1 -1
- data/install.rb +32 -53
- data/lib/hiera/backend/puppet_backend.rb +6 -5
- data/lib/puppet/agent.rb +3 -3
- data/lib/puppet/application/agent.rb +1 -2
- data/lib/puppet/application/cert.rb +4 -5
- data/lib/puppet/application/kick.rb +3 -0
- data/lib/puppet/defaults.rb +15 -2
- data/lib/puppet/indirector/exec.rb +1 -1
- data/lib/puppet/module_tool/skeleton/templates/generator/manifests/init.pp.erb +1 -1
- data/lib/puppet/parser/functions/hiera_include.rb +6 -4
- data/lib/puppet/parser/lexer.rb +38 -1
- data/lib/puppet/parser/relationship.rb +3 -1
- data/lib/puppet/provider.rb +1 -1
- data/lib/puppet/provider/augeas/augeas.rb +1 -1
- data/lib/puppet/provider/file/windows.rb +10 -29
- 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/macauthorization/macauthorization.rb +2 -6
- data/lib/puppet/provider/package/dpkg.rb +8 -12
- data/lib/puppet/provider/package/macports.rb +2 -2
- data/lib/puppet/provider/package/msi.rb +2 -2
- data/lib/puppet/provider/package/sun.rb +1 -1
- data/lib/puppet/provider/package/windows.rb +2 -2
- data/lib/puppet/provider/package/yum.rb +5 -1
- data/lib/puppet/provider/scheduled_task/win32_taskscheduler.rb +2 -2
- data/lib/puppet/provider/service/freebsd.rb +1 -1
- data/lib/puppet/provider/user/directoryservice.rb +603 -65
- data/lib/puppet/provider/user/windows_adsi.rb +1 -1
- data/lib/puppet/provider/zpool/zpool.rb +1 -1
- data/lib/puppet/run.rb +2 -1
- data/lib/puppet/settings.rb +9 -5
- data/lib/puppet/ssl/certificate_authority.rb +2 -0
- data/lib/puppet/transaction.rb +1 -1
- data/lib/puppet/type/cron.rb +4 -4
- data/lib/puppet/type/exec.rb +10 -5
- data/lib/puppet/type/file.rb +1 -1
- data/lib/puppet/type/service.rb +3 -2
- data/lib/puppet/type/user.rb +24 -2
- data/lib/puppet/util.rb +3 -6
- data/lib/puppet/util/adsi.rb +3 -9
- data/lib/puppet/util/diff.rb +1 -1
- data/lib/puppet/util/execution.rb +13 -6
- data/lib/puppet/util/feature.rb +3 -1
- data/lib/puppet/util/log/destinations.rb +12 -16
- data/lib/puppet/util/selinux.rb +18 -2
- data/lib/puppet/util/windows.rb +1 -0
- data/lib/puppet/util/windows/security.rb +2 -39
- data/lib/puppet/util/windows/sid.rb +96 -0
- data/lib/puppet/version.rb +1 -1
- data/spec/integration/util/windows/security_spec.rb +3 -23
- data/spec/unit/agent_spec.rb +7 -3
- data/spec/unit/application/agent_spec.rb +13 -5
- data/spec/unit/daemon_spec.rb +2 -1
- data/spec/unit/hiera/backend/puppet_backend_spec.rb +49 -42
- data/spec/unit/indirector/exec_spec.rb +8 -6
- data/spec/unit/parser/functions/hiera_include_spec.rb +11 -4
- data/spec/unit/parser/lexer_spec.rb +120 -8
- data/spec/unit/parser/relationship_spec.rb +24 -0
- data/spec/unit/provider/file/windows_spec.rb +29 -29
- data/spec/unit/provider/group/windows_adsi_spec.rb +2 -2
- data/spec/unit/provider/nameservice/directoryservice_spec.rb +1 -1
- data/spec/unit/provider/package/dpkg_spec.rb +2 -2
- data/spec/unit/provider/package/macports_spec.rb +6 -5
- data/spec/unit/provider/package/msi_spec.rb +1 -1
- data/spec/unit/provider/package/pacman_spec.rb +1 -1
- data/spec/unit/provider/package/rpm_spec.rb +1 -1
- data/spec/unit/provider/package/sun_spec.rb +4 -4
- data/spec/unit/provider/package/windows_spec.rb +1 -1
- data/spec/unit/provider/scheduled_task/win32_taskscheduler_spec.rb +14 -11
- data/spec/unit/provider/user/directoryservice_spec.rb +943 -0
- data/spec/unit/provider/user/ldap_spec.rb +22 -8
- data/spec/unit/provider/user/windows_adsi_spec.rb +4 -4
- data/spec/unit/provider_spec.rb +1 -1
- data/spec/unit/run_spec.rb +1 -1
- data/spec/unit/settings_spec.rb +16 -0
- data/spec/unit/ssl/certificate_authority_spec.rb +24 -0
- data/spec/unit/util/adsi_spec.rb +4 -8
- data/spec/unit/util/diff_spec.rb +2 -2
- data/spec/unit/util/execution_spec.rb +78 -20
- data/spec/unit/util/feature_spec.rb +12 -1
- data/spec/unit/util/selinux_spec.rb +20 -0
- data/spec/unit/util/windows/sid_spec.rb +100 -0
- data/spec/unit/util_spec.rb +17 -0
- metadata +71 -48
- data/Gemfile.lock +0 -44
- data/lib/puppet/provider/interface/base.rb +0 -0
data/spec/unit/util_spec.rb
CHANGED
@@ -509,4 +509,21 @@ describe Puppet::Util do
|
|
509
509
|
should == "C:/work/puppet/c.rb:12:in `foo'"
|
510
510
|
end
|
511
511
|
end
|
512
|
+
|
513
|
+
describe "#execute" do
|
514
|
+
let(:command) { 'mycommand' }
|
515
|
+
|
516
|
+
it "should pass arguments through" do
|
517
|
+
arguments = 'myarg'
|
518
|
+
Puppet::Util::Execution.expects(:execute).with(command, arguments)
|
519
|
+
|
520
|
+
subject.execute(command, arguments)
|
521
|
+
end
|
522
|
+
|
523
|
+
it "should not supply default arguments" do
|
524
|
+
Puppet::Util::Execution.expects(:execute).with(command)
|
525
|
+
|
526
|
+
subject.execute(command)
|
527
|
+
end
|
528
|
+
end
|
512
529
|
end
|
metadata
CHANGED
@@ -1,58 +1,67 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: puppet
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
prerelease:
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
hash: -4280708972
|
5
|
+
prerelease: 6
|
6
|
+
segments:
|
7
|
+
- 3
|
8
|
+
- 0
|
9
|
+
- 2
|
10
|
+
- rc
|
11
|
+
- 1
|
12
|
+
version: 3.0.2.rc1
|
6
13
|
platform: ruby
|
7
|
-
authors:
|
14
|
+
authors:
|
8
15
|
- Puppet Labs
|
9
16
|
autorequire:
|
10
17
|
bindir: bin
|
11
18
|
cert_chain: []
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
|
-
requirements:
|
19
|
-
- - ~>
|
20
|
-
- !ruby/object:Gem::Version
|
21
|
-
version: 1.6.11
|
22
|
-
type: :runtime
|
23
|
-
prerelease: false
|
24
|
-
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
|
-
requirements:
|
27
|
-
- - ~>
|
28
|
-
- !ruby/object:Gem::Version
|
29
|
-
version: 1.6.11
|
30
|
-
- !ruby/object:Gem::Dependency
|
19
|
+
|
20
|
+
date: 2012-12-04 00:00:00 Z
|
21
|
+
dependencies:
|
22
|
+
- !ruby/object:Gem::Dependency
|
31
23
|
name: hiera
|
32
|
-
|
24
|
+
prerelease: false
|
25
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
33
26
|
none: false
|
34
|
-
requirements:
|
27
|
+
requirements:
|
35
28
|
- - ~>
|
36
|
-
- !ruby/object:Gem::Version
|
29
|
+
- !ruby/object:Gem::Version
|
30
|
+
hash: 23
|
31
|
+
segments:
|
32
|
+
- 1
|
33
|
+
- 0
|
34
|
+
- 0
|
37
35
|
version: 1.0.0
|
38
36
|
type: :runtime
|
37
|
+
version_requirements: *id001
|
38
|
+
- !ruby/object:Gem::Dependency
|
39
|
+
name: facter
|
39
40
|
prerelease: false
|
40
|
-
|
41
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
41
42
|
none: false
|
42
|
-
requirements:
|
43
|
+
requirements:
|
43
44
|
- - ~>
|
44
|
-
- !ruby/object:Gem::Version
|
45
|
-
|
45
|
+
- !ruby/object:Gem::Version
|
46
|
+
hash: 25
|
47
|
+
segments:
|
48
|
+
- 1
|
49
|
+
- 6
|
50
|
+
- 11
|
51
|
+
version: 1.6.11
|
52
|
+
type: :runtime
|
53
|
+
version_requirements: *id002
|
46
54
|
description: Puppet, an automated configuration management tool
|
47
55
|
email: info@puppetlabs.com
|
48
|
-
executables:
|
56
|
+
executables:
|
49
57
|
- puppet
|
50
58
|
extensions: []
|
59
|
+
|
51
60
|
extra_rdoc_files: []
|
52
|
-
|
61
|
+
|
62
|
+
files:
|
53
63
|
- CONTRIBUTING.md
|
54
64
|
- Gemfile
|
55
|
-
- Gemfile.lock
|
56
65
|
- LICENSE
|
57
66
|
- Rakefile
|
58
67
|
- README.md
|
@@ -491,7 +500,6 @@ files:
|
|
491
500
|
- lib/puppet/provider/group/pw.rb
|
492
501
|
- lib/puppet/provider/group/windows_adsi.rb
|
493
502
|
- lib/puppet/provider/host/parsed.rb
|
494
|
-
- lib/puppet/provider/interface/base.rb
|
495
503
|
- lib/puppet/provider/interface/cisco.rb
|
496
504
|
- lib/puppet/provider/ldap.rb
|
497
505
|
- lib/puppet/provider/macauthorization/macauthorization.rb
|
@@ -814,6 +822,7 @@ files:
|
|
814
822
|
- lib/puppet/util/windows/process.rb
|
815
823
|
- lib/puppet/util/windows/registry.rb
|
816
824
|
- lib/puppet/util/windows/security.rb
|
825
|
+
- lib/puppet/util/windows/sid.rb
|
817
826
|
- lib/puppet/util/windows/user.rb
|
818
827
|
- lib/puppet/util/windows.rb
|
819
828
|
- lib/puppet/util/zaml.rb
|
@@ -1633,6 +1642,7 @@ files:
|
|
1633
1642
|
- spec/unit/provider/service/windows_spec.rb
|
1634
1643
|
- spec/unit/provider/ssh_authorized_key/parsed_spec.rb
|
1635
1644
|
- spec/unit/provider/sshkey/parsed_spec.rb
|
1645
|
+
- spec/unit/provider/user/directoryservice_spec.rb
|
1636
1646
|
- spec/unit/provider/user/hpux_spec.rb
|
1637
1647
|
- spec/unit/provider/user/ldap_spec.rb
|
1638
1648
|
- spec/unit/provider/user/pw_spec.rb
|
@@ -1809,39 +1819,50 @@ files:
|
|
1809
1819
|
- spec/unit/util/user_attr_spec.rb
|
1810
1820
|
- spec/unit/util/warnings_spec.rb
|
1811
1821
|
- spec/unit/util/windows/registry_spec.rb
|
1822
|
+
- spec/unit/util/windows/sid_spec.rb
|
1812
1823
|
- spec/unit/util/zaml_spec.rb
|
1813
1824
|
- spec/unit/util_spec.rb
|
1814
1825
|
- spec/watchr.rb
|
1815
1826
|
homepage: https://github.com/puppetlabs/puppet
|
1816
1827
|
licenses: []
|
1828
|
+
|
1817
1829
|
post_install_message:
|
1818
|
-
rdoc_options:
|
1830
|
+
rdoc_options:
|
1819
1831
|
- --title
|
1820
1832
|
- Puppet - Configuration Management
|
1821
1833
|
- --main
|
1822
1834
|
- README.md
|
1823
1835
|
- --line-numbers
|
1824
|
-
require_paths:
|
1836
|
+
require_paths:
|
1825
1837
|
- lib
|
1826
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
1838
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
1827
1839
|
none: false
|
1828
|
-
requirements:
|
1829
|
-
- -
|
1830
|
-
- !ruby/object:Gem::Version
|
1831
|
-
|
1832
|
-
|
1840
|
+
requirements:
|
1841
|
+
- - ">="
|
1842
|
+
- !ruby/object:Gem::Version
|
1843
|
+
hash: 3
|
1844
|
+
segments:
|
1845
|
+
- 0
|
1846
|
+
version: "0"
|
1847
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
1833
1848
|
none: false
|
1834
|
-
requirements:
|
1835
|
-
- -
|
1836
|
-
- !ruby/object:Gem::Version
|
1837
|
-
|
1849
|
+
requirements:
|
1850
|
+
- - ">"
|
1851
|
+
- !ruby/object:Gem::Version
|
1852
|
+
hash: 25
|
1853
|
+
segments:
|
1854
|
+
- 1
|
1855
|
+
- 3
|
1856
|
+
- 1
|
1857
|
+
version: 1.3.1
|
1838
1858
|
requirements: []
|
1859
|
+
|
1839
1860
|
rubyforge_project: puppet
|
1840
1861
|
rubygems_version: 1.8.24
|
1841
1862
|
signing_key:
|
1842
1863
|
specification_version: 3
|
1843
1864
|
summary: Puppet, an automated configuration management tool
|
1844
|
-
test_files:
|
1865
|
+
test_files:
|
1845
1866
|
- spec/fixtures/faulty_face/puppet/face/syntax.rb
|
1846
1867
|
- spec/fixtures/hiera.yaml
|
1847
1868
|
- spec/fixtures/integration/provider/mailalias/aliases/test1
|
@@ -2424,6 +2445,7 @@ test_files:
|
|
2424
2445
|
- spec/unit/provider/service/windows_spec.rb
|
2425
2446
|
- spec/unit/provider/ssh_authorized_key/parsed_spec.rb
|
2426
2447
|
- spec/unit/provider/sshkey/parsed_spec.rb
|
2448
|
+
- spec/unit/provider/user/directoryservice_spec.rb
|
2427
2449
|
- spec/unit/provider/user/hpux_spec.rb
|
2428
2450
|
- spec/unit/provider/user/ldap_spec.rb
|
2429
2451
|
- spec/unit/provider/user/pw_spec.rb
|
@@ -2600,6 +2622,7 @@ test_files:
|
|
2600
2622
|
- spec/unit/util/user_attr_spec.rb
|
2601
2623
|
- spec/unit/util/warnings_spec.rb
|
2602
2624
|
- spec/unit/util/windows/registry_spec.rb
|
2625
|
+
- spec/unit/util/windows/sid_spec.rb
|
2603
2626
|
- spec/unit/util/zaml_spec.rb
|
2604
2627
|
- spec/unit/util_spec.rb
|
2605
2628
|
- spec/watchr.rb
|
data/Gemfile.lock
DELETED
@@ -1,44 +0,0 @@
|
|
1
|
-
PATH
|
2
|
-
remote: .
|
3
|
-
specs:
|
4
|
-
puppet (2.7.19)
|
5
|
-
facter (~> 1.5)
|
6
|
-
|
7
|
-
GEM
|
8
|
-
remote: http://rubygems.org/
|
9
|
-
specs:
|
10
|
-
diff-lcs (1.1.3)
|
11
|
-
facter (1.6.11)
|
12
|
-
metaclass (0.0.1)
|
13
|
-
mocha (0.10.5)
|
14
|
-
metaclass (~> 0.0.1)
|
15
|
-
rack (1.4.1)
|
16
|
-
rspec (2.10.0)
|
17
|
-
rspec-core (~> 2.10.0)
|
18
|
-
rspec-expectations (~> 2.10.0)
|
19
|
-
rspec-mocks (~> 2.10.0)
|
20
|
-
rspec-core (2.10.1)
|
21
|
-
rspec-expectations (2.10.0)
|
22
|
-
diff-lcs (~> 1.1.3)
|
23
|
-
rspec-mocks (2.10.1)
|
24
|
-
|
25
|
-
PLATFORMS
|
26
|
-
ruby
|
27
|
-
|
28
|
-
DEPENDENCIES
|
29
|
-
facter (~> 1.6.4)
|
30
|
-
mocha (~> 0.10.5)
|
31
|
-
puppet!
|
32
|
-
rack (~> 1.4.1)
|
33
|
-
rspec (~> 2.10.0)
|
34
|
-
sys-admin (~> 1.5.6)
|
35
|
-
win32-api (~> 1.4.8)
|
36
|
-
win32-dir (~> 0.3.7)
|
37
|
-
win32-eventlog (~> 0.5.3)
|
38
|
-
win32-process (~> 0.6.5)
|
39
|
-
win32-security (~> 0.1.2)
|
40
|
-
win32-service (~> 0.7.2)
|
41
|
-
win32-taskscheduler (~> 0.2.2)
|
42
|
-
win32console (~> 1.3.2)
|
43
|
-
windows-api (~> 0.4.1)
|
44
|
-
windows-pr (~> 1.2.1)
|
File without changes
|