GithubHelp home page GithubHelp logo

Comments (13)

sammcj avatar sammcj commented on August 18, 2024

We too noticed this and it prevented us from using pcs with this module.

from puppet-corosync.

fghaas avatar fghaas commented on August 18, 2024

@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.

roidelapluie avatar roidelapluie commented on August 18, 2024

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.

fghaas avatar fghaas commented on August 18, 2024

@roidelapluie My Ruby-fu is minimal, but I thought that's what the pcs implementations already do use?

from puppet-corosync.

roidelapluie avatar roidelapluie commented on August 18, 2024

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.

fghaas avatar fghaas commented on August 18, 2024

@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.

roidelapluie avatar roidelapluie commented on August 18, 2024

Yes and it should work with the crm provider

from puppet-corosync.

jonhattan avatar jonhattan commented on August 18, 2024

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.

roidelapluie avatar roidelapluie commented on August 18, 2024

thanks for your feedback it is very welcome!

from puppet-corosync.

roidelapluie avatar roidelapluie commented on August 18, 2024

Pull request #162 fixes all of this

from puppet-corosync.

jyaworski avatar jyaworski commented on August 18, 2024

#162 is still in progress.

from puppet-corosync.

igalic avatar igalic commented on August 18, 2024

@roidelapluie what's the current pr for this issue?

from puppet-corosync.

roidelapluie avatar roidelapluie commented on August 18, 2024

Fixed in #209

from puppet-corosync.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.