How to make sure we have package install using puppet only once and it doesn't upgrade the package ?
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?
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.