Browse code

Merge "Changed the order of steps in the devstack install document"

Jenkins authored on 2016/11/29 23:41:34
Showing 1 changed files
... ...
@@ -45,12 +45,34 @@ as well as Debian and OpenSUSE.
45 45
 If you do not have a preference, Ubuntu 16.04 is the most tested, and
46 46
 will probably go the smoothest.
47 47
 
48
+Add Stack User
49
+--------------
50
+
51
+Devstack should be run as a non-root user with sudo enabled
52
+(standard logins to cloud images such as "ubuntu" or "cloud-user"
53
+are usually fine).
54
+
55
+You can quickly create a separate `stack` user to run DevStack with
56
+
57
+::
58
+
59
+   $ adduser stack
60
+
61
+Since this user will be making many changes to your system, it should
62
+have sudo privileges:
63
+
64
+::
65
+
66
+    $ echo "stack ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
67
+    $ su stack
68
+
48 69
 Download DevStack
49 70
 -----------------
50 71
 
51 72
 ::
52 73
 
53
-   git clone https://git.openstack.org/openstack-dev/devstack
74
+   $ git clone https://git.openstack.org/openstack-dev/devstack
75
+   $ cd devstack
54 76
 
55 77
 The ``devstack`` repo contains a script that installs OpenStack and
56 78
 templates for configuration files
... ...
@@ -58,8 +80,8 @@ templates for configuration files
58 58
 Create a local.conf
59 59
 -------------------
60 60
 
61
-Create a ``local.conf`` file with 4 passwords preset
62
-
61
+Create a ``local.conf`` file with 4 passwords preset at the root of the
62
+devstack git repo.
63 63
 ::
64 64
 
65 65
    [[local|localrc]]
... ...
@@ -70,25 +92,12 @@ Create a ``local.conf`` file with 4 passwords preset
70 70
 
71 71
 This is the minimum required config to get started with DevStack.
72 72
 
73
-Add Stack User
74
-
75
-Devstack should be run as a non-root user with sudo enabled
76
-(standard logins to cloud images such as "ubuntu" or "cloud-user"
77
-are usually fine).
78
-
79
-You can quickly create a separate `stack` user to run DevStack with
80
-
81
-::
82
-
83
-   devstack/tools/create-stack-user.sh; su stack
84
-
85 73
 Start the install
86 74
 -----------------
87 75
 
88 76
 ::
89 77
 
90
-   cd devstack; ./stack.sh
78
+   ./stack.sh
91 79
 
92 80
 This will take a 15 - 20 minutes, largely depending on the speed of
93 81
 your internet connection. Many git trees and packages will be