Hi,
I think I may have found a bug in how Mac OS X in handling group
resources (I''m still new at this).
Using Puppet 2.7.10 and Mac OS X I can create and modify groups
without error.
I provision...
group { ''com.apple.access_ssh'':
members => [''thisadmin'', ''thatadmin''],
gid => ''509'',
ensure => ''present''
}
Then append a single known common user...
group { ''com.apple.access_ssh'':
members => [''thisadmin'', ''thatadmin'',
''root''],
gid => ''509'',
ensure => ''present''
}
This works under Lion, but not under 10.5. or 10.6. Instead, I receive
this error...
debug: Puppet::Type::Group::ProviderDirectoryservice: Executing ''/usr/
bin/dscl -plist . -read /Groups/com.apple.access_ssh''
old and new mismatch!
err: /Stage[main]/Mmv2::System::Groups/Group[com.apple.access_ssh]:
Could not evaluate: old and new mismatch! at /etc/puppet/modules/mmv2/
manifests/system/groups.pp:11
The error appears to stem from a change to puppet/property.rb, but I''m
not sure why.
Any pointers? Should I file a bug?
Here''s the trace...
debug: Puppet::Type::Group::ProviderDirectoryservice: Executing ''/usr/
bin/dscl -plist . -read /Groups/com.apple.access_ssh''
old and new mismatch!
/Library/Ruby/Site/1.8/puppet/parameter.rb:165:in `fail''
/Library/Ruby/Site/1.8/puppet/property.rb:187:in `insync?''
/Library/Ruby/Site/1.8/puppet/property.rb:162:in `safe_insync?''
/Library/Ruby/Site/1.8/puppet/transaction/resource_harness.rb:61:in
`perform_changes''
/Library/Ruby/Site/1.8/puppet/transaction/resource_harness.rb:60:in
`each''
/Library/Ruby/Site/1.8/puppet/transaction/resource_harness.rb:60:in
`perform_changes''
/Library/Ruby/Site/1.8/puppet/transaction/resource_harness.rb:133:in
`evaluate''
/Library/Ruby/Site/1.8/puppet/transaction.rb:49:in `apply''
/Library/Ruby/Site/1.8/puppet/transaction.rb:84:in `eval_resource''
/Library/Ruby/Site/1.8/puppet/transaction.rb:104:in `evaluate''
/Library/Ruby/Site/1.8/puppet/util.rb:476:in `thinmark''
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/
1.8/benchmark.rb:308:in `realtime''
/Library/Ruby/Site/1.8/puppet/util.rb:475:in `thinmark''
/Library/Ruby/Site/1.8/puppet/transaction.rb:104:in `evaluate''
/Library/Ruby/Site/1.8/puppet/transaction.rb:386:in `traverse''
/Library/Ruby/Site/1.8/puppet/transaction.rb:99:in `evaluate''
/Library/Ruby/Site/1.8/puppet/resource/catalog.rb:141:in `apply''
/Library/Ruby/Site/1.8/puppet/configurer.rb:121:in
`retrieve_and_apply_catalog''
/Library/Ruby/Site/1.8/puppet/util.rb:180:in `benchmark''
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/
1.8/benchmark.rb:308:in `realtime''
/Library/Ruby/Site/1.8/puppet/util.rb:179:in `benchmark''
/Library/Ruby/Site/1.8/puppet/configurer.rb:120:in
`retrieve_and_apply_catalog''
/Library/Ruby/Site/1.8/puppet/configurer.rb:151:in `run''
/Library/Ruby/Site/1.8/puppet/agent.rb:46:in `run''
/Library/Ruby/Site/1.8/puppet/agent/locker.rb:11:in `lock''
/Library/Ruby/Site/1.8/puppet/agent.rb:46:in `run''
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/
1.8/sync.rb:230:in `synchronize''
/Library/Ruby/Site/1.8/puppet/agent.rb:46:in `run''
/Library/Ruby/Site/1.8/puppet/agent.rb:110:in `with_client''
/Library/Ruby/Site/1.8/puppet/agent.rb:44:in `run''
/Library/Ruby/Site/1.8/puppet/application.rb:172:in `call''
/Library/Ruby/Site/1.8/puppet/application.rb:172:in `controlled_run''
/Library/Ruby/Site/1.8/puppet/agent.rb:42:in `run''
/Library/Ruby/Site/1.8/puppet/agent.rb:85:in `start''
/Library/Ruby/Site/1.8/puppet/external/event-loop/signal-system.rb:
95:in `call''
/Library/Ruby/Site/1.8/puppet/external/event-loop/signal-system.rb:
95:in `__signal__''
/Library/Ruby/Site/1.8/puppet/external/event-loop/signal-system.rb:
95:in `each''
/Library/Ruby/Site/1.8/puppet/external/event-loop/signal-system.rb:
95:in `__signal__''
(eval):2:in `signal''
/Library/Ruby/Site/1.8/puppet/external/event-loop/event-loop.rb:317:in
`sound_alarm''
/Library/Ruby/Site/1.8/puppet/agent.rb:89:in `start''
/Library/Ruby/Site/1.8/puppet/daemon.rb:125:in `start''
/Library/Ruby/Site/1.8/puppet/application/agent.rb:364:in `main''
/Library/Ruby/Site/1.8/puppet/application/agent.rb:319:in
`run_command''
/Library/Ruby/Site/1.8/puppet/application.rb:309:in `run''
/Library/Ruby/Site/1.8/puppet/application.rb:413:in `hook''
/Library/Ruby/Site/1.8/puppet/application.rb:309:in `run''
/Library/Ruby/Site/1.8/puppet/application.rb:404:in `exit_on_fail''
/Library/Ruby/Site/1.8/puppet/application.rb:309:in `run''
/Library/Ruby/Site/1.8/puppet/util/command_line.rb:69:in `execute''
/usr/bin/puppet:4
err: /Stage[main]/Mmv2::System::Groups/Group[com.apple.access_ssh]:
Could not evaluate: old and new mismatch! at /etc/puppet/modules/mmv2/
manifests/system/groups.pp:11
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to
puppet-users+unsubscribe@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/puppet-users?hl=en.