aboutsummaryrefslogtreecommitdiffstats
path: root/deployment/heat/onap-rke/scripts/gen-onap-oom-yaml.sh
diff options
context:
space:
mode:
authorGary Wu <gary.wu@futurewei.com>2019-06-21 16:16:18 -0700
committerGary Wu <gary.wu@futurewei.com>2019-06-21 16:45:58 -0700
commit9bb778b5b90235e2136f75dcc43b6c9cb0266572 (patch)
tree142dddd26e43f4f76ccb036290f418f7c55e1fbe /deployment/heat/onap-rke/scripts/gen-onap-oom-yaml.sh
parent17797b454abdffc0815f919f556c93bf7339288d (diff)
Make /dockerdata-nfs a ZFS volume with compression
Issue-ID: INT-1117 Signed-off-by: Gary Wu <gary.wu@futurewei.com> Change-Id: I2b5cdb332702a3599b2faa4d180f68decb7a199b
Diffstat (limited to 'deployment/heat/onap-rke/scripts/gen-onap-oom-yaml.sh')
-rwxr-xr-xdeployment/heat/onap-rke/scripts/gen-onap-oom-yaml.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/deployment/heat/onap-rke/scripts/gen-onap-oom-yaml.sh b/deployment/heat/onap-rke/scripts/gen-onap-oom-yaml.sh
index 32fe147dc..733aa2075 100755
--- a/deployment/heat/onap-rke/scripts/gen-onap-oom-yaml.sh
+++ b/deployment/heat/onap-rke/scripts/gen-onap-oom-yaml.sh
@@ -30,6 +30,17 @@ EOF
cat $PARTS_DIR/onap-oom-1.yaml
cat <<EOF
+ nfs_volume:
+ type: OS::Cinder::Volume
+ properties:
+ size: 200
+
+ nfs_volume_att:
+ type: OS::Cinder::VolumeAttachment
+ properties:
+ instance_uuid: { get_resource: nfs_vm }
+ volume_id: { get_resource: nfs_volume }
+
nfs_vm:
type: OS::Nova::Server
properties:
@@ -46,6 +57,7 @@ cat <<EOF
template:
get_file: nfs_vm_entrypoint.sh
params:
+ __nfs_volume_id__: { get_resource: nfs_volume }
__docker_proxy__: { get_param: docker_proxy }
__apt_proxy__: { get_param: apt_proxy }
__nfs_ip_addr__: { get_attr: [nfs_floating_ip, floating_ip_address] }