Git Product home page Git Product logo

Comments (6)

jairojunior avatar jairojunior commented on July 23, 2024

@xaniasd I've been discussing this in another issue: #36 (comment)

Unfortunately, I did not have time to came up with a solution. If you need to handle binding address in domain you'll need to use wildfly_cli.

from puppet-wildfly.

xaniasd avatar xaniasd commented on July 23, 2024

@jairojunior I see that the port management is more complex but the binding address is doable. I got it working as follows:

define wildfly::config::interfaces($inet_address_value){
  $root = $wildfly::mode ? {
    'domain' => 'host',
    default  => 'server'
  }

  augeas { $name:
    lens    => 'Xml.lns',
    incl    => "${wildfly::dirname}/${wildfly::mode}/configuration/${wildfly::config}",
    changes => "set ${root}/interfaces/interface[#attribute/name='${name}']/inet-address/#attribute/value ${inet_address_value}",
    onlyif  => "match ${root}/interfaces/interface[#attribute/name='${name}']/inet-address[#attribute/value='${inet_address_value}'] size == 0"
  }
}

If I find something similar for port settings I'll let you know.

from puppet-wildfly.

jairojunior avatar jairojunior commented on July 23, 2024

@xaniasd Unfortunately, it only solves part of the problem, host*.xml files also have interface configuration.

I think we should replace augeas for wildfly_cli in the future, since it's more portable across different operations mode (standalone and domain).

By the way, I don't think domain mode and Puppet are a good match. Maybe this comment will make you think about it: https://github.com/cpitman/puppet-jboss_admin/issues/68#issuecomment-95934493

Thank you for collaborating. =)

from puppet-wildfly.

xaniasd avatar xaniasd commented on July 23, 2024

Hi Jairo,

very valid points, both of them :) I'm using Puppet to manage an existing installation as a first step. Second step is changing it to standalone instances.

regards

from puppet-wildfly.

jairojunior avatar jairojunior commented on July 23, 2024

Glad to hear that. =)

from puppet-wildfly.

jairojunior avatar jairojunior commented on July 23, 2024

Just fixed it with JBOSS_OPTS in the latest PR.

from puppet-wildfly.

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.