Autodetect number of instances
Change-Id: I8137986d9c0933b6e5046b0abaf3e6f2f1059959 Partially-Implements: blueprint multinode
This commit is contained in:
@@ -49,7 +49,8 @@ service:
|
||||
perm: "0600"
|
||||
mem: {{ neutron_dhcp_agent_mem }}
|
||||
cpus: {{ neutron_dhcp_agent_cpus }}
|
||||
instances: {{ controller_nodes }}
|
||||
constraints: [["hostname", "UNIQUE"], ["openstack_role", "CLUSTER", "controller"]]
|
||||
commands:
|
||||
extend_start:
|
||||
command: kolla_extend_start
|
||||
command: kolla_extend_start
|
||||
|
||||
@@ -49,7 +49,8 @@ service:
|
||||
perm: "0600"
|
||||
mem: {{ neutron_l3_agent_mem }}
|
||||
cpus: {{ neutron_l3_agent_cpus }}
|
||||
instances: {{ controller_nodes }}
|
||||
constraints: [["hostname", "UNIQUE"], ["openstack_role", "CLUSTER", "controller"]]
|
||||
commands:
|
||||
extend_start:
|
||||
command: kolla_extend_start
|
||||
command: kolla_extend_start
|
||||
|
||||
@@ -35,7 +35,8 @@ service:
|
||||
NEUTRON_INTERFACE: "{{ neutron_external_interface }}"
|
||||
mem: {{ neutron_linuxbridge_agent_mem }}
|
||||
cpus: {{ neutron_linuxbridge_agent_cpus }}
|
||||
instances: {{ all_nodes }}
|
||||
constraints: [["hostname", "UNIQUE"], ["openstack_role", "LIKE", "(controller|compute)"]]
|
||||
commands:
|
||||
extend_start:
|
||||
command: kolla_extend_start
|
||||
command: kolla_extend_start
|
||||
|
||||
@@ -42,7 +42,8 @@ service:
|
||||
perm: "0600"
|
||||
mem: {{ neutron_metadata_agent_mem }}
|
||||
cpus: {{ neutron_metadata_agent_cpus }}
|
||||
instances: {{ controller_nodes }}
|
||||
constraints: [["hostname", "UNIQUE"], ["openstack_role", "CLUSTER", "controller"]]
|
||||
commands:
|
||||
extend_start:
|
||||
command: bash kolla_extend_start
|
||||
command: bash kolla_extend_start
|
||||
|
||||
@@ -32,6 +32,7 @@ service:
|
||||
perm: "0600"
|
||||
mem: {{ neutron_openvswitch_agent_mem }}
|
||||
cpus: {{ neutron_openvswitch_agent_cpus }}
|
||||
instances: {{ all_nodes }}
|
||||
constraints: [["hostname", "UNIQUE"], ["openstack_role", "LIKE", "(controller|compute)"]]
|
||||
commands:
|
||||
extend_start:
|
||||
|
||||
@@ -32,6 +32,7 @@ service:
|
||||
perm: "0600"
|
||||
mem: {{ neutron_server_mem }}
|
||||
cpus: {{ neutron_server_cpus }}
|
||||
instances: {{ controller_nodes }}
|
||||
constraints: [["hostname", "UNIQUE"], ["openstack_role", "CLUSTER", "controller"]]
|
||||
commands:
|
||||
db_sync:
|
||||
|
||||
@@ -17,6 +17,7 @@ service:
|
||||
command: /usr/sbin/ovsdb-server /etc/openvswitch/conf.db -vconsole:emer -vsyslog:err -vfile:info --remote=punix:/run/openvswitch/db.sock --log-file=/var/log/openvswitch/ovsdb-server.log
|
||||
mem: {{ openvswitch_db_mem }}
|
||||
cpus: {{ openvswitch_db_cpus }}
|
||||
instances: {{ all_nodes }}
|
||||
constraints: [["hostname", "UNIQUE"], ["openstack_role", "LIKE", "(controller|compute)"]]
|
||||
commands:
|
||||
bootstrap:
|
||||
|
||||
@@ -19,6 +19,7 @@ service:
|
||||
command: /usr/sbin/ovs-vswitchd unix:/run/openvswitch/db.sock --mlockall
|
||||
mem: {{ openvswitch_vswitchd_mem }}
|
||||
cpus: {{ openvswitch_vswitchd_cpus }}
|
||||
instances: {{ all_nodes }}
|
||||
constraints: [["hostname", "UNIQUE"], ["openstack_role", "LIKE", "(controller|compute)"]]
|
||||
commands:
|
||||
bootstrap:
|
||||
@@ -39,4 +40,3 @@ commands:
|
||||
dest: /usr/local/bin/kolla_ensure_openvswitch_configured
|
||||
owner: root
|
||||
perm: "0755"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user