mirror of
https://github.com/unman/shaker.git
synced 2024-12-24 23:09:39 -05:00
qubes-ssh - client side template and qube configuration
This commit is contained in:
parent
0670738957
commit
2e9d55f877
40
share/share_client.sls
Normal file
40
share/share_client.sls
Normal file
@ -0,0 +1,40 @@
|
||||
# vim: set syntax=yaml ts=2 sw=2 sts=2 et :
|
||||
|
||||
/rw/config/rc.local:
|
||||
file.append:
|
||||
- text: |
|
||||
systemctl enable qubes-ssh-forwarder.socket
|
||||
systemctl start qubes-ssh-forwarder.socket
|
||||
sshfs -p 840 localhost:/home/tx tx
|
||||
|
||||
mkdir /home/user/tx:
|
||||
cmd.run:
|
||||
- runas: user
|
||||
- creates: /home/user/tx
|
||||
|
||||
Setup:
|
||||
cmd.run:
|
||||
- names:
|
||||
- 'mkdir /home/user/.ssh'
|
||||
- 'chmod 700 /home/user/.ssh'
|
||||
- runas: user
|
||||
- creates: /home/user/.ssh
|
||||
|
||||
/rw/bind-dirs/lib/systemd/system/qubes-ssh-forwarder@.service:
|
||||
file.managed:
|
||||
- source:
|
||||
- salt://share/qubes-ssh-forwarder@.service
|
||||
- makedirs: True
|
||||
|
||||
/rw/bind-dirs/lib/systemd/system/qubes-ssh-forwarder.socket:
|
||||
file.managed:
|
||||
- source:
|
||||
- salt://share/qubes-ssh-forwarder.socket
|
||||
- makedirs: True
|
||||
|
||||
/rw/config/qubes-bind-dirs.d/50_user.conf:
|
||||
file.append:
|
||||
- text: |
|
||||
binds+=( '/lib/systemd/system/qubes-ssh-forwarder.socket')
|
||||
binds+=( '/lib/systemd/system/qubes-ssh-forwarder@.service')
|
||||
- makedirs: True
|
5
share/share_client.top
Normal file
5
share/share_client.top
Normal file
@ -0,0 +1,5 @@
|
||||
# vim: set syntax=yaml ts=2 sw=2 sts=2 et :
|
||||
|
||||
base:
|
||||
'*':
|
||||
- share.share_client
|
7
share/share_client_template.sls
Normal file
7
share/share_client_template.sls
Normal file
@ -0,0 +1,7 @@
|
||||
installed:
|
||||
pkg.installed:
|
||||
- pkgs:
|
||||
- openssh-client
|
||||
- sshfs
|
||||
- socat
|
||||
|
5
share/share_client_template.top
Normal file
5
share/share_client_template.top
Normal file
@ -0,0 +1,5 @@
|
||||
# vim: set syntax=yaml ts=2 sw=2 sts=2 et :
|
||||
|
||||
base:
|
||||
'*':
|
||||
- share.share_client_template
|
Loading…
Reference in New Issue
Block a user