{"id":14994529,"url":"https://github.com/voxpupuli/puppet-boolean","last_synced_at":"2025-10-03T10:30:20.099Z","repository":{"id":5906920,"uuid":"7125911","full_name":"voxpupuli/puppet-boolean","owner":"voxpupuli","description":"An actual Boolean property for Puppet","archived":true,"fork":false,"pushed_at":"2023-04-28T12:08:06.000Z","size":137,"stargazers_count":7,"open_issues_count":0,"forks_count":21,"subscribers_count":45,"default_branch":"master","last_synced_at":"2024-10-29T14:22:33.414Z","etag":null,"topics":["centos-puppet-module","debian-puppet-module","hacktoberfest","linux-puppet-module","puppet","redhat-puppet-module","scientific-puppet-module","ubuntu-puppet-module"],"latest_commit_sha":null,"homepage":"https://forge.puppet.com/puppet/boolean","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/voxpupuli.png","metadata":{"files":{"readme":"README.markdown","changelog":"CHANGELOG.md","contributing":".github/CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":".github/SECURITY.md","support":null,"governance":null}},"created_at":"2012-12-12T07:13:19.000Z","updated_at":"2023-04-28T12:10:18.000Z","dependencies_parsed_at":"2022-09-26T20:21:26.791Z","dependency_job_id":null,"html_url":"https://github.com/voxpupuli/puppet-boolean","commit_stats":{"total_commits":80,"total_committers":16,"mean_commits":5.0,"dds":"0.38749999999999996","last_synced_commit":"ee24d407631a6ea6abd9f96984058592399efb85"},"previous_names":["adrienthebo/puppet-boolean"],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/voxpupuli%2Fpuppet-boolean","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/voxpupuli%2Fpuppet-boolean/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/voxpupuli%2Fpuppet-boolean/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/voxpupuli%2Fpuppet-boolean/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/voxpupuli","download_url":"https://codeload.github.com/voxpupuli/puppet-boolean/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":235109320,"owners_count":18937241,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["centos-puppet-module","debian-puppet-module","hacktoberfest","linux-puppet-module","puppet","redhat-puppet-module","scientific-puppet-module","ubuntu-puppet-module"],"created_at":"2024-09-24T16:03:46.774Z","updated_at":"2025-10-03T10:30:19.725Z","avatar_url":"https://github.com/voxpupuli.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"puppet-boolean\n==============\n\n\n**This module is archived! Do not use it anymore**\n\nThe discussion happened in https://github.com/voxpupuli/puppet-boolean/issues/34\n\nDefine actual boolean parameters and properties for puppet types.\n\nSynopsis\n--------\n\nPuppet has loosely defined internal types which can make normalizing boolean\nvalues in types and providers difficult. This custom parameter and property\nwill handle that normalization in one place by defining actual boolean states.\n\nExample\n-------\n\n**Type implementation**:\n\n    require 'puppet/property/boolean'\n\n    Puppet::Type.newtype(:awesome) do\n\n      newparam(:name, :namevar =\u003e true)\n\n      newparam(:more_explosions, :parent =\u003e Puppet::Parameter::Boolean) do\n        desc \"Indicate that more explosions are necessary\"\n        defaultto true # When it doubt, we want more explosions\n      end\n\n      newproperty(:better_than_sliced_bread, :parent =\u003e Puppet::Property::Boolean) do\n        desc \"Determine if the thing is more awesome than sliced bread\"\n        defaultto true # It's not hard to be more awesome than sliced bread\n      end\n\n      newproperty(:better_than_rocket_boots, :parent =\u003e Puppet::Property::Boolean) do\n        desc \"Determine if the thing is more often than rocket boots\"\n        defaultto false # Rocket boots are pretty hard to beat\n      end\n\n      newproperty(:will_get_you_eaten_by_sharks, :parent =\u003e Puppet::Property::Boolean) do\n        desc \"Determine if this is so awesome that it'll get you eaten by sharks\"\n        defaultto :false # Use a symbol for the default value and it'll still be false\n      end\n\n      newproperty(:suitable_for_human_consumption, :parent =\u003e Puppet::Property::Boolean) do\n        desc \"Determine if the thing is both awesome and edible\"\n        defaultto :false # The are more non-edible things than edible things\n      end\n    end\n\n**Type usage**:\n\n    awesome { 'actual booleans':\n      more_explosions                =\u003e 'yes',  # Use yes as a quoted string!\n      better_than_rocket_boots       =\u003e true,   # Use an unquoted string!\n      better_than_sliced_bread       =\u003e 'true', # Use a quoted string!\n      suitable_for_human_consumption =\u003e no,     # Use yes and no! It doesn't matter!\n    }\n\nContact\n-------\n\n  * source code: https://github.com/adrienthebo/puppet-boolean\n  * issue tracker: https://github.com/adrienthebo/puppet-boolean/issues\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvoxpupuli%2Fpuppet-boolean","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvoxpupuli%2Fpuppet-boolean","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvoxpupuli%2Fpuppet-boolean/lists"}