{"id":15022621,"url":"https://github.com/puppetlabs/puppetlabs-facts","last_synced_at":"2025-04-05T23:08:20.775Z","repository":{"id":43580018,"uuid":"135359245","full_name":"puppetlabs/puppetlabs-facts","owner":"puppetlabs","description":"This module provides the facts task. This task allows you to discover facts about remote machines in your infrastructure.","archived":false,"fork":false,"pushed_at":"2024-12-18T09:48:56.000Z","size":174,"stargazers_count":6,"open_issues_count":5,"forks_count":23,"subscribers_count":86,"default_branch":"main","last_synced_at":"2025-03-29T22:06:47.623Z","etag":null,"topics":["module","supported"],"latest_commit_sha":null,"homepage":"","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/puppetlabs.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":"CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-05-29T22:30:23.000Z","updated_at":"2024-12-18T09:49:00.000Z","dependencies_parsed_at":"2025-02-04T23:31:55.831Z","dependency_job_id":"211bf5f5-c8a4-4f05-bdd6-624bbd882d07","html_url":"https://github.com/puppetlabs/puppetlabs-facts","commit_stats":{"total_commits":79,"total_committers":13,"mean_commits":6.076923076923077,"dds":0.6582278481012658,"last_synced_commit":"0f413a6a30e93001d1da44e25efc141205ddf549"},"previous_names":[],"tags_count":18,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/puppetlabs%2Fpuppetlabs-facts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/puppetlabs%2Fpuppetlabs-facts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/puppetlabs%2Fpuppetlabs-facts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/puppetlabs%2Fpuppetlabs-facts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/puppetlabs","download_url":"https://codeload.github.com/puppetlabs/puppetlabs-facts/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247411234,"owners_count":20934653,"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":["module","supported"],"created_at":"2024-09-24T19:58:12.616Z","updated_at":"2025-04-05T23:08:20.757Z","avatar_url":"https://github.com/puppetlabs.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# facts\n\n#### Table of Contents\n\n1. [Description](#description)\n2. [Requirements](#requirements)\n3. [Usage](#usage)\n4. [Reference - An under-the-hood peek at what the module is doing and how](#reference)\n\n## Description\n\nThis module provides a collection of facts tasks and plans all of which retrieve facts from the specified targets but each of them processes the retrieved facts differently. The provided plans are:\n* `facts` - retrieves the facts and then stores them in the inventory, returns a result set wrapping result objects for each specified target which in turn wrap the retrieved facts\n* `facts::info` - retrieves the facts and returns information about each target's OS compiled from the `os` fact value retrieved from that target\n\nThe provided tasks:\n* `facts` - retrieves the facts and without further processing returns a result set wrapping result objects for each specified target which in turn wrap the retrieved facts (this task is used by the above plans). This task relies on cross-platform task support; if unavailable, the individual implementations can be used instead.\n* `facts::bash` - bash implementation of fact gathering, used by the `facts` task.\n* `facts::powershell` - powershell implementation of fact gathering, used by the `facts` task.\n* `facts::ruby` - ruby implementation of fact gathering, used by the `facts` task.\n\n`puppet_agent` module support:\nThe `puppet_agent::install_shell` task uses the `bash.sh` implementation code to gather facts. When `bash.sh` is invoked with the positional argument `platform` or `release` *only* the requested fact is returned. \n\nExample\n```\nroot@y77tzpv6qxnx5at:~# ./bash.sh \n{\n  \"os\": {\n    \"name\": \"Ubuntu\",\n    \"release\": {\n      \"full\": \"16.04\",\n      \"major\": \"16\",\n      \"minor\": \"04\"\n    },\n    \"family\": \"Debian\"\n  }\n}\nroot@y77tzpv6qxnx5at:~# ./bash.sh \"release\"\n16.04\nroot@y77tzpv6qxnx5at:~# ./bash.sh \"platform\"\nUbuntu\n```\n\n## Requirements\n\nThis module is compatible with the version of Puppet Bolt it ships with.\n\n## Usage\n\nTo run the facts plan run\n\n```\nbolt plan run facts --targets target1.example.com,target2.example.com\n```\n\n### Parameters\n\nAll plans have only one parameter:\n\n* `targets` - The targets to retrieve the facts from.\n\n## Reference\n\nThe core functionality is implemented in the `facts` task, which provides implementations\nfor the `shell`, `powershell`, and `puppet-agent` features. The powerhsell and bash implementations of the task compile and return information\nmimicking that provided by facter's `os` fact. When the `puppet-agent` feature is available the ruby implementation will return the result running `facter --json` on the target.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpuppetlabs%2Fpuppetlabs-facts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpuppetlabs%2Fpuppetlabs-facts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpuppetlabs%2Fpuppetlabs-facts/lists"}