Wednesday, May 3, 2017

DevStack installation to build private cloud public cloud openstack environment

DevStack is a series of extensible scripts used to quickly bring up a complete OpenStack environment based on the latest versions of everything from git master. It is used interactively as a development environment and as the basis for much of the OpenStack project’s functional testing.
1.add new user
$ sudo useradd -s /bin/bash -d /opt/stack -m stack
2.Since this user will be making many changes to your system, it should have sudo privileges:

$ echo "stack ALL=(ALL) NOPASSWD: ALL" | sudo tee /etc/sudoers.d/stack
$ sudo su - stack
3.Download DevStack
$ git clone https://git.openstack.org/openstack-dev/devstack
$ cd devstack
4.create local.conf
Create a local.conf file with 4 passwords preset at the root of the devstack git repo.
[[local|localrc]]
ADMIN_PASSWORD=secret
DATABASE_PASSWORD=$ADMIN_PASSWORD
RABBIT_PASSWORD=$ADMIN_PASSWORD
SERVICE_PASSWORD=$ADMIN_PASSWORD
5. Start installation
./stack.sh

No comments:

Post a Comment