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

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

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

revision 287 by misc, Thu Nov 18 18:07:50 2010 UTC revision 288 by misc, Thu Nov 18 18:19:21 2010 UTC
# Line 33  class postfix { Line 33  class postfix {
33    
34      class smtp_server inherits base {      class smtp_server inherits base {
35          include postgrey          include postgrey
     }  
   
     class primary_smtp inherits smtp_server {  
36          file { '/etc/postfix/main.cf':          file { '/etc/postfix/main.cf':
37              content => template("postfix/primary_main.cf"),              content => template("postfix/main.cf"),
38          }          }
39    
40          file { '/etc/postfix/master.cf':          file { '/etc/postfix/transport_regexp':
41              content => template("postfix/primary_master.cf"),              ensure => present,
42                owner => root,
43                group => root,
44                mode => 644,
45                content => template("postfix/transport_regexp"),
46          }          }
47    
48          file { '/etc/postfix/transport_regexp':      }
49              content => template("postfix/primary_transport_regexp"),  
50        class primary_smtp inherits smtp_server {
51            file { '/etc/postfix/master.cf':
52                content => template("postfix/primary_master.cf"),
53          }          }
54      }      }
55    
56      class secondary_smtp inherits smtp_server {      class secondary_smtp inherits smtp_server {
         file { '/etc/postfix/main.cf':  
             content => template("postfix/secondary_main.cf"),  
         }  
57      }      }
58    
59  }  }

Legend:
Removed from v.287  
changed lines
  Added in v.288

  ViewVC Help
Powered by ViewVC 1.1.28