-
-
Notifications
You must be signed in to change notification settings - Fork 161
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support pcs 0.10 syntax and Debian family with pcs
#499
Conversation
I'll try integrating #469 while I'm doing this anyway. |
manifests/params.pp
Outdated
$package_pcs = true | ||
$package_fence_agents = false | ||
$package_install_options = undef | ||
} else { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
since we only support 16 and newer, we don't need the else block?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well, thus far it still has legacy support for 14.04, thought it would be easy just to keep this in.
There'll be commit cleanup, don't worry. |
522dace
to
50c373d
Compare
@towo can you give it a try and rebase against our master? |
@towo can you give this another look please? |
c7cdcac
to
1624df5
Compare
pcs
baed4bd
to
ca25910
Compare
8958a8a
to
cde46ca
Compare
* Removed the `promotable` attribute from `cs_primitive`. It's just a convenience function that was causing serious headaches in properly parsing the configuration, as promotability is *not* a property of the managed resource. Thus, it arguably should not be managed like it relates to the resource. * Rename `version_corosync` et al. to `ensure_corosync` etc. to reduce confusion and clear up meaning. * Add support for Debian 10, 11 * Add support for Ubuntu 18.04. 20.04 * Implicitly add support for `pcs` version 0.10.0+ commands; the CLI interface was changed here. * Fix SLES references in `metadata.json`
There'll probably be some follow-up work for people thus inclined, I can add some issues for that. That'd be:
|
Little idempotency feedback from one of our Debian 10 systems:
That's without changing anything, so it would (logically) assume the new Settings |
Pull Request (PR) description
This PR adds nominal support for some new OSes:
It also allows for the new syntax of
pcs
encountered in newer releases (namely starting with0.10.0
).In that context, there are
Breaking changes
version_corosync
et al have been renamed toensure_corosync
(etc.) to better reflect what they're doing and reduce confusion.promotable
andms_metadata
attributes have been removed fromms_metadata
. I recommend explicitly defining the clone resources.The reasoning for this is simple:
pcs
only aliases the promotable attribute on creation to creating the relevant resource manually. e.g. aclone
promotable
is not an actual attribute of a primitive; thus assigning and parsing it involves looking at other objects to see if it's embedded in the relevant container resource.cs_primitive { 'foo': promotable => true }
andcs_clone {
foo-clone: primitive => 'foo'}
is a sure-fire way of foot-shooting that will give issues with idempotency.This Pull Request (PR) fixes the following issues