summaryrefslogtreecommitdiff
path: root/manifests/init.pp
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2012-05-12 14:23:08 -0300
committerSilvio Rhatto <rhatto@riseup.net>2012-05-12 14:23:08 -0300
commit2a414edaf58497cf8dc5d716d0e7d84d9a882f90 (patch)
tree7ca9e9e9e521c9626ea84b610017c41335bc03a7 /manifests/init.pp
downloadpuppet-hotglue-2a414edaf58497cf8dc5d716d0e7d84d9a882f90.tar.gz
puppet-hotglue-2a414edaf58497cf8dc5d716d0e7d84d9a882f90.tar.bz2
Initial import
Diffstat (limited to 'manifests/init.pp')
-rw-r--r--manifests/init.pp31
1 files changed, 31 insertions, 0 deletions
diff --git a/manifests/init.pp b/manifests/init.pp
new file mode 100644
index 0000000..30a8e09
--- /dev/null
+++ b/manifests/init.pp
@@ -0,0 +1,31 @@
+class hotglue {
+ case $apache_www_folder {
+ '': { $apache_www_folder = "/var/www" }
+ }
+
+ vcsrepo { "${apache_www_folder}/hotglue2":
+ ensure => present,
+ provider => git,
+ source => 'https://github.com/hotglue/hotglue2.git',
+ revision => 'ddd9ba49767e9fe92297160f26d72bf46b916b26',
+ owner => 'root',
+ group => 'root',
+ }
+
+ file { "${apache_www_folder}/hotglue2/sites":
+ ensure => directory,
+ owner => root,
+ group => root,
+ mode => 0755,
+ require => Vcsrepo["${apache_www_folder}/hotglue2"],
+ }
+
+ file { "${apache_www_folder}/hotglue2/user-config.inc.php":
+ ensure => present,
+ owner => root,
+ group => root,
+ mode => 0644,
+ source => "puppet:///modules/hotglue/user-config.inc.php",
+ require => Vcsrepo["${apache_www_folder}/hotglue2"],
+ }
+}