puppet 0.13.1 → 0.13.2
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/CHANGELOG +4 -0
- data/Rakefile +2 -2
- data/bin/puppet +29 -0
- data/bin/puppetd +35 -1
- data/conf/redhat/puppet.spec +1 -1
- data/lib/puppet.rb +1 -1
- data/lib/puppet/client/master.rb +34 -3
- data/lib/puppet/filetype.rb +6 -2
- data/lib/puppet/networkclient.rb +4 -1
- data/lib/puppet/parameter.rb +35 -38
- data/lib/puppet/parser/ast/node.rb +1 -0
- data/lib/puppet/parser/interpreter.rb +129 -2
- data/lib/puppet/parser/scope.rb +44 -6
- data/lib/puppet/type.rb +47 -37
- data/lib/puppet/type/cron.rb +25 -10
- data/lib/puppet/type/exec.rb +165 -71
- data/lib/puppet/type/nameservice.rb +2 -17
- data/lib/puppet/type/package.rb +31 -7
- data/lib/puppet/type/package/sun.rb +11 -6
- data/lib/puppet/type/parsedtype.rb +94 -60
- data/lib/puppet/type/parsedtype/host.rb +5 -12
- data/lib/puppet/type/parsedtype/port.rb +53 -32
- data/lib/puppet/type/parsedtype/sshkey.rb +8 -4
- data/lib/puppet/type/pfile.rb +6 -4
- data/lib/puppet/type/pfile/ensure.rb +1 -6
- data/lib/puppet/type/state.rb +34 -74
- data/lib/puppet/type/symlink.rb +30 -19
- data/lib/puppet/type/user.rb +63 -11
- data/lib/puppet/util.rb +54 -60
- data/test/client/master.rb +72 -0
- data/test/language/interpreter.rb +94 -0
- data/test/other/log.rb +8 -1
- data/test/puppet/utiltest.rb +101 -1
- data/test/test +12 -5
- data/test/types/cron.rb +21 -1
- data/test/types/exec.rb +46 -2
- data/test/types/group.rb +15 -3
- data/test/types/host.rb +43 -4
- data/test/types/port.rb +67 -6
- data/test/types/sshkey.rb +45 -4
- data/test/types/symlink.rb +4 -4
- data/test/types/type.rb +41 -3
- data/test/types/user.rb +23 -2
- metadata +3 -2
data/test/types/user.rb
CHANGED
@@ -4,7 +4,7 @@ if __FILE__ == $0
|
|
4
4
|
$puppetbase = "../../../../language/trunk"
|
5
5
|
end
|
6
6
|
|
7
|
-
# $Id: user.rb
|
7
|
+
# $Id: user.rb 912 2006-02-15 18:23:33Z luke $
|
8
8
|
|
9
9
|
require 'etc'
|
10
10
|
require 'puppet/type'
|
@@ -250,7 +250,6 @@ class TestUser < Test::Unit::TestCase
|
|
250
250
|
|
251
251
|
newuid = old
|
252
252
|
while true
|
253
|
-
Puppet.warning newuid.inspect
|
254
253
|
newuid += 1
|
255
254
|
|
256
255
|
if newuid - old > 1000
|
@@ -367,6 +366,28 @@ class TestUser < Test::Unit::TestCase
|
|
367
366
|
end
|
368
367
|
}
|
369
368
|
end
|
369
|
+
|
370
|
+
def test_autorequire
|
371
|
+
file = tempfile()
|
372
|
+
user = Puppet.type(:user).create(
|
373
|
+
:name => "pptestu",
|
374
|
+
:home => file,
|
375
|
+
:gid => "pptestg"
|
376
|
+
)
|
377
|
+
home = Puppet.type(:file).create(
|
378
|
+
:path => file,
|
379
|
+
:ensure => "directory"
|
380
|
+
)
|
381
|
+
group = Puppet.type(:group).create(
|
382
|
+
:name => "pptestg"
|
383
|
+
)
|
384
|
+
Puppet::Type.finalize
|
385
|
+
comp = newcomp(user, group)
|
386
|
+
comp.retrieve
|
387
|
+
|
388
|
+
assert(user.requires?(group), "User did not require group")
|
389
|
+
assert(user.requires?(home), "User did not require home dir")
|
390
|
+
end
|
370
391
|
else
|
371
392
|
$stderr.puts "Not root; skipping user creation/modification tests"
|
372
393
|
end
|
metadata
CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.8.11
|
|
3
3
|
specification_version: 1
|
4
4
|
name: puppet
|
5
5
|
version: !ruby/object:Gem::Version
|
6
|
-
version: 0.13.
|
7
|
-
date: 2006-02-
|
6
|
+
version: 0.13.2
|
7
|
+
date: 2006-02-15 00:00:00 -06:00
|
8
8
|
summary: Puppet is a server configuration management tool.
|
9
9
|
require_paths:
|
10
10
|
- lib
|
@@ -177,6 +177,7 @@ files:
|
|
177
177
|
- test/executables/puppetca.rb
|
178
178
|
- test/executables/puppetmasterd.rb
|
179
179
|
- test/executables/puppetd.rb
|
180
|
+
- test/client/master.rb
|
180
181
|
- test/client/client.rb
|
181
182
|
- test/parser/parser.rb
|
182
183
|
- test/parser/lexer.rb
|