Skip to content
This repository has been archived by the owner on Jun 13, 2019. It is now read-only.

Commit

Permalink
* a tsung cookbook
Browse files Browse the repository at this point in the history
 * to be tested
  • Loading branch information
till committed Oct 28, 2010
1 parent cc843ac commit 27c969a
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tsung/files/default/tsung.host
@@ -0,0 +1,8 @@
server {
listen 80;

location / {
access_log off;
root /home/ubuntu/.tsung/log;
}
}
38 changes: 38 additions & 0 deletions tsung/recipes/setup.rb
@@ -0,0 +1,38 @@
package "nginx"
package "erlang-nox"

tsungver="1.3.3"
pkgrev="1"

remote_file "/tmp/tsung_#{tsungver}-#{pkgrev}_all.deb" do
source "http://tsung.erlang-projects.org/dist/ubuntu/tsung_#{tsungver}-#{pkgrev}_all.deb"
mode "0644"
backup false
create_if_missing
end

dpkg_package "/tmp/tsung_#{tsungver}-#{pkgrev}_all.deb"

directory "/home/ubuntu/.tsung/log" do
owner "ubuntu"
group "ubuntu"
mode "0755"
action :create
recursive true
end

remote_file "/etc/nginx/sites-enabled/default" do
source "tsung.host"
mode "0644"
owner "www-data"
group "www-data"
action :create
end

service "nginx" do
supports :status => true, :restart => true
action [ :enable, :restart ]
end

# put rules in ~/.tsung/rules.xml
# start with tsung start

0 comments on commit 27c969a

Please sign in to comment.