summaryrefslogtreecommitdiff
path: root/adapt-ks-template
diff options
context:
space:
mode:
authorJon Clausen <jac@nordu.net>2018-08-02 12:38:12 +0200
committerJon Clausen <jac@nordu.net>2018-08-02 12:38:12 +0200
commit2fa7121f3fa0add707e7be2d0e23c8fc950c0fe1 (patch)
tree5f574ed1283aae08cb469903584060d86db1329b /adapt-ks-template
parenta69b7887558f37e28a7ac2bea70b207bece3a7fa (diff)
support for "CosmosTag"
Diffstat (limited to 'adapt-ks-template')
-rwxr-xr-xadapt-ks-template6
1 files changed, 6 insertions, 0 deletions
diff --git a/adapt-ks-template b/adapt-ks-template
index afc31e3..6514745 100755
--- a/adapt-ks-template
+++ b/adapt-ks-template
@@ -29,6 +29,7 @@ Options:
-M, --netmask Netmask of target system
-N, --nameserver Nameserver of target system
-P, --publish-path Path where results will be stored
+ --cosmos-tag Tag in ndn-sysconf to reference
--template Template to use. This is a relative path, plus the
name of the template file. Default:
${Template}
@@ -96,6 +97,10 @@ function parse_commadline {
Kserver="$2"
shift
;;
+ --cosmos-tag)
+ CosmosTag="${2}"
+ shift
+ ;;
--template)
Template="${2}"
shift
@@ -213,6 +218,7 @@ sed -ie '4 a #' "${TmpDir}/ks-template"
# substitutions:
sed -ie "s/HOSTNAME/${Host}/g" "${TmpDir}/ks-template"
sed -ie "s/DOMAIN/${Domain}/g" "${TmpDir}/ks-template"
+sed -ie "s/COSMOSTAG/${CosmosTag}/g" "${TmpDir}/ks-template"
sed -ie "s/INSTALLSERVER/${Kserver}/g" "${TmpDir}/ks-template"
sed -ie "s/PRIIP/${IP}/g" "${TmpDir}/ks-template"
sed -ie "s/PRINETMASK/${NM}/g" "${TmpDir}/ks-template"