Giter Club home page Giter Club logo

Comments (6)

dhollinger avatar dhollinger commented on July 30, 2024

@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.

alexjfisher avatar alexjfisher commented on July 30, 2024

@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.

DavidS avatar DavidS commented on July 30, 2024

Writing boolean properties, yes.

Can't do much about core puppet being a jerk, though. That's @joshcooper's sisyphus.

from puppet-network.

joshcooper avatar joshcooper commented on July 30, 2024

Is it nil, false, or :false... all I got is tears.

from puppet-network.

traylenator avatar traylenator commented on July 30, 2024

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.

strigazi avatar strigazi commented on July 30, 2024

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)

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.