Issue #21133 has been updated by Josh Cooper.

Puppet currently captures the [DisplayVersion string from the 
registry](https://github.com/puppetlabs/puppet/blob/master/lib/puppet/provider/package/windows/exe_package.rb#L12),
 but [does not report on 
it](https://github.com/puppetlabs/puppet/blob/master/lib/puppet/provider/package/windows.rb#L40-L42).
 The reason why is because I haven't thought through the implications of 
allowing puppet to report on the version, but not be able to install a 
particular version. In other words, we always try to make the output of `puppet 
resource package` be a valid manifest to subsequent `puppet apply` run.

We could have the windows provider implement the versionable feature, so that 
it could report on a specific version. We could then allow the version to be 
specified, which should correspond to the package that the `source` parameter 
points to. However, if they are mismatched, then puppet could get into a cycle 
where it runs every time, thinking that the version is out of sync. But we have 
this problem now with the package name needing to match (case-sensitively) to 
the DisplayName value from the registry.

So perhaps the thing to do is to add the versionable feature, but have the 
provider issue a warning if the version it installed did not match the version 
specified in the ensure property.

----------------------------------------
Feature #21133: Add versionable feature to windows package provider
https://projects.puppetlabs.com/issues/21133#change-96741

* Author: matt f
* Status: Needs Decision
* Priority: Normal
* Assignee: 
* Category: 
* Target version: 
* Affected Puppet version: 
* Keywords: windows
* Branch: 
----------------------------------------
package provider on windows does not report package version:

<pre>
C:\marionette-collective\bin>puppet resource package Puppet
package { 'Puppet':
  ensure => 'installed',
}
</pre>

On linux the version is reported:
<pre>
# puppet resource package puppet
package { 'puppet':
  ensure => '3.2.1-1.el6',
}
</pre>

This above example is on puppet for windows version 3.2.1


-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://projects.puppetlabs.com/my/account

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to