Report abuse

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
[root@dukesrvi01 puppet]# cat /etc/puppet/manifests/classes/sendmail.pp 
# /etc/puppet/manifests/classes/sendmail.pp

class sendmail {
    file { "/etc/mail/sendmail.cf":
        owner => "root",
        group => "root",
        mode  => 644,
        source => "puppet://dukesrvi01.tc.at.xxx.net/files/etc/mail/sendmail.cf",
        notify => Service[sendmail]
    }
    service { sendmail:
        ensure => running
    }
}