Comments (7)
Try:
type => "REG_EXPAND_SZ",
Instead of
type => REG_EXPAND_SZ,
Seems like new puppet interprets unquoted strings differently. I'll have to update the docs.
from puppetlabs-windows_env.
quote the REG_EXPAND_SZ, the issue is gone
from puppetlabs-windows_env.
I haven't tested that particular combination, no. Could you show me a sample of the puppet code that results in that error?
from puppetlabs-windows_env.
Here is the code that works on PE3.8 / w2k8r2 -- we read in hiera to build the variables below.
class cs_win_java (
$jre_version,
$jre_installer,
$jre_pkgname,
$jre_directory,
$staging_path,
$puppet_file_mount
) {
file { $jre_installer:
ensure => file,
owner => 'Administrator',
group => 'Administrators',
mode => '0770',
path => "${staging_path}/${jre_installer}",
source => "puppet:///${puppet_file_mount}/${module_name}/${jre_installer}"
} ->
package { $jre_pkgname:
ensure => installed,
source => "${staging_path}/${jre_installer}",
install_options => ['/s'],
} ->
windows_env { "PATH=%ProgramFiles(x86)%\Java${jre_directory}\bin":
type => REG_EXPAND_SZ,
} ->
windows_env { "JAVA_HOME=%ProgramFiles(x86)%\Java${jre_directory}":
type => REG_EXPAND_SZ,
}
}
from puppetlabs-windows_env.
I realized my agent was 4.4.1 and server was 4.3.2 -- replace agent with 4.3.2 , hoping it was a 4.4.x issue -- but same error.
from puppetlabs-windows_env.
Well -- I found that I did not have win32/registry installed with puppet server 4.3.2 -- and that there is an open bug report, where your module is listed as affected by the way Ruby 2.1.x (pre-packaged with puppet 4.x) Win32::Registry is handled -- here is the link
https://tickets.puppetlabs.com/browse/PUP-3837
from puppetlabs-windows_env.
PUP-3837 was handled by #8, so that shouldn't be an issue. I'm not sure what you mean that you didn't have win32/registry installed with puppet server; it should only be installed on the Windows client, never on the (presumably Linux, but certainly not Windows) server.
I need to spin up a VM to test and I haven't had a chance yet; hopefully this weekend.
from puppetlabs-windows_env.
Related Issues (20)
- Unexpected symbol/character added to end of variable value when mergemode => clobber
- Set an environment variable in Ruby when setting it in the registry HOT 7
- Prepend, type REG_EXPAND_SZ seems to constantly add to PATH HOT 2
- Please add RSPEC test HOT 1
- Values with trailing slash do not include trailing slash HOT 2
- License - What type is it? HOT 1
- Puppet approved HOT 4
- unable to resolve type 'byte when ensuring absent
- Issue with setting env variables that have multiple values separated by ";" HOT 2
- Update Readme and remove references to badgerious HOT 1
- Inconsistent behavior for duplicate values
- Add a set of domain related facts
- Module does not work under Ruby 2.5 HOT 3
- Variable continues to re-apply on every Puppet run HOT 2
- Unable to Remove Entire Variable HOT 2
- Redefined constant warning from loading 'puppet/util/windows/sid'
- Type needs to be enclosed in single quotes to work. HOT 1
- Add support for puppet 7.x
- Puppet 7.x support HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from puppetlabs-windows_env.