summaryrefslogtreecommitdiff
path: root/manifests/push.pp
blob: e799b042ee60f9017fd0551e84dd43552bc7315e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
## push.pp
#
#define openvpn::push($network, $netmask, $server, $gateway = "undefined") {
#    
#    $gw = $gateway ? {
#        "undefined" => "",
#        default     => " ${gateway}"
#    }
#
#    common::concatfilepart {
#        "push ${name}":
#            ensure  => $ensure,
#            file    => "/etc/openvpn/${server}.conf",
#            content => "push \"route ${network} ${netmask}${gw}\"\n",
#            notify  => Service["openvpn"],
#            require => Package["openvpn"];
#    }
#}