Skip to content

Commit

Permalink
fix(xenial): use reload: false for service
Browse files Browse the repository at this point in the history
To avoid this error:

```
Failed to reload strongswan.service: Job type reload is not applicable for unit strongswan.service.
```
  • Loading branch information
myii committed Feb 27, 2021
1 parent c224e6d commit 2b436b8
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions strongswan/defaults.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,4 @@ strongswan:
dropin_secrets: /etc/ipsec.secrets.d
service:
name: strongswan
reload: true
3 changes: 3 additions & 0 deletions strongswan/osfingermap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@
Ubuntu-20.04:
service:
name: strongswan-starter
Ubuntu-16.04:
service:
reload: false

# os: CentOS
CentOS-6: {}
Expand Down
2 changes: 1 addition & 1 deletion strongswan/service.sls
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ strongswan-service:
service.running:
- name: {{ strongswan.service.name }}
- enable: True
- reload: True
- reload: {{ strongswan.service.reload }}
- watch:
- file: {{ strongswan.config.global_options }}
- file: {{ strongswan.config.global_secrets }}
Expand Down

0 comments on commit 2b436b8

Please sign in to comment.