On Wed, Feb 18, 2015 at 10:27 AM, Helen Paterson <helen.pater...@gmail.com>
wrote:

> Hi,
>
> I set windows environment variables using puppet, but you must close the
> puppet agent window and open a new one to be able to use these variables.
>
> Can i do this programaticaly ?
>

Add the same value to the path[1][2] of the exec command (if that is what
you are using). Note when specifying paths for Windows, use semi-colon
(";") as a separator instead of colon.

Environment updates not immediately updating shells is part of how Windows
works, although it could probably could be resolved in a bit more elegant
way than it is likely being resolved now.

[1]
http://docs.puppetlabs.com/references/latest/type.html#exec-attribute-path
[2]
http://docs.puppetlabs.com/puppet/latest/reference/resources_exec_windows.html


> (i need git use git via puppet but you must set windows env git paths
> first )
>
 --
> You received this message because you are subscribed to the Google Groups
> "Puppet Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to puppet-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/puppet-users/4e95895d-2eb2-4a9e-bda2-b931d4f7c868%40googlegroups.com
> <https://groups.google.com/d/msgid/puppet-users/4e95895d-2eb2-4a9e-bda2-b931d4f7c868%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Rob Reynolds
Developer, Puppet Labs

*PuppetConf 2015 <http://2015.puppetconf.com/> is coming to Portland,
Oregon! Join us October 5-9.*
*Register now to take advantage of the Early Adopter discount
<https://www.eventbrite.com/e/puppetconf-2015-october-5-9-tickets-13115894995?discount=EarlyAdopter>
*
*--**save $349!*

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/CAMJiBK53VUaFDctgVuAOx7wbbb-RudDhTA7ZhxrNuVwUjhMhyA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to