Re: [Puppet Users] refactor use of ensure_packages to install new versions of php packages

2020-10-13 Thread Jochen Haeberle
Hi Garrett, thx for the thoughts. I am basically doing as you suggest. Whenever possible I hold to latest versions of package maintainers But Debian often comes with old versions of PHP which poses a problem. So I tend to use sury repositories to install newer but well tested packages of PHP.

Re: [Puppet Users] refactor use of ensure_packages to install new versions of php packages

2020-10-13 Thread Jochen Haeberle
Hi all, I solved this with the use of puppet iteration functions: class profile::software::apache ( $php_version= '7.4', $php_remove = ['7.0‘, ‘7.3'], #... ) { # build a hash of PHP Versions with a value of either present or absent # and iterate over it with each $phpInstallHa

Re: [Puppet Users] refactor use of ensure_packages to install new versions of php packages

2020-10-13 Thread A Manzer
Glad you managed to figure it out, and thanks for posting your solution for posterity! On Tuesday, October 13, 2020 at 12:26:35 PM UTC-4 jochen@gmail.com wrote: > Hi all, > > I solved this with the use of puppet iteration functions: > > class profile::software::apache ( > $php_version