hi! i''m new to puppet and i''m working in a Solaris zones deployment system. I can create a zone, but i need to configure zone with additional parameters that puppet can''t set by default. To reach this, i tried to configure zone with "puppet allowed" params like ip-type, create-args, shared, etc. and after zone creation i want to execute a zonecfg command containing additional params like capped-memory, add fs, etc. $command => "/usr/sbin/zonecfg -z zone -f zonecfg_commands_file" But here becomes my problem. When i launch puppet in zone host machine, puppet tries to execute zonecfg command BEFORE zone creation, and it returns 1 instead of 0. I need to create an "exec order" for executing command after zone is fully created. How i can set this dependency in exec command definition? Thanks in advance! -- 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.
Martin Englund
2010-May-19 16:12 UTC
[Puppet Users] Re: exec command if solaris zone exists
On May 19, 9:47 am, MorSa <jolivanpera...@gmail.com> wrote:> i''m new to puppet and i''m working in a Solaris zones deployment > system. I can create a zone, but i need to configure zone with > additional parameters that puppet can''t set by default. To reach this, > i tried to configure zone with "puppet allowed" params like ip-type, > create-args, shared, etc. and after zone creation i want to execute a > zonecfg command containing additional params like capped-memory, add > fs, etc. >I think you should be able to use the "create_args" and "install_args" to do that. If you send me a list of the params you want to set, I can add them...> But here becomes my problem. When i launch puppet in zone host > machine, puppet tries to execute zonecfg command BEFORE zone creation, > and it returns 1 instead of 0. I need to create an "exec order" for > executing command after zone is fully created. How i can set this > dependency in exec command definition? >You need to use: exec { "do something in the zone": command => "...", require => Zone["your-zone"] } exec { "depends on the first exec" command => "...", require => Exec["do something in the zone"] } cheers, /Martin -- 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.