Merge pull request #98 from MartyEwings/psql
(SUP-3122) Fix PSQL node detection in 2021.5
check current connections to Postgres less than 90% defined maximum
check current connections to Postgres less than 90% defined maximum
(SUP-2917) Add indicator S0038
Added indicator S0038 to check number of environments that are present in $codedir/environments. If the number of environments is greater than or equal to 100, then S0038 resolves to false. Otherwise if there are less than 100 environments, the fact resolves to true. Added documentation to README and test.
Merge pull request #104 from sandrajiang/SUP-2908
check current connections to Postgres less than 90% defined maximum
Merge pull request #105 from taikaa/SUP-2917
(SUP-2917) Add indicator S0038 to check number of environments that are present in $codedir/environments
Bump pe_status_check count to 30
This commit bumps the expected number of chunks in the pe_status_check fact to the correct number, 30.
Merge pull request #107 from m0dular/bump-count
Bump pe_status_check count to 30
Bump pe_status_check count to 30
This commit bumps the expected number of chunks in the pe_status_check fact to the correct number, 30.
Merge pull request #106 from MartyEwings/agent
(SUP-3121) Agent connection to pxp broker
This commit modifies S0022
Previously if end date did not exist or resulted in an invalid date,
Facter would experience a runtime exception and crash.
Additionally, the default behavior was for validity to resolve to
true.
Now pe_status_check.S0022 handles the exception when end date is missing or
results in an invalid date. It prints a Facter warning
message, and the fact resolves to false if end date is missing or
cannot be converted to a date. If license_type is
not Perpetual or Subscription or is missing the S0022 resolves to false.
Previously the grep result, an array, for license_type and end date
would be converted into a string. This commit alters this logic to
capture the first item in the array returned from the grep.
Previously: Date.parse(["end: 2022-05-05\n"])
Now: Date.parse("end: 2022-05-05")
Error handling has been added to account for when license_type is
missing, the first item is nil in the array returned from
File.readlines(license_file).grep(%r{license_type:}).
This commit also modifies the spec test for S0022. Previously the spec
test expected failure if the license file doesn't exist on the machine.
Now the spec test adds a new temporary license file with an end date
that has already passed for the failure condition.Merge pull request #103 from taikaa/SUP-3101
(SUP-3101) Add exception handling and Facter warnings for license_type and end date that do not exist or are invalid.
(SUP-3180) Rescue a loaderror when checking filesystem
Prior to this commit, if 'sys/filesystem' failed to load in the fact resolution, 'puppet facts show' would fail with an empty output. This would cause problems with `puppet infra run` commands as it uses a different ruby stack than the puppet-agent. This commit catches the loaderror and causes any checks that use it to be false.
Merge pull request #111 from jarretlavallee/SUP-3180
(SUP-3180) Rescue a loaderror when checking filesystem
Merge pull request #112 from MartyEwings/errorhandling
add better error handling to AS0002
Merge pull request #109 from MartyEwings/SUP-3150
(SUP-3150) Broker TCP Checks for infra components
Merge pull request #113 from puppetlabs/release-prep
Release prep v1.3.0