Add api and manager states and metadata
* api state configures and starts octavia-api service
* manager state configures and starts the following services:
- octavia-worker
- octavia-health-manager
- octavia-housekeeping
Added tests and updated the README.rst
Change-Id: I41c3097ff400b07d659d8aa845d295fbda480cd3
diff --git a/tests/pillar/api_cluster.sls b/tests/pillar/api_cluster.sls
new file mode 100644
index 0000000..645b0be
--- /dev/null
+++ b/tests/pillar/api_cluster.sls
@@ -0,0 +1,36 @@
+octavia:
+ api:
+ enabled: true
+ version: ocata
+ bind:
+ address: 127.0.0.1
+ port: 9876
+ database:
+ engine: mysql
+ host: 127.0.0.1
+ port: 3306
+ name: octavia
+ user: octavia
+ password: password
+ identity:
+ engine: keystone
+ region: RegionOne
+ host: 127.0.0.1
+ port: 35357
+ user: octavia
+ password: password
+ tenant: service
+ message_queue:
+ engine: rabbitmq
+ host: 127.0.0.1
+ port: 5672
+ user: openstack
+ password: password
+ virtual_host: '/openstack'
+ members:
+ - host: 127.0.0.1
+ - host: 127.0.1.1
+ - host: 127.0.2.1
+ haproxy_amphora:
+ client_cert: '/etc/octavia/certs/client.pem'
+ server_ca: '/etc/octavia/certs/ca_01.pem'
diff --git a/tests/pillar/api_single.sls b/tests/pillar/api_single.sls
new file mode 100644
index 0000000..29ab5f7
--- /dev/null
+++ b/tests/pillar/api_single.sls
@@ -0,0 +1,32 @@
+octavia:
+ api:
+ enabled: true
+ version: ocata
+ bind:
+ address: 127.0.0.1
+ port: 9876
+ database:
+ engine: mysql
+ host: 127.0.0.1
+ port: 3306
+ name: octavia
+ user: octavia
+ password: password
+ identity:
+ engine: keystone
+ region: RegionOne
+ host: 127.0.0.1
+ port: 35357
+ user: octavia
+ password: password
+ tenant: service
+ message_queue:
+ engine: rabbitmq
+ host: 127.0.0.1
+ port: 5672
+ user: openstack
+ password: password
+ virtual_host: '/openstack'
+ haproxy_amphora:
+ client_cert: '/etc/octavia/certs/client.pem'
+ server_ca: '/etc/octavia/certs/ca_01.pem'
diff --git a/tests/pillar/manager_single.sls b/tests/pillar/manager_single.sls
new file mode 100644
index 0000000..f0cba83
--- /dev/null
+++ b/tests/pillar/manager_single.sls
@@ -0,0 +1,46 @@
+octavia:
+ manager:
+ enabled: true
+ version: ocata
+ database:
+ engine: mysql
+ host: 127.0.0.1
+ port: 3306
+ name: octavia
+ user: octavia
+ password: password
+ identity:
+ engine: keystone
+ region: RegionOne
+ host: 127.0.0.1
+ port: 35357
+ user: octavia
+ password: password
+ tenant: service
+ message_queue:
+ engine: rabbitmq
+ host: 127.0.0.1
+ port: 5672
+ user: openstack
+ password: password
+ virtual_host: '/openstack'
+ certificates:
+ ca_private_key_passphrase: foobar
+ ca_private_key: '/etc/octavia/certs/private/cakey.pem'
+ ca_certificate: '/etc/octavia/certs/ca_01.pem'
+ controller_worker:
+ amp_boot_network_list: '01d3edaa-422c-40b9-b265-425c981691e7'
+ amp_flavor_id: '967972bb-ab54-4679-9f53-bf81d5e28154'
+ amp_image_owner_id: '68520e9f926441ddb37b7c744c4005b7'
+ amp_image_tag: amphora
+ amp_secgroup_list: '9fcd532e-5715-423a-8e3f-51abddbe7705'
+ amp_ssh_key_name: octavia_ssh_key
+ loadbalancer_topology: 'SINGLE'
+ haproxy_amphora:
+ client_cert: '/etc/octavia/certs/client.pem'
+ server_ca: '/etc/octavia/certs/ca_01.pem'
+ health_manager:
+ bind_ip: 192.168.0.12
+ heartbeat_key: 'insecure'
+ house_keeping:
+ spare_amphora_pool_size: 0
diff --git a/tests/pillar/repo_openstack.sls b/tests/pillar/repo_openstack.sls
new file mode 100644
index 0000000..a638cf6
--- /dev/null
+++ b/tests/pillar/repo_openstack.sls
@@ -0,0 +1,8 @@
+linux:
+ system:
+ enabled: true
+ repo:
+ mirantis_openstack:
+ source: "deb http://mirror.fuel-infra.org/mcp-repos/ocata/xenial ocata main"
+ architectures: amd64
+ key_url: "http://mirror.fuel-infra.org/mcp-repos/ocata/xenial/archive-mcpocata.key"
diff --git a/tests/pillar/single.sls b/tests/pillar/single.sls
deleted file mode 100644
index 770a636..0000000
--- a/tests/pillar/single.sls
+++ /dev/null
@@ -1,3 +0,0 @@
-octavia:
- server:
- enabled: true