Skip to content

Commit

Permalink
Start on sites
Browse files Browse the repository at this point in the history
  • Loading branch information
ranguard committed Feb 2, 2013
1 parent 4ce6a07 commit 42b0b63
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 0 deletions.
3 changes: 3 additions & 0 deletions puppet/manifests/site.pp
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,7 @@
include sheep::configs
include sheep::packages
include sheep::user::admins

include sheep::web::laurielapworth
include sheep::web::imageeasel
}
22 changes: 22 additions & 0 deletions puppet/modules/sheep/manifests/web/imageeasel.pp
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
class sheep::web::imageeasel {
nginx::vhost { "imageeasel.com":
bare => true,
aliases => ["www.imageeasel.com", "$hostname.imageeasel.com"],
}

nginx::proxy { "imageeasel.com":
target => "http://localhost:5002",
vhost => "imageeasel.com",
location => "",
}

startserver { "www-imageeasel":
root => "/home/leo/git/www-imageeasel",
perlbin => $perlbin,
port => 5002,
}->
service { "www-imageeasel":
ensure => running,
enable => true,
}
}
22 changes: 22 additions & 0 deletions puppet/modules/sheep/manifests/web/laurielapworth.pp
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
class sheep::web::laurielapworth {
nginx::vhost { "laurielapworth.com":
bare => true,
aliases => ["www.laurielapworth.com", "$hostname.laurielapworth.com"],
}

nginx::proxy { "laurielapworth.com":
target => "http://localhost:5001",
vhost => "laurielapworth.com",
location => "",
}

startserver { "www-laurielapworth":
root => "/home/leo/git/photoweb",
perlbin => $perlbin,
port => 5001,
}->
service { "www-laurielapworth":
ensure => running,
enable => true,
}
}

0 comments on commit 42b0b63

Please sign in to comment.