Merge "Adding modularity to keepalived configuration"
This commit is contained in:
commit
1dd1fe3a99
@ -77,16 +77,26 @@ edit the ``/etc/openstack_deploy/user_variables.yml`` by setting:
|
||||
|
||||
keepalived_use_latest_stable: True
|
||||
|
||||
The HAProxy playbook makes use of the variable file
|
||||
``vars/configs/keepalived_haproxy.yml``, and feeds its content
|
||||
to the keepalived role, for keepalived master and backup nodes.
|
||||
The HAProxy playbook reads the ``vars/configs/keepalived_haproxy.yml``
|
||||
variable file and provides its content to the keepalived role for
|
||||
keepalived master and backup nodes.
|
||||
|
||||
You can use your own variable file by setting
|
||||
the path in your ``/etc/openstack_deploy/user_variables.yml``:
|
||||
Keepalived pings a public IP address to check its status. The default
|
||||
address is ``193.0.14.129``. To change this default, for example to
|
||||
your gateway, set the ``keepalived_ping_address`` variable in the
|
||||
``user_variables.yml`` file.
|
||||
|
||||
.. note:: The keepalived test works with IPv4 addresses only.
|
||||
|
||||
You can define additional variables to adapt keepalived to the
|
||||
deployed environment. Refer to the ``user_variables.yml`` file for
|
||||
more information. Optionally, you can use your own variable file, as
|
||||
follows:
|
||||
|
||||
.. code-block:: yaml
|
||||
|
||||
haproxy_keepalived_vars_file:
|
||||
haproxy_keepalived_vars_file: /path/to/myvariablefile.yml
|
||||
|
||||
|
||||
Securing HAProxy communication with SSL certificates
|
||||
####################################################
|
||||
|
@ -167,6 +167,9 @@ verbose: false
|
||||
# haproxy_keepalived_priority_master:
|
||||
# haproxy_keepalived_priority_backup:
|
||||
|
||||
# Keepalived default IP address used to check its alive status (IPv4 only)
|
||||
# keepalived_ping_address: "193.0.14.129"
|
||||
|
||||
# All the previous variables are used in a var file, fed to the keepalived role.
|
||||
# To use another file to feed the role, override the following var:
|
||||
# haproxy_keepalived_vars_file: 'vars/configs/keepalived_haproxy.yml'
|
||||
|
@ -13,7 +13,11 @@
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
keepalived_sync_groups:
|
||||
keepalived_ping_address: "193.0.14.129"
|
||||
keepalived_ping_count: 1
|
||||
keepalived_ping_interval: 10
|
||||
|
||||
keepalived_global_sync_groups:
|
||||
haproxy:
|
||||
instances:
|
||||
- external
|
||||
@ -28,8 +32,8 @@ keepalived_scripts:
|
||||
haproxy_check_script:
|
||||
check_script: "killall -0 haproxy"
|
||||
pingable_check_script:
|
||||
check_script: "ping -c 1 193.0.14.129 1>&2"
|
||||
interval: 10
|
||||
check_script: "ping -c {{ keepalived_ping_count }} {{ keepalived_ping_address }} 1>&2"
|
||||
interval: "{{ keepalived_ping_interval }}"
|
||||
fall: 2
|
||||
rise: 4
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user