Static

The static provider reuses already available resources (machines, network) to deploy OpenStack on.

Installation

Refer to the Getting Started section to install Enos.

Configuration

The static provider requires already running resources to deploy OpenStack on. Information in the provider description tells Enos where these resources are and how to access to them.

The following shows an example of possible description. It can serve as basis to build your own configuration that will fit your environment.

 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
---
# Example of using yaml anchors
hosts:
  1: &h1
    address: 192.168.142.245
    alias: enos-0
    user: root
    keyfile: .vagrant/machines/enos-0/libvirt/private_key
  2: &h2
    address: 192.168.142.244
    alias: enos-1
    user: root
    keyfile: .vagrant/machines/enos-1/libvirt/private_key
  3: &h3
    address: 192.168.142.243
    alias: enos-2
    user: root
    keyfile: .vagrant/machines/enos-2/libvirt/private_key

resources:
  control:
    - *h1
  network:
    - *h2
  compute:
    - *h3

provider:
  type: static
  networks:
    - start: 192.168.142.3
      end:  192.168.142.119
      cidr: 192.168.142.0/24
      gateway: 192.168.142.1
      dns: 8.8.8.8
      roles: ["network_interface"]
    - start: 192.168.143.3
      end:  192.168.143.119
      cidr: 192.168.143.0/24
      gateway: 192.168.143.1
      dns: 8.8.8.8
      roles: ["neutron_external_interface"]

inventory: inventories/inventory.sample
enable_monitoring: no
registry:
  type: none
kolla_repo: https://git.openstack.org/openstack/kolla-ansible
kolla_ref: stable/queens
kolla:
  kolla_base_distro: centos
  kolla_install_type: source
  docker_namespace: beyondtheclouds
  nova_compute_virt_type: "qemu"

Note that the above example is based on running machines given by vagrant and the libvirt provider following this Vagrantfile

In the resources there must be at least one host entry for each of the following names:

  • control
  • compute
  • network

In the networks section of the provider, a network with role network_interface must be define. For more information on network roles please refer to the kolla documentation.