Skip to content

Commit ecbeceb

Browse files
author
Aaron Russo
committed
Adding Modulefile, LICENSE and other metadata files.
1 parent d4b4ed8 commit ecbeceb

File tree

5 files changed

+100
-0
lines changed

5 files changed

+100
-0
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
pkg/

CHANGELOG

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
2013-08-12 Aaron Russo <[email protected]> - 0.0.1
2+
* Initial Release

LICENSE

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2013 The Regents of the University of California
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in
13+
all copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21+
THE SOFTWARE.

Modulefile

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
name 'arusso-stunnel'
2+
version '0.0.1'
3+
summary "stunnel management"
4+
description "stunnel management module with emphasis on working on redhat hosts
5+
behind an xinetd service"
6+
project_page "https://github.com/arusso/puppet-stunnel"
7+
license "MIT License"
8+
dependency 'puppetlabs/stdlib', '>= 2.6.0'

README.markdown

+68
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
# stunnel Module #
2+
3+
# Usage #
4+
5+
This module initially intended for use with xinetd. While these examples make
6+
use of arusso-xinetd, it is not a requirement, hence the lack of the explicit
7+
dependency in the ModuleFile.
8+
9+
## Examples ##
10+
11+
Setup an stunnel for 0.0.0.0:993 to localhost:994. Because stunnel wants a cert
12+
file with the private key, and intermediate and signed cert in a single file, we
13+
have the stunnel::cert type to combine the certs together for you. Certs are
14+
combined in the order they appear in the array. Certs are stored in
15+
/etc/stunnel/certs/ by default, and have permissions 600 and owned by root.
16+
17+
include stunnel
18+
$imaps_service = {
19+
'accept' => '0.0.0.0:993',
20+
'connect' => '127.0.0.1:994',
21+
}
22+
stunnel::tun { 'imaps':
23+
services => { 'imaps' => $imaps_service },
24+
options => 'NO_SSLv2',
25+
}
26+
27+
stunnel::cert { 'imaps':
28+
components => [ '/etc/pki/tls/certs/public-cert.crt', '/etc/pki/tls/private/private.key' ],
29+
}
30+
31+
include xinetd
32+
xinetd_imaps = {
33+
'disable' => 'no',
34+
'type' => 'unlisted',
35+
'port' => '993',
36+
'socket_type' => 'stream',
37+
'wait' => 'no',
38+
'user' => 'root',
39+
'protocol' => 'tcp',
40+
'server' => '/usr/bin/stunnel',
41+
'server_args' => '/etc/stunnel/conf.d/imaps.conf',
42+
}
43+
xinetd::service_entry { 'stunnel-imaps':
44+
ensure => 'present',
45+
options => $xinetd_imaps,
46+
}
47+
48+
License
49+
-------
50+
51+
See LICENSE file
52+
53+
Copyright
54+
---------
55+
56+
Copyright &copy; 2013 The Regents of the University of California
57+
58+
59+
Contact
60+
-------
61+
62+
Aaron Russo <[email protected]>
63+
64+
Support
65+
-------
66+
67+
Please log tickets and issues at the
68+
[Projects site](https://github.com/arusso/puppet-stunnel/issues/)

0 commit comments

Comments
 (0)