Permalink
Browse files

initial commit

  • Loading branch information...
0 parents commit 84ddfc4a2371bc67af023aee1aa22f4e60cf4913 @mbornoz mbornoz committed Oct 27, 2009
Showing with 61 additions and 0 deletions.
  1. 0 README
  2. +59 −0 manifests/classes/base.pp
  3. +2 −0 manifests/init.pp
0 README
No changes.
@@ -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,
+ }
+}
@@ -0,0 +1,2 @@
+
+import "classes/*.pp"

0 comments on commit 84ddfc4

Please sign in to comment.