Created
May 3, 2013 09:13
-
-
Save bigbigbang/5508128 to your computer and use it in GitHub Desktop.
Thruk cookbook from git
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# Cookbook Name:: thruk | |
# Recipe:: default | |
# | |
# Copyright 2013, YOUR_COMPANY_NAME | |
# | |
# All rights reserved - Do Not Redistribute | |
# | |
execute "mkdir" do | |
command "mkdir -p ~/test/thruk/" | |
end | |
execute "git clone" do | |
command "cd ~/test/thruk/" | |
command "git clone https://github.com/sni/Thruk.git ~/test/thruk/" | |
end | |
execute "touch thruk_local" do | |
command "touch ./thruk_local.conf" | |
end | |
template "./thruk_local.conf" do | |
source "thruk_local.conf" | |
end | |
execute "export lib" do | |
ENV['PERL5LIB'] = "/usr/lib/thruk/perl5/" | |
end | |
execute "launch" do | |
command "sudo ~/test/thruk/script/thruk_server.pl" | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment