On 15 December 2010 13:08, Adrian Tofan <tofan.adr...@gmail.com> wrote:
>
> Thank you for an interesting idea ,
>
>> Hi Adrian,
>>
>> I'm not sure but I imagine by just trying to 'source' the profile within the 
>> current puppet runtime the scope will be lost as it would be called within 
>> an exec?
>>
>> Obviously if you are not worried about running puppet multiple times you 
>> might be able to source it in your 'prerun_command' script
>
> I didn't manage to convince puppet to source the profile...
>
> I've tried to add in [agent] section
>
> prerun_command=/root/somecommand
>
> but the command was not executed and I didn't see any log about it.

According to the source (0.25.5), prerun commands are executed in
child processes, so when the child exits, their environment is lost.

Regards
-- 
Jonathan Barber <jonathan.bar...@gmail.com>

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-us...@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to