Issue #13104 has been updated by Collaboration TR.
File init.pp.bak2 added
File init.pp added
We have our build script to generate new product and package code every build
as shown in Jenkins log below
[echo] Replacing ProductCode from 8609758C-B32D-4535-AAFE-FA4CE1CB40F4 to
FEAD20B4-0B92-4605-BFBD-A40258F95ECE
[echo] Replacing PackageCode from CA4C3F0A-5BED-4280-9062-48F3E6B420F9 to
3D5982D6-E6DA-4351-95B3-C7686FA30C4A
In addition, I'm attaching 2 init.pp files I used for your review in case I did
not use correct syntax.
Also, I tried to use ensure => '1.0.49' in second file instead but got an error
msg below
`info: Retrieving plugin
info: Loading facts in
C:/ProgramData/PuppetLabs/puppet/var/lib/facter/facter_dot_d.rb
info: Caching catalog for nyci-admws01
err: Failed to apply catalog: Parameter ensure failed: Provider must have
features 'versionable' to set 'ensure' to '1.0.49' at
/etc/puppetlabs/puppet/modules/adminws/manifests/init.pp:6`
----------------------------------------
Feature #13104: Detect if newer version of MSI is available for upgrade
https://projects.puppetlabs.com/issues/13104#change-56957
Author: Collaboration TR
Status: Rejected
Priority: Normal
Assignee:
Category: unknown
Target version:
Affected Puppet version: 2.7.5
Keywords:
Branch:
1. Create 2 MSI packages with different version.
2. Install the first package on target system via puppet.
3. Install the second package on target system via puppet without uninstalling
the first package first
Note : We modified the MSI package to automatically uninstall the old version
and install the new one on top of the old one right away if the new one has
higher version number. This is tested manually and it works.
**Expected result**
- Newer package with higher version number is installed successfully on target
system via puppet.
**Result**
- First package is installed successfully on the target system via puppet.
- Second(newer) package is NOT installed on the target system via puppet.
- Changing init.pp script to use the following line for second package caused
error
* ensure = >'[version number]' or
ensure => latest*
some error msg was thrown stating that the provider does not support
"versionable"
--
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 post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/puppet-bugs?hl=en.