Feifei Jia
2012-Mar-14 06:48 UTC
[Puppet Users] Can Puppet Windows version support system variables like "%HOMEDRIVE%"?
I''ve created a testing manifest like this:
file { ''%HOMEDIRVE%\testdir'':
ensure => directory,
provider => windows,
}
Applied with error:
C:\Users\Administrator>puppet apply c:\init.pp
warning: Could not retrieve fact fqdn
Could not parse for environment production: Could not match %HOMEDRIVE% at
c:/in
it.pp:1 on node win-kw0tm8m9vbs
I''d like to know if Puppet Windows support Windows environment
variables?
Thanks.
Puppet version: 2.7.12
OS version: Windows 2008 R2
--
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/-/efEznx0xKfQJ.
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.
Bruce Richardson
2012-Mar-14 08:54 UTC
Re: [Puppet Users] Can Puppet Windows version support system variables like "%HOMEDRIVE%"?
On Tue, Mar 13, 2012 at 11:48:20PM -0700, Feifei Jia wrote:> > I''d like to know if Puppet Windows support Windows environment variables?Operating system environment variables are not directly accessible, no, although any that beging FACTER_ will be imported as facts (so that "%FACTER_EXAMPLE%" is available as "$example". You can create your own custom facts to import any others that you want. See here: http://projects.puppetlabs.com/projects/puppet/wiki/Environment_Variables_Patterns -- Bruce The ice-caps are melting, tra-la-la-la. All the world is drowning, tra-la-la-la-la. -- Tiny Tim. -- 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.