diff options
author | Justin Lambert <jlambert@eml.cc> | 2013-01-10 20:34:48 -0700 |
---|---|---|
committer | Justin Lambert <jlambert@eml.cc> | 2013-01-10 20:34:48 -0700 |
commit | 5df60aad95fcff99ef5837577b0a70435e99d1aa (patch) | |
tree | 94f191531c4342052c43e96b59e299f63f069e5a /manifests/init.pp | |
parent | c0b642e0e81b3c12c52a5f4b2d8f5ae4317e8c36 (diff) |
documentation, refactoring to make the dependency chain easier to follow
Diffstat (limited to 'manifests/init.pp')
-rw-r--r-- | manifests/init.pp | 62 |
1 files changed, 22 insertions, 40 deletions
diff --git a/manifests/init.pp b/manifests/init.pp index a3dd70c..173b9bd 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -1,45 +1,27 @@ -# openvpn.pp - +# == Class: openvpn +# +# This module installs the openvpn service, configures vpn endpoints, generates +# client certificates, and generates client config files +# +# +# === Examples +# +# * Installation: +# class { 'openvpn': } +# +# +# === Authors +# +# * Raffael Schmid <mailto:raffael@yux.ch> +# * John Kinsella <mailto:jlkinsel@gmail.com> +# * Justin Lambert <mailto:jlambert@letsevenup.com> +# class openvpn { - package { - 'openvpn': - ensure => installed; - } - service { - 'openvpn': - ensure => running, - enable => true, - hasrestart => true, - hasstatus => true, - require => Exec['concat_/etc/default/openvpn']; - } - file { - '/etc/openvpn': - ensure => directory, - require => Package['openvpn']; - } - file { - '/etc/openvpn/keys': - ensure => directory, - require => File['/etc/openvpn']; - } - - include concat::setup - concat { - '/etc/default/openvpn': - owner => root, - group => root, - mode => 644, - warn => true, - notify => Service['openvpn']; - } + class {'openvpn::install': } -> + class {'openvpn::config': } ~> + class {'openvpn::service': } -> + Class['openvpn'] - concat::fragment { - 'openvpn.default.header': - content => template('openvpn/etc-default-openvpn.erb'), - target => '/etc/default/openvpn', - order => 01; - } } |