Older versions with Puppet

Asked

Viewed 80 times

3

I am learning Vagrant and Puppet and want to know if possible install old versions of PHP, Mysql, Apache using Puppet? If so, how to do?

Ex: PHP 5.4.9, 5.5 Mysql 5.5.27, 5.6

1 answer

2

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 repositories list.

  • Configure your own repository that contains this package

  • Install directly by specifying the path to the package as explained below.

It could be so:

package { 'php' : 
    ensure => '5.2' , 
    source => '/caminho/para/o/php-5.2.rpm' , 
}

Outspoken answer from here

  • What is this "php-5.2. rpm" ?

  • serves the way to tar.gz ?

  • 1

    .rpm is the distribution package you are using. In this case, it could be Fedora. You are using Ubuntu?

  • Yes, I use Ubuntu 13.04 .. where do I find these packages ? I need mysql versions tbm

  • Update the question with the versions of the packages you need, so we can try to help you.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.