From: Zane Bitter Date: Mon, 15 Oct 2012 14:13:12 +0000 (+0200) Subject: Use --script option to parted in templates X-Git-Tag: 2014.1~1309 X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=64965db9de997d55d7599073d2a310251fc355e3;p=openstack-build%2Fheat-build.git Use --script option to parted in templates Provisioning scripts should never expect user input. Change-Id: I0099cee6a920313c2b5c8e86ddb18de11bab8329 Signed-off-by: Zane Bitter --- diff --git a/templates/WordPress_2_Instances_With_EBS.template b/templates/WordPress_2_Instances_With_EBS.template index 71d6e150..3a7259d5 100644 --- a/templates/WordPress_2_Instances_With_EBS.template +++ b/templates/WordPress_2_Instances_With_EBS.template @@ -131,8 +131,8 @@ "# Wait for the volume to appear\n", "while [ ! -e /dev/vdc ]; do echo Waiting for volume to attach; sleep 1; done\n", - "parted /dev/vdc mklabel msdos\n", - "parted /dev/vdc mkpart primary ext3 1 1000\n", + "parted -s /dev/vdc mklabel msdos\n", + "parted -s /dev/vdc mkpart primary ext3 1 1000\n", "# Format the EBS volume and mount it\n", "systemctl stop mysqld.service\n", "sleep 1\n", diff --git a/templates/WordPress_2_Instances_With_EBS_EIP.template b/templates/WordPress_2_Instances_With_EBS_EIP.template index fb668888..a7fac58a 100644 --- a/templates/WordPress_2_Instances_With_EBS_EIP.template +++ b/templates/WordPress_2_Instances_With_EBS_EIP.template @@ -167,8 +167,8 @@ "# Wait for the volume to appear\n", "while [ ! -e /dev/vdc ]; do echo Waiting for volume to attach; sleep 1; done\n", - "parted /dev/vdc mklabel msdos\n", - "parted /dev/vdc mkpart primary ext3 1 1000\n", + "parted -s /dev/vdc mklabel msdos\n", + "parted -s /dev/vdc mkpart primary ext3 1 1000\n", "# Format the EBS volume and mount it\n", "systemctl stop mysqld.service\n", "sleep 1\n", diff --git a/templates/WordPress_Single_Instance_With_EBS.template b/templates/WordPress_Single_Instance_With_EBS.template index 931d41e6..fbf35729 100644 --- a/templates/WordPress_Single_Instance_With_EBS.template +++ b/templates/WordPress_Single_Instance_With_EBS.template @@ -134,8 +134,8 @@ "# Wait for the volume to appear\n", "while [ ! -e /dev/vdc ]; do echo Waiting for volume to attach; sleep 1; done\n", - "parted /dev/vdc mklabel msdos\n", - "parted /dev/vdc mkpart primary ext3 1 1000\n", + "parted -s /dev/vdc mklabel msdos\n", + "parted -s /dev/vdc mkpart primary ext3 1 1000\n", "# Format the EBS volume and mount it\n", "systemctl stop mysqld.service\n", "sleep 1\n", diff --git a/templates/WordPress_Single_Instance_With_EBS_EIP.template b/templates/WordPress_Single_Instance_With_EBS_EIP.template index 549fafb2..6d38cc2d 100644 --- a/templates/WordPress_Single_Instance_With_EBS_EIP.template +++ b/templates/WordPress_Single_Instance_With_EBS_EIP.template @@ -158,8 +158,8 @@ "/opt/aws/bin/cfn-init\n", "# Wait for the volume to appear\n", "while [ ! -e /dev/vdc ]; do echo Waiting for volume to attach; sleep 1; done\n", - "parted /dev/vdc mklabel msdos\n", - "parted /dev/vdc mkpart primary ext3 1 1000\n", + "parted -s /dev/vdc mklabel msdos\n", + "parted -s /dev/vdc mkpart primary ext3 1 1000\n", "# Format the EBS volume and mount it\n", "systemctl stop mysqld.service\n", "sleep 1\n",