Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Install a specific version #4

Closed
sebastiaanluca opened this issue Oct 7, 2013 · 5 comments
Closed

Install a specific version #4

sebastiaanluca opened this issue Oct 7, 2013 · 5 comments

Comments

@sebastiaanluca
Copy link

I can't seem to find this anywhere, but how should I handle things if I want to install a specific version of Redis that's crucial to my server setup?

@arioch
Copy link
Contributor

arioch commented Oct 7, 2013

This should do the trick:

class { 'redis:
  package_ensure => '2.6.16';
}

@sebastiaanluca
Copy link
Author

Thanks for quick help!

Works great, but I do have to specify the version very detailed. Like package_ensure => "2:2.4.14-1". Running sudo apt-cache show redis-server shows me what versions are available. And I only have that one, so not many options. Anything else gives me:

E: Version '2.6.16' for 'redis-server' was not found

@sebastiaanluca
Copy link
Author

Another issue, partially related (should I create a new?):

$ sudo service redis-server start
Starting redis-server: 
*** FATAL CONFIG FILE ERROR ***
Reading the configuration file, at line 107
>>> 'stop-writes-on-bgsave-error yes'
Bad directive or wrong number of arguments
failed
Redis server version 2.4.14 (00000000:0)

@arioch
Copy link
Contributor

arioch commented Jan 28, 2014

That's because 2.4 is no longer supported using this module.
It works with 2.6 and the current stable version 2.8.

@arioch arioch closed this as completed Jan 28, 2014
@v6
Copy link

v6 commented Dec 2, 2015

// , Excellent support Arioch. I had this same question, and this answers it for me.

Much better to control this the way that you have outlined, rather than a "redis version" value or something.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants