Skip to content

Commit 6b9727b

Browse files
author
Michal Muransky
authored
Merge pull request #13 from lablabs/feat/new_features
Feat/new features
2 parents 3305220 + 3bad480 commit 6b9727b

File tree

24 files changed

+206
-117
lines changed

24 files changed

+206
-117
lines changed

.github/RELEASE_DRAFTER.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,19 @@ categories:
1313
- 'bug'
1414
- title: 'Documentation'
1515
label: 'documentation'
16+
version-resolver:
17+
major:
18+
labels:
19+
- 'major'
20+
minor:
21+
labels:
22+
- 'enhancement'
23+
- 'feature'
24+
patch:
25+
labels:
26+
- 'ci'
27+
- 'bug'
28+
default: patch
1629
change-template: '- $TITLE, by @$AUTHOR (#$NUMBER)'
1730
template: |
1831
# What's changed

.github/workflows/galaxy.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
release:
1111
runs-on: ubuntu-20.04
1212
steps:
13-
- uses: actions/checkout@v2
13+
- uses: actions/checkout@v3
1414

1515
- name: Get the version name from the tags
1616
run: echo "RELEASE_VERSION=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_ENV

.github/workflows/molecule.yaml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,19 +30,23 @@ jobs:
3030
- image: "ubuntu2204"
3131
tag: "latest"
3232
steps:
33+
- name: Fix Git safe directories issue when in containers
34+
# cf: https://github.com/actions/checkout/issues/760
35+
run: git config --global --add safe.directory /__w/ansible-collection-wireguard/ansible-collection-wireguard
36+
3337
- name: checkout
34-
uses: actions/checkout@v2
38+
uses: actions/checkout@v3
3539
with:
3640
path: "${{ github.repository }}"
3741

3842
- name: Molecule for Ansible
39-
uses: robertdebock/molecule-action@4.0.7
43+
uses: robertdebock/molecule-action@4.0.9
4044
with:
4145
image: ${{ matrix.config.image }}
4246
tag: ${{ matrix.config.tag }}
4347

4448
- name: Upload configs
45-
uses: actions/upload-artifact@v2
49+
uses: actions/upload-artifact@v3
4650
with:
4751
name: client-configs
4852
path: clients/

.github/workflows/pre-commit.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
pre-commit:
1111
runs-on: ubuntu-20.04
1212
steps:
13-
- uses: actions/checkout@v2
13+
- uses: actions/checkout@v3
1414
- uses: actions/setup-python@v2
1515

1616
- name: Run pre-commit

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
clients
2+
server

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
[![Molecule test](https://github.com/lablabs/ansible-collection-wireguard/actions/workflows/molecule.yaml/badge.svg)](https://github.com/lablabs/ansible-collection-wireguard/actions/workflows/molecule.yaml)
44

5-
[<img src="ll-logo.png">](https://lablabs.io/)
5+
[<img src="https://lablabs.io/static/ll-logo.png" width=350px>](https://lablabs.io/)
66

77
Wireguard VPN Server Ansible Collection.
88

@@ -62,9 +62,9 @@ You may want to create a playbook to run all 3 playbooks in one run:
6262
tags: wireguard
6363
```
6464
65-
## Variables
65+
## Ansible Roles in this collection
6666
67-
[Wireguard Role Variables](roles/wireguard/defaults/main.yml)
67+
[Wireguard README](roles/wireguard/README.md)
6868
6969
## License
7070

galaxy.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
namespace: lablabs
33
name: wireguard
4-
version: "0.2.6"
4+
version: "0.3.0"
55
readme: README.md
66
authors:
77
- Labyrinth Labs <info@lablabs.io>
@@ -10,7 +10,7 @@ license_file: LICENSE
1010
tags: [wireguard, vpn, system, linux, security, networking]
1111
dependencies:
1212
devsec.hardening: "7.12.0"
13-
robertdebock.development_environment: "2.1.1"
13+
robertdebock.roles: "1.9.7"
1414
repository: https://github.com/lablabs/ansible-collection-wireguard
1515
documentation: https://github.com/lablabs/ansible-collection-wireguard
1616
homepage: https://www.lablabs.io

molecule/default/collections.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
---
33
collections:
44
- devsec.hardening
5-
- robertdebock.development_environment
5+
- robertdebock.roles

molecule/default/converge.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919
wireguard_dir: /data/wireguard
2020
wireguard_address: 10.214.214.0/24
2121
wireguard_download_clients: true
22+
wireguard_download_serverkeys: true
23+
wireguard_same_keys: true
2224
wireguard_additional_routes:
2325
- 172.11.0.0/16
2426
- 172.22.0.0/20

molecule/default/molecule.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,15 @@ dependency:
77
requirements-file: collections.yml
88
driver:
99
name: docker
10-
lint: |
11-
yamllint -s .
12-
ansible-lint --exclude molecule/ --exclude playbooks/
1310
platforms:
14-
- name: instance
11+
- name: instance1
12+
image: "geerlingguy/docker-${image:-ubuntu2004}-ansible:${tag:-latest}"
13+
command: ${MOLECULE_DOCKER_COMMAND:-""}
14+
volumes:
15+
- /sys/fs/cgroup:/sys/fs/cgroup:ro
16+
privileged: true
17+
pre_build_image: ${MOLECULE_PREBUILT:-true}
18+
- name: instance2
1519
image: "geerlingguy/docker-${image:-ubuntu2004}-ansible:${tag:-latest}"
1620
command: ${MOLECULE_DOCKER_COMMAND:-""}
1721
volumes:

0 commit comments

Comments
 (0)