summaryrefslogtreecommitdiff
path: root/manifests/cert.pp
blob: 66ed574996f3516d4a7d3eb1e6ea6e1ff675d80b (plain)
1
2
3
4
5
6
7
8
9
10
11
# manage a cert snippet that we want to include
define strongswan::cert($cert) {
  file{"${strongswan::config_dir}/certs/${name}.asc":
    content => $cert,
    require => Package['strongswan'],
    notify  => Service['ipsec'],
    owner   => 'root',
    group   => 0,
    mode    => '0400';
  }
}