Skip to content
Extraits de code Groupes Projets
Valider c5a94c60 rédigé par root's avatar root
Parcourir les fichiers

Daemontools installs and starts up mongo

parent a9451d19
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -4,3 +4,4 @@ end
include_recipe "centos::image_magick"
include_recipe "centos::mongo_db"
include_recipe "common::main"
......@@ -7,5 +7,9 @@ execute "refresh yum" do
end
execute "install mongo" do
command "yum install -y mongo-stable"
command "yum install -y mongo-stable-server"
end
execute "make the data directory" do
command "mkdir -p /data/db"
end
execute "get the daemontools repo" do
command "mkdir -p /package/admin && cd /package/admin && git clone git://github.com/MikeSofaer/daemontools.git daemontools-0.76 || true"
end
execute "compile daemontools" do
command "cd /package/admin/daemontools-0.76 && ./package/install"
end
execute "mongo run" do
command "mkdir -p /service/mongo && echo '#!/bin/sh' > /service/mongo/run && echo 'exec /usr/bin/mongod' >> /service/mongo/run"
end
execute "executable" do
command "chmod -R 755 /service/mongo"
end
include_recipe "common::daemontools"
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter