summaryrefslogtreecommitdiff
path: root/prep-boot-floppy-and-ks-config
diff options
context:
space:
mode:
authorJon Clausen <jac@nordu.net>2018-07-19 15:38:51 +0200
committerJon Clausen <jac@nordu.net>2018-07-19 15:38:51 +0200
commit778bab9a7f84ff06095e0dab5f75f7e25bf47849 (patch)
tree186696a5c7b35a1aaf4a97281cce12e7de307d6b /prep-boot-floppy-and-ks-config
parent6a0b2abfafdcb305d9b3036d0bf297dad5fc1fac (diff)
added support for using different templates
Diffstat (limited to 'prep-boot-floppy-and-ks-config')
-rwxr-xr-xprep-boot-floppy-and-ks-config9
1 files changed, 8 insertions, 1 deletions
diff --git a/prep-boot-floppy-and-ks-config b/prep-boot-floppy-and-ks-config
index 61dbd64..3759e17 100755
--- a/prep-boot-floppy-and-ks-config
+++ b/prep-boot-floppy-and-ks-config
@@ -39,6 +39,9 @@ Options:
-N, --nameserver Nameserver of target system
-P, --publish-path Path where results will be stored
-S, --cosmos-hash Hash used by cosmos to verify stuff
+ --template Template to use. This is a relative path, plus the
+ name of the template file. Example:
+ supermicro/SYS-5018D-FN8T/dtn-10g.ks
--sec-ip IP of secondary interface
--sec-nm Netmask of secondary interface
-h, --help this
@@ -103,6 +106,10 @@ function parse_commadline {
SecNM="${2}"
shift
;;
+ --template)
+ TemplateOpt="-T ${2}"
+ shift
+ ;;
*)
echo "what do you mean \"$1\"?"
exit 1
@@ -190,7 +197,7 @@ ${ScriptPath}/create-boot-floppy -D ${Domain} -G ${GW} -H ${Host} \
${ScriptPath}/adapt-ks-template -D ${Domain} -G ${GW} -H ${Host} \
-I ${IP} -M ${NM} -T ${TmpDir} -P ${PublishPath} --sec-ip ${SecIP} \
- --sec-nm ${SecNM}
+ --sec-nm ${SecNM} ${TemplateOpt}
# When this script calls the other two, PublishPath *is* set, so expect
# everything of value to be evacuated, and just clean up: