Skip to content

Instantly share code, notes, and snippets.

@bigbigbang
Created May 3, 2013 09:13
Show Gist options
  • Save bigbigbang/5508128 to your computer and use it in GitHub Desktop.
Save bigbigbang/5508128 to your computer and use it in GitHub Desktop.
Thruk cookbook from git
#
# 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