diff options
author | Jon Clausen <jac@nordu.net> | 2018-08-02 12:38:12 +0200 |
---|---|---|
committer | Jon Clausen <jac@nordu.net> | 2018-08-02 12:38:12 +0200 |
commit | 2fa7121f3fa0add707e7be2d0e23c8fc950c0fe1 (patch) | |
tree | 5f574ed1283aae08cb469903584060d86db1329b /adapt-ks-template | |
parent | a69b7887558f37e28a7ac2bea70b207bece3a7fa (diff) |
support for "CosmosTag"
Diffstat (limited to 'adapt-ks-template')
-rwxr-xr-x | adapt-ks-template | 6 |
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" |