Issue #18769 has been updated by Jeff Johnson.

I don't know if this will help much, but I've been adding a `checkinstall` 
script to the packages I want to install.  In the `checkinstall` script, I look 
up the version of the existing package and compare it to the version I want to 
install.  If they don't match, go ahead and continue with the installation 
(i.e. `checkinstall` returns 0).  Otherwise, bail out of the installation 
because the currently installed package is already at the correct version 
(`checkinstall` returns 1).  In my puppet modules, I copy the `checkinstall` 
script into the package before asking puppet to install it.  I got the idea 
from here:  
http://www.ibiblio.org/pub/packages/solaris/i86pc/html/creating.solaris.packages.html

Here's an example of one of my `checkinstall` scripts:

<pre>
<code class="c">
#!/bin/bash
#
package="SUNWj6rt"
expected_release="(1.6.0_43)"
release=`pkginfo -x | grep -w ${package} | awk '{print $6""}'`

#echo "DEBUG:  got variable data."

if [ ! "${release}" ]; then
        release="absent"
#       echo "DEBUG:  set release to absent."
fi

#echo "DEBUG:  release value:  ${release}"
#echo "DEBUG:  expected_release value: ${expected_release}"

if [ ${release} = ${expected_release} ]; then
    echo "\n\n\n\tThe ${package} package is already at ${release} on this 
machine.\n"
    echo "\tAborting installation.\n\n\n"
    exit 1
fi

exit 0
</code>
</pre>

----------------------------------------
Feature #18769: Solaris 10 packages not versionable?
https://projects.puppetlabs.com/issues/18769#change-90759

* Author: Brandon Wilson
* Status: Unreviewed
* Priority: Normal
* Assignee: 
* Category: Solaris
* Target version: 
* Affected Puppet version: 
* Keywords: solaris package versionable
* Branch: 
----------------------------------------
Created a module to ensure that openssh is up to date on all of our hosts. When 
executing `puppet agent -t` on the test host, it returns with:

err: Failed to apply catalog: Parameter ensure failed: Provider must have 
features 'versionable' to set 'ensure' to '6.1p1'

Are Solaris packages not versionable? Seems like a big oversight if so.


-- 
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to