Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
mbornoz committed Oct 27, 2009
0 parents commit 84ddfc4
Show file tree
Hide file tree
Showing 3 changed files with 61 additions and 0 deletions.
Empty file added README
Empty file.
59 changes: 59 additions & 0 deletions manifests/classes/base.pp
Original file line number Original file line Diff line number Diff line change
@@ -0,0 +1,59 @@
class tilecache::base {

if defined (Apt::Sources_list["sig-${lsbdistcodename}-c2c"]) {
notice "Sources-list for SIG packages is already defined"
} else {
apt::sources_list{"sig-${lsbdistcodename}-c2c":
ensure => present,
content => "deb http://dev.camptocamp.com/packages ${lsbdistcodename} sig\n",
}
}

if defined (Apt::Key["A37E4CF5"]) {
notice "Apt-key for SIG packages is already defined"
} else {
apt::key {"A37E4CF5":
source => "http://dev.camptocamp.com/packages/debian/pub.key",
}
}

package {
[
"tilecache",
"python-imaging",
"libapache2-mod-python",
"jpegoptim",
"jpeginfo",
"optipng",
"pngcheck",
"pngnq",
]:
ensure => present,
}

case $lsbdistcodename {
'etch' : {
apache::module {"mod_python":
ensure => present,
require => Package["libapache2-mod-python"],
}
}
'lenny' : {
apache::module {"python":
ensure => present,
require => Package["libapache2-mod-python"],
}
}
}

apache::module {"expires":
ensure => present,
}

file {"/var/cache/tilecache":
ensure => directory,
owner => "www-data",
group => "www-data",
mode => 2775,
}
}
2 changes: 2 additions & 0 deletions manifests/init.pp
Original file line number Original file line Diff line number Diff line change
@@ -0,0 +1,2 @@

import "classes/*.pp"

0 comments on commit 84ddfc4

Please sign in to comment.