]> review.fuel-infra Code Review - openstack-build/heat-build.git/commitdiff
Use --script option to parted in templates
authorZane Bitter <zbitter@redhat.com>
Mon, 15 Oct 2012 14:13:12 +0000 (16:13 +0200)
committerZane Bitter <zbitter@redhat.com>
Mon, 15 Oct 2012 15:32:41 +0000 (17:32 +0200)
Provisioning scripts should never expect user input.

Change-Id: I0099cee6a920313c2b5c8e86ddb18de11bab8329
Signed-off-by: Zane Bitter <zbitter@redhat.com>
templates/WordPress_2_Instances_With_EBS.template
templates/WordPress_2_Instances_With_EBS_EIP.template
templates/WordPress_Single_Instance_With_EBS.template
templates/WordPress_Single_Instance_With_EBS_EIP.template

index 71d6e150b4dd85465e003f8c5ee2a792279a3fde..3a7259d531996983ec64a108324d1c76e9277ecb 100644 (file)
 
           "# 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",
index fb668888ed31e5904b6d579295842ee586bfdbef..a7fac58ab71a3b8032cba6722826fe52bd468ee1 100644 (file)
 
           "# 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",
index 931d41e69fe644d22c00c03e762b987a0c46ad82..fbf35729e0eea290d5be852ebbe5f34e885b6d44 100644 (file)
 
           "# 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",
index 549fafb222d0a9c0918433cf2125d53c938ff1a7..6d38cc2dc801105ab7b0ae16b1f770b143f1427e 100644 (file)
           "/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",