Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/deployments/00:11:22:33:44:55.json
diff options
context:
space:
mode:
authorLord Anton Hvornum <anton.hvo@gmail.com>2018-05-24 20:39:35 +0200
committerLord Anton Hvornum <anton.hvo@gmail.com>2018-05-24 20:39:35 +0200
commit022b375185dacebcce15bea72486279b159f1a4b (patch)
treef2343015b880f3eb0a61ae90651cf7ac8d668e90 /deployments/00:11:22:33:44:55.json
parent225b0b6451f6bb5eaf558c8ba309d64bde3910ef (diff)
Rebased the deployment examples
Diffstat (limited to 'deployments/00:11:22:33:44:55.json')
-rw-r--r--deployments/00:11:22:33:44:55.json20
1 files changed, 20 insertions, 0 deletions
diff --git a/deployments/00:11:22:33:44:55.json b/deployments/00:11:22:33:44:55.json
new file mode 100644
index 00000000..5526629e
--- /dev/null
+++ b/deployments/00:11:22:33:44:55.json
@@ -0,0 +1,20 @@
+{
+ "args" : {
+ "include" : "workstation",
+ "user" : "anton",
+ "password" : "1111",
+ "drive" : "/dev/sdb",
+ "post" : "don't reboot"
+ },
+ "post" : {
+ "Setup a basic virtual environment": {
+ "mkdir -p /home/{user}/virts" : {"pass-args" : true},
+ "qemu-img create -f qcow2 /home/{user}/virts/test_deploy.qcow2 4G" : {"pass-args" : true},
+ "chown -R {user}.{user} /home/{user}/virts" : {"pass-args" : true}
+ },
+ "Setup user" : {
+ "useradd -m -G wheel -s /bin/bash anton" : null,
+ "sh -c \"echo {user}:{password} | chpasswd\"" : {"pass-args" : true}
+ }
+ }
+}