Notifications
Clear all

How to make sure we have package install using puppet only once and it doesn't upgrade the package ?  

  RSS

amrit_3327
(@amrit_3327)
Trusted Member
Joined: 10 months ago
Posts: 53
27/06/2020 3:46 am  

In some cases we need package to be installed at particular version and dont want it to be upgraded on the machine without proper plan but still our repository is pointing to latest fetch. How can we use puppet to avoid its up gradation?


Quote
amrit_3327
(@amrit_3327)
Trusted Member
Joined: 10 months ago
Posts: 53
27/06/2020 3:53 am  

There are two possible solution which are coming across my mind.

1.) Use ensure => installed as part of resource type package and it will be installed once during the first deployment and will not upgrade it till any goes and manual remove the package.

 

2.) Fix the package version - Try to fix the package version in repository and make sure instead of pointing to latest you are always comparing it to fixed version number and when you are ready with new version install just change the package number.

 


ReplyQuote
Share: