summaryrefslogtreecommitdiff
path: root/ssh
diff options
context:
space:
mode:
authorCasper <me@skylarcloud.xyz>2024-12-18 15:21:28 -0700
committerCasper <me@skylarcloud.xyz>2024-12-18 15:21:28 -0700
commit1cb78494f3022fe9d808d070507bddf552c64753 (patch)
tree5c827daee442e211941bed7cc89decc95f8efbd7 /ssh
Initial commit, new repo
Diffstat (limited to 'ssh')
-rw-r--r--ssh/create-ssh-qube.top6
-rw-r--r--ssh/qvm-app.sls11
-rw-r--r--ssh/qvm-tmpl.sls5
-rw-r--r--ssh/tmpl-pkgs.sls10
4 files changed, 32 insertions, 0 deletions
diff --git a/ssh/create-ssh-qube.top b/ssh/create-ssh-qube.top
new file mode 100644
index 0000000..9672258
--- /dev/null
+++ b/ssh/create-ssh-qube.top
@@ -0,0 +1,6 @@
+user:
+ dom0:
+ - ssh.qvm-app
+ - ssh.qvm-tmpl
+ tmpl-ssh:
+ - ssh.tmpl-pkgs
diff --git a/ssh/qvm-app.sls b/ssh/qvm-app.sls
new file mode 100644
index 0000000..aa5430f
--- /dev/null
+++ b/ssh/qvm-app.sls
@@ -0,0 +1,11 @@
+ssh--create-app-qube:
+ qvm.vm:
+ - name: ssh-vps
+ - present:
+ - template: tmpl-ssh
+ - label: blue
+ - features:
+ - set:
+ - menu-items:
+ - require:
+ - qvm: ssh--create-template
diff --git a/ssh/qvm-tmpl.sls b/ssh/qvm-tmpl.sls
new file mode 100644
index 0000000..ca88c47
--- /dev/null
+++ b/ssh/qvm-tmpl.sls
@@ -0,0 +1,5 @@
+ssh--create-template:
+ qvm.clone:
+ - name: tmpl-ssh
+ - source: debian-12-minimal
+
diff --git a/ssh/tmpl-pkgs.sls b/ssh/tmpl-pkgs.sls
new file mode 100644
index 0000000..35aeca8
--- /dev/null
+++ b/ssh/tmpl-pkgs.sls
@@ -0,0 +1,10 @@
+ssh--install-apps:
+ pkg.installed:
+ - pkgs:
+ - qubes-core-agent-passwordless-root
+ - qubes-mgmt-salt-vm-connector
+ - qubes-core-agent-networking
+ - qubes-gpg-split
+ - qubes-menus
+ - xfce4-terminal
+ - ssh