GithubHelp home page GithubHelp logo

Comments (7)

badgerious avatar badgerious commented on August 20, 2024 1

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.

pngfei avatar pngfei commented on August 20, 2024 1

quote the REG_EXPAND_SZ, the issue is gone

from puppetlabs-windows_env.

badgerious avatar badgerious commented on August 20, 2024

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.

mikecurrancs avatar mikecurrancs commented on August 20, 2024

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.

mikecurrancs avatar mikecurrancs commented on August 20, 2024

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.

mikecurrancs avatar mikecurrancs commented on August 20, 2024

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.

badgerious avatar badgerious commented on August 20, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.