Skip to content

Commit

Permalink
10gen package names changed.
Browse files Browse the repository at this point in the history
  • Loading branch information
wfarr committed Sep 15, 2011
1 parent 9278a49 commit 028a82c
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions lib/mongodb.rb
Expand Up @@ -88,7 +88,6 @@ def mongodb(hash = {})
:before => exec('rake tasks')
elsif ubuntu_lucid?
options = {
:release => 'stable',
:dbpath => '/var/lib/mongodb',
:logpath => '/var/log/mongodb',
:port => '27017',
Expand Down Expand Up @@ -116,20 +115,20 @@ def mongodb(hash = {})
exec('10gen apt-key')
]

if options[:release] == 'unstable'
package "mongodb-10gen-unstable",
if options[:version] =~ /1.8.\..*$/
package 'mongodb18-10gen',
:alias => 'mongodb',
:ensure => options[:version],
:require => [ exec('apt-get update'), package('mongodb-10gen') ]

package 'mongodb-10gen', :ensure => :absent
else
package "mongodb-10gen",
:alias => 'mongodb',
package 'mongodb-10gen',
:ensure => options[:version],
:require => [ exec('apt-get update'), package('mongodb-10gen-unstable') ]

package 'mongodb-10gen-unstable', :ensure => :absent
:alias => 'mongodb',
:require => [ exec('apt-get update'), package('mongodb18-10gen') ]

package 'mongodb18-10gen', :ensure => :absent
end

file '/etc/mongodb.conf',
Expand Down

0 comments on commit 028a82c

Please sign in to comment.