Use --script option to parted in templates
Provisioning scripts should never expect user input. Change-Id: I0099cee6a920313c2b5c8e86ddb18de11bab8329 Signed-off-by: Zane Bitter <zbitter@redhat.com>
This commit is contained in:
parent
65496df4a9
commit
64965db9de
|
@ -131,8 +131,8 @@
|
||||||
|
|
||||||
"# Wait for the volume to appear\n",
|
"# Wait for the volume to appear\n",
|
||||||
"while [ ! -e /dev/vdc ]; do echo Waiting for volume to attach; sleep 1; done\n",
|
"while [ ! -e /dev/vdc ]; do echo Waiting for volume to attach; sleep 1; done\n",
|
||||||
"parted /dev/vdc mklabel msdos\n",
|
"parted -s /dev/vdc mklabel msdos\n",
|
||||||
"parted /dev/vdc mkpart primary ext3 1 1000\n",
|
"parted -s /dev/vdc mkpart primary ext3 1 1000\n",
|
||||||
"# Format the EBS volume and mount it\n",
|
"# Format the EBS volume and mount it\n",
|
||||||
"systemctl stop mysqld.service\n",
|
"systemctl stop mysqld.service\n",
|
||||||
"sleep 1\n",
|
"sleep 1\n",
|
||||||
|
|
|
@ -167,8 +167,8 @@
|
||||||
|
|
||||||
"# Wait for the volume to appear\n",
|
"# Wait for the volume to appear\n",
|
||||||
"while [ ! -e /dev/vdc ]; do echo Waiting for volume to attach; sleep 1; done\n",
|
"while [ ! -e /dev/vdc ]; do echo Waiting for volume to attach; sleep 1; done\n",
|
||||||
"parted /dev/vdc mklabel msdos\n",
|
"parted -s /dev/vdc mklabel msdos\n",
|
||||||
"parted /dev/vdc mkpart primary ext3 1 1000\n",
|
"parted -s /dev/vdc mkpart primary ext3 1 1000\n",
|
||||||
"# Format the EBS volume and mount it\n",
|
"# Format the EBS volume and mount it\n",
|
||||||
"systemctl stop mysqld.service\n",
|
"systemctl stop mysqld.service\n",
|
||||||
"sleep 1\n",
|
"sleep 1\n",
|
||||||
|
|
|
@ -134,8 +134,8 @@
|
||||||
|
|
||||||
"# Wait for the volume to appear\n",
|
"# Wait for the volume to appear\n",
|
||||||
"while [ ! -e /dev/vdc ]; do echo Waiting for volume to attach; sleep 1; done\n",
|
"while [ ! -e /dev/vdc ]; do echo Waiting for volume to attach; sleep 1; done\n",
|
||||||
"parted /dev/vdc mklabel msdos\n",
|
"parted -s /dev/vdc mklabel msdos\n",
|
||||||
"parted /dev/vdc mkpart primary ext3 1 1000\n",
|
"parted -s /dev/vdc mkpart primary ext3 1 1000\n",
|
||||||
"# Format the EBS volume and mount it\n",
|
"# Format the EBS volume and mount it\n",
|
||||||
"systemctl stop mysqld.service\n",
|
"systemctl stop mysqld.service\n",
|
||||||
"sleep 1\n",
|
"sleep 1\n",
|
||||||
|
|
|
@ -158,8 +158,8 @@
|
||||||
"/opt/aws/bin/cfn-init\n",
|
"/opt/aws/bin/cfn-init\n",
|
||||||
"# Wait for the volume to appear\n",
|
"# Wait for the volume to appear\n",
|
||||||
"while [ ! -e /dev/vdc ]; do echo Waiting for volume to attach; sleep 1; done\n",
|
"while [ ! -e /dev/vdc ]; do echo Waiting for volume to attach; sleep 1; done\n",
|
||||||
"parted /dev/vdc mklabel msdos\n",
|
"parted -s /dev/vdc mklabel msdos\n",
|
||||||
"parted /dev/vdc mkpart primary ext3 1 1000\n",
|
"parted -s /dev/vdc mkpart primary ext3 1 1000\n",
|
||||||
"# Format the EBS volume and mount it\n",
|
"# Format the EBS volume and mount it\n",
|
||||||
"systemctl stop mysqld.service\n",
|
"systemctl stop mysqld.service\n",
|
||||||
"sleep 1\n",
|
"sleep 1\n",
|
||||||
|
|
Loading…
Reference in New Issue