Skip to content

Commit

Permalink
Using env vars instead of template placeholders
Browse files Browse the repository at this point in the history
Change-Id: Id80d681a9c57f1edbb9b27c10b17edf95c1d26bf
Signed-off-by: David Caro <dcaroest@redhat.com>
  • Loading branch information
david-caro authored and David Caro committed May 24, 2016
1 parent 2050923 commit 11de878
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
1 change: 0 additions & 1 deletion basic_suite_3.6/control.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ prep_suite () {
local suite_name="${SUITE##*/}"
suite_name="${suite_name//./_}"
sed \
-e "s,@SUITE@,${SUITE},g" \
-e "s,\(^[[:space:]]*\)\(engine\):,\1lago_${suite_name}_\2:,g" \
-e "s,\(^[[:space:]]*\)\(host[[:digit:]]\+\):,\1lago_${suite_name}_\2:,g" \
-e "s,\(^[[:space:]]*\)\(lago\):,\1lago_${suite_name}_\2:,g" \
Expand Down
8 changes: 4 additions & 4 deletions image_ng_suite_3.6/LagoInitFile.in
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ domains:
cpu: 4
boot_time_sec : 500
root-password: 12345
url: file://@SUITE@/images/ovirt-appliance.ova
url: file://$LAGO_INITFILE_PATH/images/ovirt-appliance.ova
disks:
- type: file
path: @SUITE@/utils/seed.iso
path: $LAGO_INITFILE_PATH/utils/seed.iso
dev: sda
format: iso
name: cloud-init
Expand Down Expand Up @@ -71,7 +71,7 @@ domains:
disks:
- type: template
template_type: qcow2
path: @SUITE@/images/ovirt-node-ng-image.installed.qcow2
path: $LAGO_INITFILE_PATH/images/ovirt-node-ng-image.installed.qcow2
dev: sda
format: qcow2
name: src
Expand All @@ -87,7 +87,7 @@ domains:
disks:
- type: template
template_type: qcow2
path: @SUITE@/images/ovirt-node-ng-image.installed.qcow2
path: $LAGO_INITFILE_PATH/images/ovirt-node-ng-image.installed.qcow2
dev: sda
format: qcow2
name: src
Expand Down
1 change: 0 additions & 1 deletion image_ng_suite_3.6/control.sh
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,6 @@ prep_suite(){
mv -f "${appliance_image}" "${suite}/images/ovirt-appliance.ova"
mv -f "${node_image}" "${suite}/images/ovirt-node-ng-image.installed.qcow2"
sed \
-e "s,@SUITE@,$suite,g" \
-e "s,\(^[[:space:]]*\)\(engine:\),\1lago_${suite_name}_\2,g" \
-e "s,\(^[[:space:]]*\)\(node[[:digit:]]\+:\),\1lago_${suite_name}_\2,g" \
-e "s,\(^[[:space:]]*\)\(lago:\),\1lago_${suite_name}_\2,g" \
Expand Down

0 comments on commit 11de878

Please sign in to comment.