I am learning Vagrant and Puppet and want to know if possible install old versions of PHP, MySQL, Apache using the puppet? If so, how?
Ex: PHP 5.4.9, 5.5 Mysql 5.5.27, 5.6
I am learning Vagrant and Puppet and want to know if possible install old versions of PHP, MySQL, Apache using the puppet? If so, how?
Ex: PHP 5.4.9, 5.5 Mysql 5.5.27, 5.6
You can specify a version:
package { 'php' :
ensure => '5.2' ,
}
But remember that if the required version of the package (RPM, deb, etc) is not available in your default repository, you will have to follow one of these paths:
Find an alternative repository that has the package in the version you need and add it to the list of repositories.
Configure your own repository containing this package
Install directly by specifying the path to the package, as explained below.
It could look like this:
package { 'php' :
ensure => '5.2' ,
source => '/caminho/para/o/php-5.2.rpm' ,
}
Answer taken from here