From 64965db9de997d55d7599073d2a310251fc355e3 Mon Sep 17 00:00:00 2001 From: Zane Bitter Date: Mon, 15 Oct 2012 16:13:12 +0200 Subject: [PATCH] Use --script option to parted in templates Provisioning scripts should never expect user input. Change-Id: I0099cee6a920313c2b5c8e86ddb18de11bab8329 Signed-off-by: Zane Bitter --- templates/WordPress_2_Instances_With_EBS.template | 4 ++-- templates/WordPress_2_Instances_With_EBS_EIP.template | 4 ++-- templates/WordPress_Single_Instance_With_EBS.template | 4 ++-- templates/WordPress_Single_Instance_With_EBS_EIP.template | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/templates/WordPress_2_Instances_With_EBS.template b/templates/WordPress_2_Instances_With_EBS.template index 71d6e150b4..3a7259d531 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 fb668888ed..a7fac58ab7 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 931d41e69f..fbf35729e0 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 549fafb222..6d38cc2dc8 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",