summaryrefslogtreecommitdiff
path: root/src/install/7_scripts.xml
diff options
context:
space:
mode:
Diffstat (limited to 'src/install/7_scripts.xml')
-rw-r--r--src/install/7_scripts.xml14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/install/7_scripts.xml b/src/install/7_scripts.xml
index c21855a..06a1ba3 100644
--- a/src/install/7_scripts.xml
+++ b/src/install/7_scripts.xml
@@ -44,6 +44,7 @@
network true
netaddress eth0 static 10.1.9.8 255.255.0.0 10.1.0.1
nameserver 9.9.9.9
+rootpw <userinput>...</userinput>
hostname test-web
pkginstall adelie-base-posix dash-binsh easy-kernel easy-kernel-modules lighttpd openrc ruby-full uwsgi-rack
# Enable lighttpd on startup:
@@ -54,6 +55,19 @@ svcenable lighttpd
<section id="using_js">
<title>Using JSON</title>
<para>If you have a properly-formatted JSON file, for example from a vendor-provided tool, you can use it to generate a HorizonScript file.</para>
+ <example>
+ <title>A simple JSON file</title>
+ <programlisting>
+{
+ "hostname": "horizon-json-testmachine.adelielinux.org",
+ "packages": ["adelie-base-posix", "easy-kernel", "easy-kernel-modules", "netifrc", "openrc", "s6-linux-init"],
+ "rootpw": "<userinput>...</userinput>",
+ "root": "/dev/sda1",
+ "netaddresses": [{"id":"eth0", "interface":"eth0", "addr-type":"dhcp"}],
+ "nameservers": ["9.9.9.9"]
+}
+ </programlisting>
+ </example>
<procedure>
<title>Generating a HorizonScript from a JSON file</title>
<step><para>Locate the JSON file on your computer.</para></step>