-
-
Notifications
You must be signed in to change notification settings - Fork 107
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Slave interfaces being created at everyrun #139
Comments
It's entirely possible that it's the ruby version. Do you have the facility to test with another ruby version on RHEL6 (IE software collections, IUS)? Just for documentation, what version of ruby are you seeing this behavior with? |
I'm seeing the same issue on RedHat 7.6:
Ruby version:
|
This turned out to be an issue with $bonded_interfaces.each |$_name, $_config| {
$_merged_config = $_config + {
# make sure we have 'yes'/'no' instead of booleans
'slave_options' => $_config.dig('slave_options').lest || { {} }.reduce({}) |$acc, $kv| {
[$k, $v] = $kv
$acc + {
$k => $v ? {
Boolean => to_yesno($v),
default => $v,
}
}
}
}
network::bond { $_name:
* => $_merged_config,
}
} The function ...not the most pretty, but works fine. I've got a branch that has this at https://github.com/runejuhl/puppet-network/tree/coerce-boolean-values . I figure a proper PR should implement the same in Ruby instead, that'd be a lot prettier. |
Hi,
I am facing a strange behavior under RHEL7 when using this module for bonding configuration.
Here is the resource declaration:
Variable have correct values set and the files generated are as expected:
The problem is that this resource is applied at everyrun:
My interfaces seem to be seen as absent from Puppet point of view on RHEL7:
While it is working on RHEL6:
Any thought why this behavior is different? Could this be linked to the Ruby version?
The text was updated successfully, but these errors were encountered: