summaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
Diffstat (limited to 'manifests')
-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"],
+ }
+}