|
# cat foo.pp |
user { 'user1': |
ensure => 'present', |
gid => 10008, |
groups => ['bla'], |
home => '/home/user1', |
provider => 'useradd', |
shell => '/bin/bash', |
uid => '10008', |
} |
|
# puppet apply --noop foo.pp |
Notice: Compiled catalog for foo in environment production in 0.02 seconds |
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/type/user.rb:468: warning: deprecated Object#=~ is called on Integer; it always returns nil |
Notice: /Stage[main]/Main/User[user1]/ensure: current_value 'absent', should be 'present' (noop) |
Notice: Class[Main]: Would have triggered 'refresh' from 1 event Notice: Stage[main]: Would have triggered 'refresh' from 1 event Notice: Applied catalog in 0.41 seconds
|
vs.
# cat foo.pp |
user { 'user1': |
ensure => 'present', |
gid => '10008', |
groups => ['bla'], |
home => '/home/user1', |
provider => 'useradd', |
shell => '/bin/bash', |
uid => '10008', |
} |
|
|
# puppet apply --noop foo.pp |
Notice: Compiled catalog for foo in environment production in 0.02 seconds |
Notice: /Stage[main]/Main/User[user1]/ensure: current_value 'absent', should be 'present' (noop) |
Notice: Class[Main]: Would have triggered 'refresh' from 1 event |
Notice: Stage[main]: Would have triggered 'refresh' from 1 event |
Notice: Applied catalog in 0.42 seconds
|
|
|