diff options
author | Raffael Schmid <raf@nine.ch> | 2013-01-25 17:31:35 +0100 |
---|---|---|
committer | Raffael Schmid <raf@nine.ch> | 2013-01-25 17:33:14 +0100 |
commit | 86c6b9456c3afa27f90946bd22ef9ed84c2d0968 (patch) | |
tree | ee4ec83e004c52e96d4b6ff765fe5dfe87a87c22 /manifests | |
parent | 99c529d57d1782d521ac5b9a82cedf8777a758b4 (diff) |
add license
Diffstat (limited to 'manifests')
-rw-r--r-- | manifests/client.pp | 28 | ||||
-rw-r--r-- | manifests/client_specific_config.pp | 16 | ||||
-rw-r--r-- | manifests/config.pp | 20 | ||||
-rw-r--r-- | manifests/init.pp | 16 | ||||
-rw-r--r-- | manifests/install.pp | 18 | ||||
-rw-r--r-- | manifests/params.pp | 16 | ||||
-rw-r--r-- | manifests/server.pp | 16 | ||||
-rw-r--r-- | manifests/service.pp | 14 |
8 files changed, 134 insertions, 10 deletions
diff --git a/manifests/client.pp b/manifests/client.pp index 581eece..4f3ad80 100644 --- a/manifests/client.pp +++ b/manifests/client.pp @@ -33,12 +33,12 @@ # Default: true # # [*persist_key*] -# Boolean. Try to retain access to resources that may be unavailable +# Boolean. Try to retain access to resources that may be unavailable # because of privilege downgrades # Default: true # # [*persist_tun*] -# Boolean. Try to retain access to resources that may be unavailable +# Boolean. Try to retain access to resources that may be unavailable # because of privilege downgrades # Default: true # @@ -84,6 +84,22 @@ # * John Kinsella <mailto:jlkinsel@gmail.com> # * Justin Lambert <mailto:jlambert@letsevenup.com> # +# === License +# +# Copyright 2013 Raffael Schmid, <raffael@yux.ch> +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# define openvpn::client( $server, $compression = 'comp-lzo', @@ -100,9 +116,9 @@ define openvpn::client( $verb = '3', ) { - Openvpn::Server[$server] -> + Openvpn::Server[$server] -> Openvpn::Client[$name] - + exec { "generate certificate for ${name} in context of ${server}": command => ". ./vars && ./pkitool ${name}", @@ -136,7 +152,7 @@ define openvpn::client( group => root, mode => '0444', content => template('openvpn/client.erb'), - notify => Exec["tar the thing ${server} with ${name}"]; + notify => Exec["tar the thing ${server} with ${name}"]; } # concat { @@ -149,7 +165,7 @@ define openvpn::client( # notify => Exec["tar the thing ${server} with ${name}"], # require => [ File['/etc/openvpn'], File["/etc/openvpn/${server}/download-configs/${name}"] ]; # } - + exec { "tar the thing ${server} with ${name}": cwd => "/etc/openvpn/${server}/download-configs/", diff --git a/manifests/client_specific_config.pp b/manifests/client_specific_config.pp index 231d55d..1e64a7f 100644 --- a/manifests/client_specific_config.pp +++ b/manifests/client_specific_config.pp @@ -41,6 +41,22 @@ # # * Raffael Schmid <mailto:raffael@yux.ch> # +# === License +# +# Copyright 2013 Raffael Schmid, <raffael@yux.ch> +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# define openvpn::client_specific_config( $server, $iroute = [], diff --git a/manifests/config.pp b/manifests/config.pp index 5767d8f..32b3209 100644 --- a/manifests/config.pp +++ b/manifests/config.pp @@ -13,11 +13,27 @@ # * John Kinsella <mailto:jlkinsel@gmail.com> # * Justin Lambert <mailto:jlambert@letsevenup.com> # +# === License +# +# Copyright 2013 Raffael Schmid, <raffael@yux.ch> +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# class openvpn::config { if $::osfamily == 'Debian' { include concat::setup - + concat { '/etc/default/openvpn': owner => root, @@ -33,4 +49,4 @@ class openvpn::config { order => 01; } } -}
\ No newline at end of file +} diff --git a/manifests/init.pp b/manifests/init.pp index a757873..f7ec9ad 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -16,6 +16,22 @@ # * John Kinsella <mailto:jlkinsel@gmail.com> # * Justin Lambert <mailto:jlambert@letsevenup.com> # +# === License +# +# Copyright 2013 Raffael Schmid, <raffael@yux.ch> +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# class openvpn { class {'openvpn::params': } -> diff --git a/manifests/install.pp b/manifests/install.pp index c22775d..a230373 100644 --- a/manifests/install.pp +++ b/manifests/install.pp @@ -15,6 +15,22 @@ # * John Kinsella <mailto:jlkinsel@gmail.com> # * Justin Lambert <mailto:jlambert@letsevenup.com> # +# === License +# +# Copyright 2013 Raffael Schmid, <raffael@yux.ch> +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# class openvpn::install { package { @@ -27,4 +43,4 @@ class openvpn::install { ensure => directory, require => Package['openvpn']; } -}
\ No newline at end of file +} diff --git a/manifests/params.pp b/manifests/params.pp index 838ca1f..c895e99 100644 --- a/manifests/params.pp +++ b/manifests/params.pp @@ -1,3 +1,19 @@ +# === License +# +# Copyright 2013 Raffael Schmid, <raffael@yux.ch> +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# class openvpn::params { $group = $::osfamily ? { diff --git a/manifests/server.pp b/manifests/server.pp index d4024a5..30b51a7 100644 --- a/manifests/server.pp +++ b/manifests/server.pp @@ -94,6 +94,22 @@ # * John Kinsella <mailto:jlkinsel@gmail.com> # * Justin Lambert <mailto:jlambert@letsevenup.com> # +# === License +# +# Copyright 2013 Raffael Schmid, <raffael@yux.ch> +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# define openvpn::server( $country, $province, diff --git a/manifests/service.pp b/manifests/service.pp index 57d764d..54e8db7 100644 --- a/manifests/service.pp +++ b/manifests/service.pp @@ -13,6 +13,18 @@ # * John Kinsella <mailto:jlkinsel@gmail.com> # * Justin Lambert <mailto:jlambert@letsevenup.com> # +# === License +# +# Copyright 2013 Raffael Schmid, <raffael@yux.ch> +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# lied. +# See the License for the specific language governing permissions and +# limitations under the License. +# class openvpn::service { service { 'openvpn': @@ -21,4 +33,4 @@ class openvpn::service { hasrestart => true, hasstatus => true; } -}
\ No newline at end of file +} |