-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #95 from play-iot/release/vpnc-deployer/0.10.0
Release/vpnc deployer/0.10.0
- Loading branch information
Showing
9 changed files
with
50 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,40 @@ | ||
# Changelog | ||
|
||
## [v0.9.4](https://github.com/play-iot/iot-vpn/tree/vpnc-deployer/v0.9.4) (2021-05-13) | ||
## [v0.10.0](https://github.com/play-iot/iot-vpn/tree/vpnc-deployer/v0.10.0) (2021-06-16) | ||
|
||
### Improvement | ||
|
||
- Provide workaround for [#91](https://github.com/play-iot/iot-vpn/issues/91) | ||
|
||
## [v0.9.4](https://github.com/play-iot/iot-vpn/tree/vpnc-deployer/v0.9.4) (2021-06-10) | ||
|
||
### Improvement | ||
|
||
- Add `arm64` option in `deployer-cli` to allow downloading `vpnc-armv64` | ||
- Sync version with `vpnc` | ||
|
||
## [v0.9.3](https://github.com/play-iot/iot-vpn/tree/vpnc-deployer/v0.9.3) (2021-05-13) | ||
|
||
### Improvement | ||
|
||
- Add `vpnc-deployer-cli` tool | ||
- Sync version with `vpnc` | ||
|
||
## [v0.1.2](https://github.com/play-iot/iot-vpn/tree/vpnc-deployer/v0.1.2) (2021-05-06) | ||
|
||
### Improvement | ||
|
||
- Use [mitogen](https://github.com/mitogen-hq/mitogen) with `Ansible` to improve performance | ||
- Add missing `jmespath` lib in `Ansible` image | ||
|
||
## [v0.1.1](https://github.com/play-iot/iot-vpn/tree/vpnc-deployer/v0.1.1) (2021-05-05) | ||
|
||
### Fixed | ||
|
||
- Fix wrong variable | ||
|
||
## [v0.1.0](https://github.com/play-iot/iot-vpn/tree/vpnc-deployer/v0.1.0) (2021-05-05) | ||
|
||
### Added | ||
|
||
- `Ansible` for bulk setup/rollout/extend VPNC |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
- name: Check is Connman | ||
command: "which connmanctl" | ||
register: runtime_is_connmand | ||
ignore_errors: yes | ||
|
||
- name: Setup Connman DHCP Client | ||
when: runtime_is_connmand.rc == 0 | ||
block: | ||
- name: Restart VPN service | ||
ansible.builtin.service: | ||
name: "{{ vpnc_service }}" | ||
state: started | ||
|
||
- name: Query VPN status | ||
command: "{{ vpnc_cli }} status --json" | ||
register: runtime_dhcp_is_status | ||
ignore_errors: yes | ||
|
||
- name: Run dhclient if needed | ||
when: | ||
- runtime_dhcp_is_status.rc != 0 | ||
- (runtime_dhcp_is_status.stdout | from_json)['vpn_account'] | ||
- (runtime_dhcp_is_status.stdout | from_json)['vpn_pid'] > 0 | ||
- not (runtime_dhcp_is_status.stdout | from_json)['vpn_ip'] | ||
command: "dhclient --no-pid -v -nw vpn_{{ (runtime_dhcp_is_status.stdout | from_json)['vpn_account'] }}" | ||
become: yes | ||
become_method: sudo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
APP_VERSION = '0.9.5' | ||
APP_VERSION = '0.10.0' | ||
HASH_VERSION = 'dev' | ||
|
||
print(f'vpnc-deployer {APP_VERSION}-{HASH_VERSION}') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters