Skip to content

Commit

Permalink
Merge pull request #101 from play-iot/release/vpnc-deployer/0.10.1
Browse files Browse the repository at this point in the history
Release/vpnc deployer/0.10.1
  • Loading branch information
zero88 authored Jun 16, 2021
2 parents b6b5476 + f58d280 commit 03e986f
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 6 deletions.
6 changes: 6 additions & 0 deletions cli/CHANGELOG-VPNC-DEPLOYER.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog

## [v0.10.1](https://github.com/play-iot/iot-vpn/tree/vpnc-deployer/v0.10.1) (2021-06-16)

### Improvement

- Move `fix-connman-dhcp` into `roles/vpnc-state`

## [v0.10.0](https://github.com/play-iot/iot-vpn/tree/vpnc-deployer/v0.10.0) (2021-06-16)

### Improvement
Expand Down
1 change: 1 addition & 0 deletions cli/ansible/roles/vpnc-state/defaults/main.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
args_vpn_state_show: False
args_vpn_state_assert_install: False
args_vpn_state_assert_work: False
args_vpn_state_fix_connman: False
args_vpn_state_test_domains:
- google.com
4 changes: 4 additions & 0 deletions cli/ansible/roles/vpnc-state/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@
- name: Check VPNC CLI install
include_tasks: 01_check_vpnc_cli.yml

- name: Fix Connman DHClient if needed
when: args_vpn_state_fix_connman and resp_vpnc_state['is_exec']
include_tasks: tasks/connman_dhclient.yml

- name: Check VPNC service status
include_tasks: 02_check_vpnc_service.yml

Expand Down
4 changes: 1 addition & 3 deletions cli/ansible/wf-vpnc-extend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,10 @@
vars:
runtime_vpn_conn: "{{ resp_prepare_credential }}"

- name: Fix Connman DHClient if needed
include_tasks: tasks/connman_dhclient.yml

- name: Validate VPNC state
include_role:
name: vpnc-state
vars:
args_vpn_state_show: True
args_vpn_state_fix_connman: True
args_vpn_state_assert_work: True
4 changes: 1 addition & 3 deletions cli/ansible/wf-vpnc-rollout.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,12 @@
include_role:
name: vpnc-upgrade

- name: Fix Connman DHClient if needed
include_tasks: tasks/connman_dhclient.yml

- name: Validate VPNC state
when: wf_precondition_is_installed or wf_precondition_is_upgraded
include_role:
name: vpnc-state
vars:
args_vpn_state_show: True
args_vpn_state_assert_install: True
args_vpn_state_fix_connman: True
args_vpn_state_assert_work: "{{ wf_precondition_is_work == 0 }}"
1 change: 1 addition & 0 deletions cli/ansible/wf-vpnc-state.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,4 @@
name: vpnc-state
vars:
args_vpn_state_show: True
args_vpn_state_fix_connman: True

0 comments on commit 03e986f

Please sign in to comment.