Carl -- What's in your manifest? Are you doing "ensure => latest"?
If so, the results you are seeing could makes sense if you haven't done anything to make "insync?" aware of versions. It would detect the resource as "present" and then set it to "latest" each time. See lib/puppet/type/package.rb to see an example of making "insync?" version-aware (though this is probably more complex than you need, as it's also dealing with other issues at the same time). -- Markus On Sun, Oct 17, 2010 at 4:32 PM, Carl Caum <[email protected]> wrote: > Hello all. I can't seem to get my ensurable to work for a custom type I'm > working on. Every time I run puppet I just get the message "ensure changed > 'present' to 'latest'". I feel like I'm missing something obvious. > > > ensurable do > desc "Possible values are *present*, *absent*, *installed*, and > *latest*." > > newvalue(:absent) do > if provider.exists? > provider.destroy > end > end > > newvalue(:present) do > unless provider.exists? > provider.create > end > end > aliasvalue(:installed, :present) > > newvalue(:latest) do > unless provider.latest? > provider.update > end > end > end > > -- > You received this message because you are subscribed to the Google Groups > "Puppet Developers" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]<puppet-dev%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/puppet-dev?hl=en. > > -- ----------------------------------------------------------- The power of accurate observation is commonly called cynicism by those who have not got it. ~George Bernard Shaw ------------------------------------------------------------ -- You received this message because you are subscribed to the Google Groups "Puppet Developers" 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-dev?hl=en.
