Skip to content
Snippets Groups Projects
Commit c5a94c60 authored by root's avatar root
Browse files

Daemontools installs and starts up mongo

parent a9451d19
No related branches found
No related tags found
No related merge requests found
......@@ -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% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment