Ask Your Question

windows package ensure version has space at the end

asked 2015-01-15 11:52:04 -0600

r0b0tAnthony gravatar image


I'm 90% sure the reason my package on windows keeps installing is because the package I am installing has a space at the end when running:

puppet resource package

Here is the output: image description

See the Vray Package? It has a space at the end. I tried a manual work around by editing the registry. Editing DisplayVersion showed no space but I saved anyway. Rerunning puppet resource package showed the space removed. However, the package still doesn't see that this version is already installed. Not sure what to do at this point.

edit retag flag offensive close merge delete


Can you run "puppet agent -t --debug --trace" and post a link to a pastebin of the output? That might shed some light on your question.

GregLarkin gravatar imageGregLarkin ( 2015-01-20 19:51:07 -0600 )edit

Here is the log Here is the ENC for the catalog:

r0b0tAnthony gravatar imager0b0tAnthony ( 2015-02-03 12:36:58 -0600 )edit

Sorry for the delayed response, but can you post your relevant Puppet code somewhere for review?

GregLarkin gravatar imageGregLarkin ( 2015-02-05 21:33:45 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2015-02-09 01:13:28 -0600

joshc gravatar image

I assume this package is creating DisplayName and DisplayVersion entries with trailing spaces. That's unfortunate.

It looks like puppet keeps trying to install the package, because the DisplayName registry value has a space (based on the output of puppet resource package), but the manifest does not (based on the output of the log: "Package[V-Ray for 3dsmax 2014 for x64]").

Can you try adding a space to the package name in the manifest, so that it matches the DisplayName exactly? I don't know if puppet will strip that along the way.

One option would be to use the registry module to ensure the DisplayName does not have a trailing space, and omit spaces in the manifest.

Also, you might want to file a ticket ( ) so that puppet trims leading and trailing space from package names.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2015-01-15 11:52:04 -0600

Seen: 122 times

Last updated: Feb 09 '15