Skip to content

Commit

Permalink
Updating neo4j module
Browse files Browse the repository at this point in the history
  • Loading branch information
roman committed Oct 6, 2011
1 parent ab8f07c commit 0d5d4ce
Showing 1 changed file with 6 additions and 40 deletions.
46 changes: 6 additions & 40 deletions neo4j/manifests/install.pp
@@ -1,44 +1,6 @@
class neo4j::install($user="vagrant", $source=false) {

if !$source {

case $operatingsystem {

"Archlinux": {
include pacman

$slf4j_url = "http://aur.archlinux.org/packages/sl/slf4j/slf4j.tar.gz"
$jakarta_url = "http://aur.archlinux.org/packages/ja/jakarta-commons-collections/jakarta-commons-collections.tar.gz"
$neo4j_url = "http://aur.archlinux.org/packages/ne/neo4j/neo4j.tar.gz"

pacman::aur { "jakarta-commons-collections":
user => $user,
resource_url => $jakarta_url
}

pacman::aur { "slf4j":
user => $user,
resource_url => $slf4j_url
}

pacman::aur { "neo4j":
user => $user,
resource_url => $neo4j_url,
require => Pacman::Aur["jakarta-commons-collections", "slf4j"]
}


}

default: {
err("Don't know how to build on $operatingsystem")
}

}

}
else {
class neo4j::install($source=true) {

if $source {

Exec {
cwd => "/tmp",
Expand Down Expand Up @@ -94,4 +56,8 @@
}

}
else {
err("There is no package for neo4j just yet")
}

}

0 comments on commit 0d5d4ce

Please sign in to comment.