{% endif %}
ntp:
charm: "local:{{ ubuntu.release }}/ntp"
+{% if os.network.controller == 'ocl' %}
+ options:
+ source: "0.ubuntu.pool.ntp.org 1.ubuntu.pool.ntp.org 2.ubuntu.pool.ntp.org 3.ubuntu.pool.ntp.org"
+ auto_peers: false
+{% endif %}
{% include 'mysql.yaml' %}
{% include 'ceilometer.yaml' %}
{% include 'ceph.yaml' %}
{% include 'neutron-api.yaml' %}
{% include 'neutron-gateway.yaml' %}
{% if os.network.controller == 'odl' %}
- {% include 'odl.yaml' %}
+{% include 'odl.yaml' %}
{% elif os.network.controller == 'onos' %}
- {% include 'onos.yaml' %}
+{% include 'onos.yaml' %}
+{% elif os.network.controller == 'ocl' %}
+{% include 'oclphase1.yaml' %}
{% endif %}
{% if os.ha.mode == 'ha' %}
- {% include 'haclusters.yaml' %}
+{% include 'haclusters.yaml' %}
{% endif %}
relations:
- - "ntp:juju-info"
- "nodes:juju-info"
{% if os.ha.mode == 'ha' %}
- {% include 'harelations.yaml' %}
+{% include 'harelations.yaml' %}
{% endif %}
openstack-phase2:
--- /dev/null
+ zookeeper:
+ charm: local:precise/zookeeper
+ num_units: {{ unit_qty() }}
+ series: precise
+ to:
+{% for unit_id in to_select() %}
+ - "lxc:nodes={{ unit_id }}"
+{% endfor %}
+ cassandra:
+ charm: local:{{ ubuntu.release }}/cassandra
+ num_units: {{ unit_qty() }}
+ to:
+{% for unit_id in to_select() %}
+ - "lxc:nodes={{ unit_id }}"
+{% endfor %}
+ options:
+ authenticator: AllowAllAuthenticator
+ contrail-configuration:
+ charm: local:{{ ubuntu.release }}/contrail-configuration
+ num_units: {{ unit_qty() }}
+ options:
+{% if os.ha.mode == 'ha' %}
+ vip: {{ opnfv.vip.contrailconfig }}
+{% endif %}
+ to:
+{% for unit_id in to_select() %}
+ - "lxc:nodes={{ unit_id }}"
+{% endfor %}
+ contrail-control:
+ charm: local:{{ ubuntu.release }}/contrail-control
+ num_units: {{ unit_qty() }}
+ to:
+{% for unit_id in to_select() %}
+ - "lxc:nodes={{ unit_id }}"
+{% endfor %}
+ contrail-analytics:
+ charm: local:{{ ubuntu.release }}/contrail-analytics
+ num_units: {{ unit_qty() }}
+ to:
+{% for unit_id in to_select() %}
+ - "lxc:nodes={{ unit_id }}"
+{% endfor %}
+ contrail-webui:
+ charm: local:{{ ubuntu.release }}/contrail-webui
+ num_units: {{ unit_qty() }}
+ to:
+{% for unit_id in to_select() %}
+ - "lxc:nodes={{ unit_id }}"
+{% endfor %}
+ haproxy:
+ charm: local:{{ ubuntu.release }}/haproxy
+ num_units: {{ unit_qty() }}
+ options:
+ peering_mode: active-active
+ to:
+{% for unit_id in to_select() %}
+ - "lxc:nodes={{ unit_id }}"
+{% endfor %}
- - congress:amqp
- rabbitmq-server:amqp
{% if os.lxd %}
- - - nova-compute:lxd
- - lxd:lxd
+ - [ nova-compute:lxd, lxd:lxd ]
{% endif %}
{% if os.network.controller == 'nosdn' %}
- - - neutron-openvswitch:amqp
- - rabbitmq-server:amqp
- - - nova-compute:neutron-plugin
- - neutron-openvswitch:neutron-plugin
- - - neutron-openvswitch:neutron-plugin-api
- - neutron-api:neutron-plugin-api
+ - [ neutron-openvswitch:amqp, rabbitmq-server:amqp ]
+ - [ nova-compute:neutron-plugin, neutron-openvswitch:neutron-plugin ]
+ - [ neutron-openvswitch:neutron-plugin-api, neutron-api:neutron-plugin-api ]
{% elif os.network.controller == 'odl' %}
- - - "neutron-api:neutron-plugin-api-subordinate"
- - "neutron-api-odl:neutron-plugin-api-subordinate"
- - - "nova-compute:neutron-plugin"
- - "openvswitch-odl:neutron-plugin"
- - - "neutron-gateway"
- - "openvswitch-odl"
- - - "openvswitch-odl:ovsdb-manager"
- - "odl-controller:ovsdb-manager"
- - - "neutron-api-odl:odl-controller"
- - "odl-controller:controller-api"
+ - [ neutron-api:neutron-plugin-api-subordinate, neutron-api-odl:neutron-plugin-api-subordinate ]
+ - [ nova-compute:neutron-plugin, openvswitch-odl:neutron-plugin ]
+ - [ neutron-gateway, openvswitch-odl ]
+ - [ openvswitch-odl:ovsdb-manager, odl-controller:ovsdb-manager ]
+ - [ neutron-api-odl:odl-controller, odl-controller:controller-api ]
{% elif os.network.controller == 'onos' %}
- - - "neutron-api:neutron-plugin-api-subordinate"
- - "neutron-api-onos:neutron-plugin-api-subordinate"
- - - "nova-compute:neutron-plugin"
- - "openvswitch-onos:neutron-plugin"
- - - "neutron-gateway"
- - "openvswitch-onos"
- - - "openvswitch-onos:ovsdb-manager"
- - "onos-controller:ovsdb-manager"
- - - "neutron-api-onos:onos-controller"
- - "onos-controller:controller-api"
+ - [ neutron-api:neutron-plugin-api-subordinate, neutron-api-onos:neutron-plugin-api-subordinate ]
+ - [ nova-compute:neutron-plugin, openvswitch-onos:neutron-plugin ]
+ - [ neutron-gateway, openvswitch-onos ]
+ - [ openvswitch-onos:ovsdb-manager, onos-controller:ovsdb-manager ]
+ - [ neutron-api-onos:onos-controller, onos-controller:controller-api ]
+{% elif os.network.controller == 'ocl' %}
+ - [ contrail-configuration:cassandra, cassandra:database ]
+ - [ contrail-configuration, zookeeper ]
+ - [ contrail-configuration, rabbitmq-server ]
+ - [ contrail-configuration, keystone ]
+ - [ neutron-api-contrail, contrail-configuration ]
+ - [ neutron-api-contrail, keystone ]
+ - [ contrail-control:contrail-api, contrail-configuration:contrail-api ]
+ - [ contrail-control:contrail-discovery, contrail-configuration:contrail-discovery ]
+ - [ contrail-control:contrail-ifmap, contrail-configuration:contrail-ifmap ]
+ - [ contrail-control, keystone ]
+ - [ contrail-analytics:cassandra, cassandra:database ]
+ - [ contrail-analytics:contrail-analytics-api, contrail-configuration:contrail-analytics-api ]
+ - [ contrail-configuration:contrail-discovery, contrail-analytics:contrail-discovery ]
+ - [ contrail-webui, keystone ]
+ - [ contrail-webui:contrail_api, contrail-configuration:contrail-api ]
+ - [ contrail-webui:contrail_discovery, contrail-configuration:contrail-discovery ]
+ - [ contrail-webui:cassandra, cassandra:database ]
+ - [ nova-compute, neutron-contrail ]
+ - [ neutron-contrail:contrail-discovery, contrail-configuration:contrail-discovery ]
+ - [ neutron-contrail:contrail-api, contrail-configuration:contrail-api ]
+ - [ neutron-contrail, keystone ]
+ - [ contrail-configuration, ntp ]
+ - [ contrail-control, ntp ]
+ - [ contrail-analytics, ntp ]
+ - [ contrail-configuration, haproxy ]
+ - [ contrail-analytics, haproxy ]
+ - [ contrail-webui, haproxy ]
+ - [ haproxy, keepalived ]
{% endif %}