puppetlabs-stdlib
puppetlabs-stdlib copied to clipboard
Puppet Labs Standard Library module
Since the release of the Modern Puppet function format several of the functions and all new ones to be added have been written in it, however the vast majority of...
## Use Case My request is to introduce another parameter, that ensures that there is only one occurrence of a line that can be matched by the pattern and deletes...
@kjetilho pointed out out me recently that validate_x509_rsa_key_pair validates that the certificate is signed by the private key. It doesn't validate that the certificate and key are part of the...
## Use Case supported puppet modules use sometimes the ensure_package function, which leads to a duplicate declaration error if you have it already defined in another manifest which gets included...
This is a ticket to track the following: - [ ] Find out what broke spec tests in main - [ ] Fix spec tests
This corrects the regex used by the pw_hash function for bcrypt-type hashes. The first two characters are interpreted as a strength parameter by bcrypt, and must take a value between...
The `package_provider.rb` facts can be optimized simply by moving [the `require` lines](https://github.com/puppetlabs/puppetlabs-stdlib/blob/dab602d0b083594e1ceb07674f83554a788be4c1/lib/facter/package_provider.rb#L12) into the `setcode` block. This reduces stand-alone puppet runs by 0.5s on modern systems. (On puppet-agent runs, no...
## Summary Use the read method on the return of open_url to actually get the content. Otherwise the following error is returned by puppetserver: ``` Error: Could not retrieve catalog...