sounds like it requires a master and hiera. I'm running standalone.
Re env vars, I managed to figure that out. The following resource sets the
global system var FOO_BAR to the current value of PATH, with ";baz"
appended to the end of it:
exec { "cmd.exe /c reg add \"HKLM\SYSTEM\CurrentControlSet\Control\Session
Manager\Environment\" /v FOO_BAR /t REG_SZ /d \"$::path;baz\" /f":
path => $::path
}
Note the escaped quotes.
On Windows 7 you could use the builtin 'setx' command instead, but I'm
being wacky and using Puppet on XP, which doesn't have setx.
On Thursday, August 16, 2012 3:20:11 PM UTC-5, Ryan Coleman wrote:
the first two points. http://forge.puppetlabs.com/nanliu/staging
With a couple of Puppet resources, it will retrieve the zip file from
a url, store it somewhere and unzip it wherever you want. He lists
some examples on the Forge page. They're for tar.gz files but the
resources automatically handle zipped files should they have the
proper .zip extension.
the list can. :-)
--On Thu, Aug 16, 2012 at 12:44 PM, Jeff Sussna wrote:
I want to use Puppet to manage Groovy and Gradle on Windows machines. The
install process for each looks like:
1. Download zip file from a URL
2. Unzip
The nanliu/staging module on the Puppet Forge will at least get youI want to use Puppet to manage Groovy and Gradle on Windows machines. The
install process for each looks like:
1. Download zip file from a URL
2. Unzip
the first two points. http://forge.puppetlabs.com/nanliu/staging
With a couple of Puppet resources, it will retrieve the zip file from
a url, store it somewhere and unzip it wherever you want. He lists
some examples on the Forge page. They're for tar.gz files but the
resources automatically handle zipped files should they have the
proper .zip extension.
3. Create a Windows environment variable to point to the location where you
unzipped
4. Add that environment variable/bin to the global PATH environment
variable.
I'm sorry I can't help you with these two. Hopefully someone else onunzipped
4. Add that environment variable/bin to the global PATH environment
variable.
the list can. :-)
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/T6nV_YJoptkJ.
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.