Parent Directory | Revision Log
- fix the x86_64 trick by directly embedding the code in the template, as this avoid the various scoping problem
1 | class postfix { |
2 | |
3 | class base { |
4 | package { postfix: |
5 | ensure => installed |
6 | } |
7 | |
8 | service { postfix: |
9 | ensure => running, |
10 | subscribe => [ Package['postfix']], |
11 | path => "/etc/init.d/postfix" |
12 | } |
13 | } |
14 | |
15 | file { '/etc/postfix/main.cf': |
16 | ensure => present, |
17 | owner => root, |
18 | group => root, |
19 | mode => 644, |
20 | require => Package["postfix"], |
21 | content => "", |
22 | notify => [Service['postfix']] |
23 | } |
24 | |
25 | |
26 | class simple_relay inherits base { |
27 | file { '/etc/postfix/main.cf': |
28 | content => template("postfix/simple_relay_main.cf"), |
29 | } |
30 | } |
31 | } |
ViewVC Help | |
Powered by ViewVC 1.1.30 |