virtual.pp 282 Bytes
Newer Older
Francois Deppierraz's avatar
Francois Deppierraz committed
1
define postfix::virtual ($ensure, $destination) {
2
3
4
5
6
  line {"${name} ${destination}":
    ensure => present,
    file   => "/etc/postfix/virtual",
    line   => "${name} ${destination}",
    notify => Exec["generate /etc/postfix/virtual.db"],
7
    require => Package["postfix"],
8
9
  }
}