Skip to content

Commit

Permalink
Remove mongodb_version fact as it's not necessary. The mongodb class …
Browse files Browse the repository at this point in the history
…handles this for us

Fixes theforemanGH-91
  • Loading branch information
andymillar committed Aug 10, 2015
1 parent 260a9de commit 19a674b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 24 deletions.
16 changes: 0 additions & 16 deletions lib/facter/facts.rb

This file was deleted.

9 changes: 1 addition & 8 deletions manifests/database.pp
@@ -1,15 +1,8 @@
# Set up the pulp database
class pulp::database {
if $pulp::manage_db {
if (versioncmp($::mongodb_version, '2.6.5') >= 0) {
$mongodb_pidfilepath = '/var/run/mongodb/mongod.pid'
} else {
$mongodb_pidfilepath = '/var/run/mongodb/mongodb.pid'
}

class { '::mongodb::server':
pidfilepath => $mongodb_pidfilepath,
}
include ::mongodb::server

Service['mongodb'] -> Service['pulp_celerybeat']
Service['mongodb'] -> Service['pulp_workers']
Expand Down

0 comments on commit 19a674b

Please sign in to comment.