From 2a414edaf58497cf8dc5d716d0e7d84d9a882f90 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Sat, 12 May 2012 14:23:08 -0300 Subject: Initial import --- manifests/init.pp | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 manifests/init.pp (limited to 'manifests/init.pp') 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"], + } +} -- cgit v1.2.3