Comments (13)
We too noticed this and it prevented us from using pcs with this module.
from puppet-corosync.
@sammcj You mean it's been that way from the get-go? Then that would mean this provider was never usable except for the most trivial of configurations. @jonhattan and @roidelapluie, can you please comment?
from puppet-corosync.
Yes this is true. I will use that module in complex situations and I plan to integrate that in this module. The solution is to use the shadow functionality.
from puppet-corosync.
@roidelapluie My Ruby-fu is minimal, but I thought that's what the pcs
implementations already do use?
from puppet-corosync.
You can use the https://github.com/puppet-community/puppet-corosync/blob/master/lib/puppet/provider/cs_shadow/pcs.rb
But I have never tested it yet.
from puppet-corosync.
@roidelapluie Ok, so since that appears to be undocumented, let's see if I get this correctly:
cs_shadow { 'puppet': }
cs_primitive { 'p_foo':
cib => 'puppet',
# etc.
}
cs_primitive { 'p_bar':
cib => 'puppet',
# etc.
}
cs_group { 'g_foobar':
cib => 'puppet',
primitives => [ 'p_foo', 'p_bar' ],
}
Is that how this is supposed to be used?
from puppet-corosync.
Yes and it should work with the crm provider
from puppet-corosync.
I'm no longer using this module (neither puppet) for corosync config. In case it helps you figure out how to fix cs_shadow/pcs.rb, this is what I'm doing in a script:
# Do the config in a shadow cib
pcs cluster cib mysql_cfg
PCS="pcs -f mysql_cfg"
# Properties
$PCS property set stonith-enabled=false
$PCS property set symmetric-cluster=false
...
...
# Apply config
pcs cluster cib-push mysql_cfg
from puppet-corosync.
thanks for your feedback it is very welcome!
from puppet-corosync.
Pull request #162 fixes all of this
from puppet-corosync.
#162 is still in progress.
from puppet-corosync.
@roidelapluie what's the current pr for this issue?
from puppet-corosync.
Fixed in #209
from puppet-corosync.
Related Issues (20)
- ACL support missing HOT 1
- fails to create order with pacemaker 2.0.1 (Debian 10) HOT 1
- Catalog compilation should not fail when set_votequorum=true and cluster_name is set (but quorum_members and multicast_address are not)
- Allow puppet uri for authkey
- cs_order fails with pcs provider because of score parameter HOT 2
- Next tag after v6.0.1 ?? HOT 4
- Make hacluster/user group creation optional on qdevice
- Configuring unicast mode is confusing HOT 1
- When Managing PCS Auth, pcs_cluster_auth Executes Every Puppet Run HOT 1
- Information on udpu seems not totally clear and doc is missing any mention of Knet
- test_corosync_config fails for pacemaker 3.x HOT 3
- How to refresh/restart/reload a resource? HOT 1
- Does this module support VirtualDomains/libvirt? HOT 1
- `version_corosync` et al have been renamed to `ensure_corosync`
- The `promotable` and `ms_metadata` attributes have been removed from `ms_metadata`. HOT 1
- Add support for EL8 HOT 3
- `cs_rsc_defaults` not committed from shadow cib to live cib
- Unit tests don't run HOT 3
- Warning: Found multiple default providers for cs_primitive: crm, pcs; using crm HOT 1
- Support stdlib version 9 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from puppet-corosync.