-
Notifications
You must be signed in to change notification settings - Fork 495
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2674 from mhashizume/drop-ruby-25
Drop Ruby 2.5 support
- Loading branch information
Showing
14 changed files
with
31 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,7 +18,7 @@ jobs: | |
strategy: | ||
matrix: | ||
ruby: | ||
- '2.5' | ||
- '2.6' | ||
- '2.7' | ||
- '3.0' | ||
- '3.2' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,6 @@ | |
[![Test Coverage](https://api.codeclimate.com/v1/badges/3bd4be86f4b0b49bc0ca/test_coverage)](https://codeclimate.com/github/puppetlabs/facter/test_coverage) | ||
[![Maintainability](https://api.codeclimate.com/v1/badges/3bd4be86f4b0b49bc0ca/maintainability)](https://codeclimate.com/github/puppetlabs/facter/maintainability) | ||
|
||
|
||
Facter is a command-line tool that gathers basic facts about nodes (systems) | ||
such as hardware details, network settings, OS type and version, and more. | ||
These facts are made available as variables in your Puppet manifests and can be | ||
|
@@ -21,17 +20,20 @@ Documentation for the Facter project can be found on the [Puppet Docs | |
site](https://puppet.com/docs/puppet/latest/facter.html). | ||
|
||
## Supported platforms | ||
|
||
* Linux | ||
* macOS | ||
* Windows | ||
* Solaris | ||
* AIX | ||
|
||
## Requirements | ||
* Ruby 2.5+ | ||
|
||
* Ruby 2.6+ | ||
* FFI (for facts like `mountpoints` which are resolved using C API calls) | ||
|
||
## Basic concepts | ||
|
||
The project has three main parts, the framework, facts and resolvers. | ||
In the framework we implement functionality that is agnostic of specific facts like parsing user input, formatting output, etc. | ||
|
||
|
@@ -52,9 +54,10 @@ sequenceDiagram | |
resolver->>fact: system information | ||
fact->>framework: fact value | ||
framework->>user: formatted user output | ||
```` | ||
``` | ||
|
||
## Getting started | ||
|
||
After cloning the project, run `bundle install` to install all dependencies. | ||
|
||
You can run facter by executing `./bin/facter`. | ||
|
@@ -63,11 +66,13 @@ The command will output all the facts that facter detected for the current OS. | |
The implementation can be validated locally by running `bundle exec rake check`. | ||
|
||
## Goals - fast, easy, compatible | ||
|
||
* Gain performance similar to the C++ version of Facter. We plan to achieve this goal by gathering multiple facts with only one call and by using the faster Win32 API rather than WMI for the Windows implementation. | ||
* Facilitate community contribution. At the moment, C++ presents a possible impediment for community contributions. | ||
* Enable native integration with other Ruby-based projects such as Bolt and puppet. | ||
* Enable native integration for custom facts. | ||
* Provide 100% compatibility with C++ Facter (drop-in replacement). | ||
|
||
## Licensing | ||
|
||
See [LICENSE](https://github.com/puppetlabs/facter/blob/main/LICENSE) file. Puppet is licensed by Puppet, Inc. under the Apache license. Puppet, Inc. can be contacted at: [email protected] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters