Commit Graph

7 Commits

Author SHA1 Message Date
Ghanshyam Mann e06f50cb06 Retire Tripleo: remove repo content
TripleO project is retiring
- https://review.opendev.org/c/openstack/governance/+/905145

this commit remove the content of this project repo

Change-Id: I73df79a8698625815ea4e3099904da448a49887e
2024-02-24 11:42:30 -08:00
Takashi Kajinami 8427725125 Pacemaker: Replace hiera by lookup (2)
The hiera function is deprecated and does not work with the latest
hieradata version 5. It should be replaced by the new lookup
function[1].

[1] https://puppet.com/docs/puppet/7/hiera_automatic.html

With the lookup function, we can define value type and merge behavior,
but these are kept default at this moment to limit scope of this change
to just simple replacement. Adding value type might be useful to make
sure the value is in expected type (especially when a boolean value is
expected), but we will revisit that later.

example:
lookup(<NAME>, [<VALUE TYPE>], [<MERGE BEHAVIOR>], [<DEFAULT VALUE>])

This covers the remaining manifests to set up pacemaker resource.

Change-Id: I749b979a7333f68a646f36afa912603b1af0a943
2022-09-08 02:29:49 +09:00
Takashi Kajinami e9d96dcec3 Replace deprecated ip functions
The ip functions in puppetlabs-stdlib are deprecated since 4.13.0[1]
and should be replaced.

Also, this change removes the is_ip_addresses method, because now
the method is used only with the String variables and can be replaced.

[1] 6d185bdaa1

Change-Id: I28f1a718e2d24d5de6cbe40e1b1a68b1072f3f07
2021-08-08 03:57:45 +09:00
Damien Ciabrini 5c11340b81 Add socat listen backend to clustercheck service
Allow clustercheck to be started on-demand by either socat or
xinetd. T-h-t configures the backend to be run by Kolla at
container start.

Change-Id: Ie7ede82a755e729d66e077f97e87b3d6c816ed3c
Related-Bug: #1928693
2021-05-17 17:22:14 +02:00
Damien Ciabrini 5caebe85e9 Use clustercheck credentials to poll galera state in container
The clustercheck service currently connects to mysql as root
to poll the state of the galera cluster.

Update the generated config to use clustercheck credentials.

Depends-On: If8e0b3f9e4f317fde5328e71115aab87a5fa655f
Closes-Bug: #1707683

Change-Id: I4ee6e1f56a7880ccf456f5c08d26a267fb810361
2017-07-31 12:39:51 -04:00
Steve Baker 94f13e6608 Ensure hiera step value is an integer
The step is typically set with the hieradata setting an integer value:

  {"step": 1}

However it would be useful for the value to be a string so that
substitutions are possible, for example:

  {"step": "%{::step}"}

This change ensures the step parameter defaults to an integer by
calling Integer(hiera('step'))

This change was made by manually removing the undef defaults from
fluentd.pp, uchiwa.pp, and sensu.pp then bulk updating with:

    find ./ -type f -print0 |xargs -0 sed -i "s/= hiera('step')/= Integer(hiera('step'))/"

Change-Id: I8a47ca53a7dea8391103abcb8960a97036a6f5b3
2017-06-14 14:31:52 +12:00
Damien Ciabrini f88d4a433b Clustercheck, monitor service for galera containers
In HA overcloud deployments, HAProxy makes use of a helper service
called "clustercheck", to check whether galera nodes are available for
serving traffic.

This change implements a dedicated profile for clustercheck, which was
originally part of the pacemaker mysql profile. The profile generates
the necessary configuration files for clustercheck and let heat
templates manage the associated container's lifecycle.

Co-Authored-By: Michele Baldessari <michele@acksyn.org>
Partial-Bug: #1692969
Change-Id: I1aabe34fa6a9c8c705a4405f275b66502c313cf2
2017-05-23 11:59:09 -04:00