On May 19, 9:47 am, MorSa <[email protected]> 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 [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/puppet-users?hl=en.