Add tun permission fix service workaround
This commit is contained in:
parent
5c9b6bd8eb
commit
77ccd7a161
2 changed files with 26 additions and 0 deletions
|
@ -34,3 +34,16 @@ system_base_modules_service:
|
|||
- enable: True
|
||||
- watch:
|
||||
- file: /etc/modules
|
||||
|
||||
# TUN permission fix service workaround
|
||||
system_base_tun-perm_service:
|
||||
file.managed:
|
||||
- name: /etc/init.d/tun-perm
|
||||
- source: salt://{{ tpldir }}/files/base_tun-perm.initd
|
||||
- user: root
|
||||
- group: root
|
||||
- mode: '0755'
|
||||
service.enabled:
|
||||
- name: tun-perm
|
||||
- require:
|
||||
- system_base_modules_service
|
||||
|
|
13
system/files/base_tun-perm.initd
Normal file
13
system/files/base_tun-perm.initd
Normal file
|
@ -0,0 +1,13 @@
|
|||
#!/sbin/openrc-run
|
||||
supervisor=supervise-daemon
|
||||
|
||||
name="TUN Module Permission setter"
|
||||
description="Setting the permission of /dev/net/tun to 666"
|
||||
|
||||
command=$(which chmod)
|
||||
command_args="0666 /dev/net/tun"
|
||||
command_user="root"
|
||||
|
||||
depend() {
|
||||
need modules
|
||||
}
|
Loading…
Reference in a new issue