Comments (8)
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.
Looks good to me.
from puppet-network.
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.
@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.
@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.
Sure.
from puppet-network.
@vjanelle I've made #20 , feedback on that would be much appreciated!
from puppet-network.
Released in 0.3.0-rc1
from puppet-network.
Related Issues (20)
- fix current rubocop issues
- Option to set DNS? HOT 4
- update version dependencies for boolean and filemappper HOT 2
- Are there any plans to support `netplan` with Ubuntu 18? HOT 2
- Get rid of type *property* defaults and use of Puppet::Property::Boolean HOT 6
- Question: persistent network rules HOT 1
- add puppet 6 support
- Double initialisation of "interfaces" provider causes exception (aka can't purge unmanaged config) HOT 1
- Unable to set correct netmask for IPv6 HOT 1
- Drop Puppet 4/5 support
- Puppet facts not populating after 61b10ea7fc1861bd334f14aad456d3027592e68f HOT 6
- unable to set /32 route HOT 2
- Question: VLAN in RedHat
- Ubuntu 20.04 bonded interfaces don't work -- explicitly disables slave/member interfaces in manifests/bond/debian.pp
- How to enable multicast on multiple ethernets without using udp range in ubuntu?? HOT 1
- The 'options' property of the network_route type doesn't do anything
- Support for SLES
- Dual Stack Support HOT 3
- installation of ifenslave during configuring bond fails on Debian >=11
- When will puppet-network support filemapper 4.0.0?
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-network.