summaryrefslogtreecommitdiffstats
path: root/puppet-infracloud/README.md
blob: 37d575c33db2633d44d8a03d1d02a378296e765c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
===============================
How to deploy puppet-infracloud
===============================
The manifest and mmodules defined on this repo will deploy an OpenStack cloud based on `Infra Cloud <http://docs.openstack.org/infra/system-config/infra-cloud.html>`_ project.

Once all the hardware is provisioned, enter in controller and compute nodes and follow these steps:

1. Clone releng::

    git clone https://gerrit.opnfv.org/gerrit/releng /opt/releng

2. Copy hiera to the right place::

    cp /opt/releng/prototypes/puppet-infracloud/hiera/common.yaml /var/lib/hiera

3. Install modules::

    cd /opt/releng/prototypes/puppet-infracloud
    ./install_modules.sh

4. Apply the infracloud manifest::

    cd /opt/releng/prototypes/puppet-infracloud
    puppet apply manifests/site.pp --modulepath=/etc/puppet/modules:/opt/releng/prototypes/puppet-infracloud/modules

5. Once you finish this operation on controller and compute nodes, you will have a functional OpenStack cloud.

In jumphost, follow that steps:

1. Clone releng::

    git clone https://gerrit.opnfv.org/gerrit/releng /opt/releng

2. Create OpenStack clouds config directory::

    mkdir -p /root/.config/openstack

3. Copy credentials file::

    cp /opt/releng/prototypes/puppet-infracloud/creds/clouds.yaml /root/.config/openstack/

4. Install python-dev package as the installation of python-openstackclient depends on it

    apt-get install -y python-dev

5. Install openstack-client. (version 3.2.0 is known to work)::

    pip install python-openstackclient

6. Update /etc/hosts and add controller00::

    192.168.122.3 controller00
    192.168.122.3 controller00.opnfvlocal controller00

7. Export the desired cloud::

    export OS_CLOUD=opnfv

8. Start using it::

    openstack service list