Skip to content

Commit 8c93374

Browse files
Zuulopenstack-gerrit
authored andcommitted
Merge "docs: cleanup install docs"
2 parents e812d28 + 584979c commit 8c93374

4 files changed

Lines changed: 34 additions & 20 deletions

File tree

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ files/get-pip.py*
2828
files/ir-deploy*
2929
files/ironic-inspector*
3030
files/etcd*
31-
local.conf
31+
^local.conf
3232
local.sh
3333
localrc
3434
proto

doc/source/assets/local.conf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../../samples/local.conf

doc/source/guides/single-machine.rst

Lines changed: 22 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -45,31 +45,37 @@ We need to add a user to install DevStack. (if you created a user during
4545
install you can skip this step and just give the user sudo privileges
4646
below)
4747

48-
::
48+
.. code-block:: console
4949
50-
useradd -s /bin/bash -d /opt/stack -m stack
50+
$ sudo useradd -s /bin/bash -d /opt/stack -m stack
5151
5252
Since this user will be making many changes to your system, it will need
5353
to have sudo privileges:
5454

55-
::
55+
.. code-block:: console
5656
57-
apt-get install sudo -y || yum install -y sudo
58-
echo "stack ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
57+
$ apt-get install sudo -y || yum install -y sudo
58+
$ echo "stack ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
59+
60+
.. note:: On some systems you may need to use ``sudo visudo``.
5961

6062
From here on you should use the user you created. **Logout** and
61-
**login** as that user.
63+
**login** as that user:
64+
65+
.. code-block:: console
66+
67+
$ sudo su stack && cd ~
6268
6369
Download DevStack
6470
-----------------
6571

6672
We'll grab the latest version of DevStack via https:
6773

68-
::
74+
.. code-block:: console
6975
70-
sudo apt-get install git -y || sudo yum install -y git
71-
git clone https://git.openstack.org/openstack-dev/devstack
72-
cd devstack
76+
$ sudo apt-get install git -y || sudo yum install -y git
77+
$ git clone https://git.openstack.org/openstack-dev/devstack
78+
$ cd devstack
7379
7480
Run DevStack
7581
------------
@@ -97,7 +103,7 @@ do the following:
97103

98104
``local.conf`` should look something like this:
99105

100-
::
106+
.. code-block:: ini
101107
102108
[[local|localrc]]
103109
FLOATING_RANGE=192.168.1.224/27
@@ -109,11 +115,14 @@ do the following:
109115
RABBIT_PASSWORD=flopsymopsy
110116
SERVICE_PASSWORD=iheartksl
111117
118+
.. note:: There is a sample :download:`local.conf </assets/local.conf>` file
119+
under the *samples* directory in the devstack repository.
120+
112121
Run DevStack:
113122

114-
::
123+
.. code-block:: console
115124
116-
./stack.sh
125+
$ ./stack.sh
117126
118127
A seemingly endless stream of activity ensues. When complete you will
119128
see a summary of ``stack.sh``'s work, including the relevant URLs,

doc/source/index.rst

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -55,22 +55,22 @@ are usually fine).
5555

5656
You can quickly create a separate `stack` user to run DevStack with
5757

58-
::
58+
.. code-block:: console
5959
6060
$ sudo useradd -s /bin/bash -d /opt/stack -m stack
6161
6262
Since this user will be making many changes to your system, it should
6363
have sudo privileges:
6464

65-
::
65+
.. code-block:: console
6666
6767
$ echo "stack ALL=(ALL) NOPASSWD: ALL" | sudo tee /etc/sudoers.d/stack
6868
$ sudo su - stack
6969
7070
Download DevStack
7171
-----------------
7272

73-
::
73+
.. code-block:: console
7474
7575
$ git clone https://git.openstack.org/openstack-dev/devstack
7676
$ cd devstack
@@ -83,7 +83,8 @@ Create a local.conf
8383

8484
Create a ``local.conf`` file with 4 passwords preset at the root of the
8585
devstack git repo.
86-
::
86+
87+
.. code-block:: ini
8788
8889
[[local|localrc]]
8990
ADMIN_PASSWORD=secret
@@ -93,12 +94,15 @@ devstack git repo.
9394
9495
This is the minimum required config to get started with DevStack.
9596

97+
.. note:: There is a sample :download:`local.conf </assets/local.conf>` file
98+
under the *samples* directory in the devstack repository.
99+
96100
Start the install
97101
-----------------
98102

99-
::
103+
.. code-block:: console
100104
101-
./stack.sh
105+
$ ./stack.sh
102106
103107
This will take a 15 - 20 minutes, largely depending on the speed of
104108
your internet connection. Many git trees and packages will be

0 commit comments

Comments
 (0)