Giter Club home page Giter Club logo

Comments (8)

adrienthebo avatar adrienthebo commented on June 23, 2024

My idea for implementing this was to allow up to take an array, within the options hash, like so:

network_config { 'eth0':
  ensure => present,
  options => {
    up => [
      '/sbin/route add net 10.20.30.40/24 via eth0',
      '/sbin/route add net 10.30.50.70/24 via eth0',
      [etc]
    ]
}

Is this an acceptable solution?

from puppet-network.

saz avatar saz commented on June 23, 2024

Looks good to me.

from puppet-network.

vjanelle avatar vjanelle commented on June 23, 2024

Just strictly speaking, there is an file(/etc/sysconfig/static-routes) that manages routes - is this in the scope of this module as well?

from puppet-network.

adrienthebo avatar adrienthebo commented on June 23, 2024

@saz I have a topic branch that should have the necessary work to support multiple options in a hash. It passes my unit tests but I don't have the bandwidth to do a lot of acceptance testing on it right now. The branch is at https://github.com/adrienthebo/puppet-network/tree/reimplement_debian_parsing ; would you be willing to test it and see if it works as expected?

from puppet-network.

adrienthebo avatar adrienthebo commented on June 23, 2024

@vjanelle So the situation with static routing configuration is really messy right now. I plan on implementing some sort of static route management, but on Debian it's all but impossible to extract routing and interface configuration. On Redhat it's easier since there are the individual route files as you mention, but the problem I have run into is how to manage the data. If I create a new ticket regarding route configuration with a request for comments on how people want to see it implemented would you be willing to toss you input into that?

from puppet-network.

vjanelle avatar vjanelle commented on June 23, 2024

Sure.

from puppet-network.

adrienthebo avatar adrienthebo commented on June 23, 2024

@vjanelle I've made #20 , feedback on that would be much appreciated!

from puppet-network.

adrienthebo avatar adrienthebo commented on June 23, 2024

Released in 0.3.0-rc1

from puppet-network.

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.