Comments (6)
@alexjfisher looks like there is an overarching issue with boolean properties in resource types: https://tickets.puppetlabs.com/browse/PUP-2368
Based on @DavidS's comment at the end of the ticket, this issue affects even the new Resource API.
from puppet-network.
@dhollinger Correct. I've bumped into this in a few other modules.
eg. theforeman/puppet-pulp#284
Shame about the resource API. I think after his talk at FOSDEM, David told me booleans properties were fixed in the new API. I guess not though.
from puppet-network.
Writing boolean properties, yes.
Can't do much about core puppet being a jerk, though. That's @joshcooper's sisyphus.
from puppet-network.
Is it nil
, false
, or :false
... all I got is tears.
from puppet-network.
Is this why I see with:
network_config{ 'ifcfg-enp5s0f0':
ensure => "present",
onboot => true,
family => "inet",
method => "static",
ipaddress => "138.137.160.71",
netmask => "255.255.255.224",
options => {
"GATEWAY" => "138.137.160.65",
"USERCTL" => "false"
},
}
I get the error:
Error: Value 'true':TrueClass cannot be determined as a boolean value
Info: Unknown failure using insync_values? on type: Network_config[enp5s0f0] / property: hotplug to compare values [false] and absent
when there is no HOTPLUG
entry in ifcfg-enp5s0f0
Property is defined as :
newproperty(:hotplug, required_features: :hotpluggable, parent: Puppet::Property::Boolean) do
desc 'Allow/disallow hotplug support for this interface'
defaultto :true
end
Not possible to produce the error with a trivial puppet manifest and puppet apply - only a full puppet run.
from puppet-network.
We get the same for onboot
:
Error: Value 'true':TrueClass cannot be determined as a boolean value
Info: Unknown failure using insync_values? on type: Network_config[eth2] / property: onboot to compare values [:absent] and absent
Error: /Stage[main]/Hg_cloud_compute::Nova::Compute/Network_config[eth2]/onboot: change from 'absent' to true failed: Value 'true':TrueClass cannot be determined as a boolean value
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
- 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.