Ask Your Question
0

package upgrade using dpkg provider

asked 2013-04-25 01:28:43 -0500

knightsamar gravatar image

I have a custom .deb package created for our environment, which I install using the package resource and dpkg provider by first putting the package file locally on that mchine. Now whenever, I have new features or fixes the custom package, I update it's version number in the control file and rebuild the deb package.

The package resource looks like this.

  package { "my_package":
      name      =>  'my_package',
      ensure    =>  installed,
      provider  =>  dpkg,
      source    =>  "${package_location}",
  }

But the package resource simply ignores that it is an updated package and doesn't install it.

How can I make the puppet package resource realize that it ... (more)

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
4

answered 2013-04-25 03:03:46 -0500

Setting ensure to installed or present will make sure you have the package installed but it doesn't care about updates. If you want to always install the latest version available set ensure to "latest". You could also the a specific version number.

edit flag offensive delete link more

Comments

1

Thanks Daniel! That works! I didn't try using 'latest' since dpkg didn't have the 'versionable' feature, but it works quite well in determining whether the given package is ...(more)

knightsamar gravatar imageknightsamar ( 2013-04-25 05:52:37 -0500 )edit

Your Answer

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

Add Answer

Question Tools

Stats

Asked: 2013-04-25 01:28:43 -0500

Seen: 2,587 times

Last updated: Apr 25 '13