Skip to content

Commit 2d12613

Browse files
committed
move 3rdparty ansible galaxy roles to roles/galaxy
1 parent c83b72b commit 2d12613

File tree

94 files changed

+1813
-5
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

94 files changed

+1813
-5
lines changed

.gitignore

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,3 @@
66
# vagrant logs
77
/ubuntu-xenial-16.04-cloudimg-console.log
88

9-
# installed via requirements.yml
10-
/roles/Stouts.openvpn/

ansible.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[defaults]
22
# inventory = ./environments/test
33
retry_files_enabled = False
4-
roles_path = ./roles
4+
roles_path = ./roles/galaxy:./roles
55
gathering = smart
66
fact_caching = jsonfile
77
fact_caching_connection = ./.facts
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
[bumpversion]
2+
commit = True
3+
current_version = 2.4.1
4+
tag = True
5+
tag_name = {new_version}
6+
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
---
2+
3+
language: python
4+
5+
env:
6+
- MOLECULE_DISTRO=ubuntu1604
7+
- MOLECULE_DISTRO=ubuntu1804
8+
- MOLECULE_DISTRO=debian8 MOLECULE_INIT_CMD=/lib/systemd/systemd
9+
- MOLECULE_DISTRO=debian9 MOLECULE_INIT_CMD=/lib/systemd/systemd
10+
- MOLECULE_DISTRO=debian10 MOLECULE_INIT_CMD=/lib/systemd/systemd
11+
install:
12+
- pip install docker molecule ansible-lint
13+
14+
script:
15+
- molecule test
16+
17+
notifications:
18+
webhooks: https://galaxy.ansible.com/api/v1/notifications/
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
Contributors:
2+
3+
* Adam Kunicki (https://github.com/kunickiaj)
4+
* Adham Helal (https://github.com/ahelal)
5+
* Daniel Miranda (https://github.com/danielkza)
6+
* Elias (https://github.com/viderizer)
7+
* Federico Capoano (https://github.com/nemesisdesign)
8+
* JP Viljoen (https://github.com/froztbyte)
9+
* Jason Bond Pratt (https://github.com/juniorplenty)
10+
* Kirill Klenov (http://klen.github.io/)
11+
* Kurt Sussman (https://github.com/neophiliac)
12+
* Mahmoud Abdelkader (https://github.com/mahmoudimus)
13+
* Marcelo Anton (https://github.com/mbanton)
14+
* Maxim Kravets (https://github.com/zeelax)
15+
* Michael Frister (https://github.com/meeee)
16+
* Mohammed Naser (https://github.com/mnaser)
17+
* Roland von Ohlen (https://github.com/RockingRolli)
18+
* Sebastien Badia (https://github.com/sbadia)
19+
* Thomas Krille (https://github.com/tkrille)
20+
* https://github.com/teadur

roles/galaxy/Stouts.openvpn/LICENSE

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2014 Stouts
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 all
13+
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 THE
21+
SOFTWARE.
22+

roles/galaxy/Stouts.openvpn/Makefile

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
.PHONY: release major minor patch
2+
3+
VERSION?=minor
4+
release:
5+
@bumpversion $(VERSION)
6+
@git checkout master
7+
@git merge develop
8+
@git checkout develop
9+
@git push --all
10+
@git push --tags
11+
@git checkout develop
12+
13+
major:
14+
make release VERSION=major
15+
16+
minor:
17+
make release VERSION=minor
18+
19+
patch:
20+
make release VERSION=patch

roles/galaxy/Stouts.openvpn/README.md

Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
# Stouts.openvpn
2+
3+
[![Build Status](http://img.shields.io/travis/Stouts/Stouts.openvpn.svg?style=flat-square)](https://travis-ci.org/Stouts/Stouts.openvpn)
4+
[![Galaxy](http://img.shields.io/badge/galaxy-Stouts.openvpn-blue.svg?style=flat-square)](https://galaxy.ansible.com/Stouts/openvpn/)
5+
6+
Ansible role that installs an openvpn server
7+
8+
* Install and setup OpenVPN server
9+
* Setup authentication
10+
11+
## Requirements
12+
13+
Previous versions of the role supported generating certificates and keys for the
14+
OpenVPN server to use. Since version 3.0.0, such support has been removed and
15+
the users of the role are expected to use some other way of generating
16+
certificates/keys (eg using another Ansible role). See the example playbook for
17+
an example.
18+
19+
An EasyRSA role that was created specifically to compliment this role can be
20+
found [here](https://github.com/nkakouros-original/ansible-role-easyrsa).
21+
22+
## Supported platforms
23+
24+
- Ubuntu 14.04
25+
- Ubuntu 16.04
26+
- Ubuntu 18.04
27+
- Debian 8
28+
- Debian 9
29+
- Centos 7
30+
31+
## Variables
32+
33+
See [defaults/main.yml](defaults/main.yml) for a full list of variables together
34+
with documentation on how to use them to configure this role.
35+
36+
## Elastic Beats from monitoring
37+
### Heartbeat monitor
38+
39+
The role comes bundled with a [meta/monitors.yml](meta/monitors.yml) template
40+
that can be used by [Heartbeat](https://www.elastic.co/products/beats/heartbeat)
41+
to check if the OpenVPN server is up and running. The template can be
42+
configured via variables (they should be self-explanatory). To use it, you can
43+
use some Ansible tasks to upload it to your Heartbeat instance. For example:
44+
45+
```yaml
46+
- name: Add earth-kibana host
47+
add_host:
48+
name: heartbeat_instance
49+
hostname: "{{ heartbeat.hostname }}"
50+
ansible_host: "{{ heartbeat.ansible_host }}"
51+
ansible_password: "{{ heartbeat.ansible_password }}"
52+
ansible_user: "{{ heartbeat.ansible_user }}"
53+
54+
- name: Upload role monitors
55+
template:
56+
src: "{{ item.1 + '/' + item.0 }}/meta/monitors.yml"
57+
dest: "/etc/heartbeat/monitors.d/{{ inventory_hostname }}.{{ item.0.split('.')[-1] }}.yml"
58+
when: (item.1 + '/' + item.0 + '/meta/monitors.yml') is file
59+
loop: "{{ roles | product(lookup('config', 'DEFAULT_ROLES_PATH')) | list }}"
60+
delegate_to: heartbeat_instance
61+
```
62+
63+
### Filebeat input
64+
65+
The role also includes a filebeat input file that can be uploaded to a filebeat
66+
server. The input reads the OpenVPN log and reads the lines that correspond to
67+
successful connections. The role includes an Elasticsearch ingest pipeline that
68+
can be imported to Elasticsearch to parse and break the log lines into fields.
69+
The files can be found under the `meta/` folder.
70+
71+
## Example playbook
72+
73+
See [molecule/default/playbook.yml](molecule/default/playbook.yml) for a working
74+
example of how to use this role.
75+
76+
77+
## License
78+
79+
Licensed under the MIT License. See the LICENSE file for details.
80+
81+
## Feedback, bug-reports, requests, ...
82+
83+
...are [welcome](https://github.com/Stouts/Stouts.openvpn/issues)!

0 commit comments

Comments
 (0)