From d24e6b725e1053db919959ef1973f119818448a4 Mon Sep 17 00:00:00 2001 From: Ruby Loo Date: Thu, 9 Jun 2016 17:22:28 -0400 Subject: [PATCH] fix sed strings in developer doc The sample configuration file was changed so that the configuration options are of the form 'name = value' instead of 'name=value'. This patch updates the developer documentation [1] so that the 'sed' instructions work properly with the new format. [1] http://docs.openstack.org/developer/ironic/dev/dev-quickstart.html#option-1-manual-install Change-Id: I8e36ec40c83c6d914dcd6b3d426f58415e1d3e23 --- doc/source/dev/dev-quickstart.rst | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/doc/source/dev/dev-quickstart.rst b/doc/source/dev/dev-quickstart.rst index 5e9cc3cbbe..a5c846edb4 100644 --- a/doc/source/dev/dev-quickstart.rst +++ b/doc/source/dev/dev-quickstart.rst @@ -207,16 +207,16 @@ Option 1: Manual Install cp etc/ironic/ironic.conf.sample etc/ironic/ironic.conf.local # disable auth since we are not running keystone here - sed -i "s/#auth_strategy=keystone/auth_strategy=noauth/" etc/ironic/ironic.conf.local + sed -i "s/#auth_strategy = keystone/auth_strategy = noauth/" etc/ironic/ironic.conf.local # Use the 'fake_ipmitool' test driver - sed -i "s/#enabled_drivers=pxe_ipmitool/enabled_drivers=fake_ipmitool/" etc/ironic/ironic.conf.local + sed -i "s/#enabled_drivers = pxe_ipmitool/enabled_drivers = fake_ipmitool/" etc/ironic/ironic.conf.local # set a fake host name [useful if you want to test multiple services on the same host] - sed -i "s/#host=.*/host=test-host/" etc/ironic/ironic.conf.local + sed -i "s/#host = .*/host = test-host/" etc/ironic/ironic.conf.local # turn off the periodic sync_power_state task, to avoid getting NodeLocked exceptions - sed -i "s/#sync_power_state_interval=60/sync_power_state_interval=-1/" etc/ironic/ironic.conf.local + sed -i "s/#sync_power_state_interval = 60/sync_power_state_interval = -1/" etc/ironic/ironic.conf.local #. Initialize the ironic database (optional):: @@ -226,7 +226,7 @@ Option 1: Manual Install mysql -u root -pMYSQL_ROOT_PWD -e "create schema ironic" # and switch the DB connection from sqlite to something else, eg. mysql - sed -i "s/#connection=.*/connection=mysql\+pymysql:\/\/root:MYSQL_ROOT_PWD@localhost\/ironic/" etc/ironic/ironic.conf.local + sed -i "s/#connection = .*/connection = mysql\+pymysql:\/\/root:MYSQL_ROOT_PWD@localhost\/ironic/" etc/ironic/ironic.conf.local At this point, you can continue to Step 2.