Feature 8623
[osm/devops.git] / installers / openstack / README.md
1 <!--
2 Copyright 2020 British Telecommunications plc
3
4 Licensed under the Apache License, Version 2.0 (the "License");
5 you may not use this file except in compliance with the License.
6 You may obtain a copy of the License at
7
8     http://www.apache.org/licenses/LICENSE-2.0
9
10 Unless required by applicable law or agreed to in writing, software
11 distributed under the License is distributed on an "AS IS" BASIS,
12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 See the License for the specific language governing permissions and
14 limitations under the License.
15 Author: Antonio Marsico (antonio.marsico@bt.com)
16 -->
17
18
19 # User guide
20
21 This short guide explains how to use directly the Ansible playbook to install OSM to an OpenStack infrastructure.
22
23 ## Prerequisites
24 The ansible playbook requires `ansible` and `openstacksdk` to be executed. `python-openstackclient` is not mandatory but highly recommended. They are part of Python pip and can be installed as follows:
25
26 `$ sudo -H pip install python-openstackclient "openstacksdk<1" "ansible>=2.9,<3"`
27
28 ## Execute the playbook
29
30 In order to execute the playbook, it is required an OpenStack openrc file. It can be downloaded from the OpenStack web interface Horizon.
31
32 After that, it can be loaded with the following command:
33
34 `$ . openrc`
35
36 Then, all the credentials are loaded in the bash environment. Now it is possible to execute the playbook to configure OpenStack and install OSM:
37
38 `$ ansible-playbook -e external_network_name=<your openstack external network> site.yml`