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
enable_monitoring: false
hosts:
  1: &id002
    address: 192.168.142.245
    alias: enos-0
    keyfile: .vagrant/machines/enos-0/libvirt/private_key
    user: root
  2: &id003
    address: 192.168.142.244
    alias: enos-1
    keyfile: .vagrant/machines/enos-1/libvirt/private_key
    user: root
  3: &id001
    address: 192.168.142.243
    alias: enos-2
    keyfile: .vagrant/machines/enos-2/libvirt/private_key
    user: root
inventory: inventories/inventory.sample
kolla:
  kolla_base_distro: centos
  kolla_install_type: source
  nova_compute_virt_type: qemu
kolla_ref: stable/stein
kolla_repo: https://git.openstack.org/openstack/kolla-ansible
provider:
  networks:
  - cidr: 192.168.142.0/24
    dns: 8.8.8.8
    end: 192.168.142.119
    gateway: 192.168.142.1
    roles:
    - network_interface
    start: 192.168.142.3
  - cidr: 192.168.143.0/24
    dns: 8.8.8.8
    end: 192.168.143.119
    gateway: 192.168.143.1
    roles:
    - neutron_external_interface
    start: 192.168.143.3
  type: static
registry:
  type: none
resources:
  compute:
  - *id001
  control:
  - *id002
  network:
  - *id003

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.