/[adm]/puppet/modules/blog/manifests/init.pp
ViewVC logotype

Diff of /puppet/modules/blog/manifests/init.pp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2575 by misc, Sat Mar 17 12:03:46 2012 UTC revision 2576 by misc, Sat Mar 17 12:03:47 2012 UTC
# Line 1  Line 1 
1  class blog {  class blog {
   
2      class base {      class base {
3          $blog_location = "/var/www/vhosts/blog.$domain"          $blog_domain = "blog.$::domain"
4          $blog_domain = "blog.$domain"          $blog_location = "/var/www/vhosts/$blog_domain"
5          $blog_db_backupdir = "/var/lib/backups/blog_db"          $blog_db_backupdir = "/var/lib/backups/blog_db"
6          $blog_files_backupdir = "/var/lib/backups/blog_files"          $blog_files_backupdir = "/var/lib/backups/blog_files"
7    
8          user { "blog":          user { 'blog':
9          groups => apache,              groups  => apache,
10          comment => "Mageia Blog",              comment => 'User to run script checking for new blog post',
11          home => "/var/lib/blog",              home    => '/var/lib/blog',
12          }          }
13      }      }
14            
# Line 44  class blog { Line 43  class blog {
43              content => template('blog/blogs_vhosts.conf'),              content => template('blog/blogs_vhosts.conf'),
44          }          }
45    
46          file { "$blog_location":          file { $blog_location:
47                  ensure => directory,                  ensure => directory,
48                  owner => apache,                  owner => apache,
49                  group => apache,                  group => apache,
                 mode => 644,  
50          }          }
51      }      }
52    

Legend:
Removed from v.2575  
changed lines
  Added in v.2576

  ViewVC Help
Powered by ViewVC 1.1.30