summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2016-03-17Merge pull request #576 from yadavnikhil/masterHEADmasterHunter Haugen
ensure_packages.rb: Modifed to pass hiera parameters (as hash,array) as first argument
2016-03-16Merge pull request #578 from bmjen/fqdn-rand-fixHunter Haugen
(maint) Fixes fqdn_rand_string tests
2016-03-16(maint) Fixes fqdn_rand_string testsBryan Jen
Puppet 4.4.0 and later has changed fqdn_rand to use a higher ceiling (PUP-5646), the tests for fqdn_rand_string needed to be updated to reflect the new expected output.
2016-03-15Merge pull request #577 from EmilienM/enclose_ipv6Hunter Haugen
Add enclose_ipv6 function
2016-03-15Add ensure_resources() functionNikhil Yadav
New function "ensure_resources()" to support passing hash as parameter OR from hiera backend This new function is extension of ensure_resource() which will now support to pass multiple values as hash/array OR from hiera backend variables in title argument with additional parameters needed. It will process multiple values for a resource type from the passed argument & pass each entry (type, title, params) to ensure_resource() in required format for further processing. Now user can have duplicate resource check functionality extended to multiple entries with this new function. Use: For multiple resources using hash: ensure_resources('user', {'dan' => { gid => 'mygroup', uid =>'600' } , 'alex' => { gid => 'mygroup' }}, {'ensure' =>'present'}) From Hiera Backend: userlist: dan: gid: 'mygroup' uid: '600' alex: gid: 'mygroup' Call: ensure_resources('user',hiera_hash('userlist'), {'ensure' => 'present'}) ensure_packages() Modified to also support Hash type argument for packages This modification will call newly added ensure_resources() for processing Hash as second argument. The original functionality remains same for Array type arguments. Use: hiera: packagelist: ksh: ensure: latest mlocate: {} myrpm: provider: rpm source: "/tmp/myrpm-1.0.0.x86_64.rpm" install_options: --prefix: /users/home openssl: provider: rpm source: "/tmp/openssl-1.0.1e-42.el7.x86_64.rpm" Call: ensure_packages($packagelist)
2016-03-13Add enclose_ipv6 functionEmilien Macchi
Copy a function from puppetlabs/apache, created by Benedikt Bock by 55cc3b4e8f4bc859a1255cb57be2c7923005d822 . This function enclose IPv6 addresses in square brackets. It takes an array of ip addresses and encloses the ipv6 addresses with square brackets. Co-Authored-By: Benedikt Bock <benedikt_bock@web.de>
2016-02-18Merge pull request #570 from gfidente/masterHunter Haugen
Add is_ipv4_address and is_ipv6_address functions
2016-02-18Merge pull request #575 from guessi/extend_base64_function_supportTP Honey
Extend Base64() function support
2016-02-18Extend Base64() function supportguessi
2016-02-16Merge pull request #573 from Yelp/pl-digHunter Haugen
Add dig function
2016-02-16Merge pull request #574 from DavidS/fm-4046-update-msyncTP Honey
(FM-4046) Update to current msync configs [006831f]
2016-02-16(FM-4046) Update to current msync configs [006831f]David Schmitt
This moves all copyright statements to the NOTICE file in accordance with the ASFs guidelines on applying the Apache-2.0 license.
2016-02-16Add dig() functionMaksym Melnychok
Deprecates #try_get_value()
2016-01-27Merge pull request #569 from DavidS/fm-4049-update-msyncHunter Haugen
(FM-4049) update to modulesync_configs
2016-01-27(FM-4049) Update to current msync configs [2c99161]David Schmitt
2016-01-22Add is_ipv4_address and is_ipv6_address functionsGiulio Fidente
These are useful when making decisions based on the type of IP address received.
2016-01-20Merge pull request #568 from mattbostock/fix_docsJT (Jonny)
Fix reference to validate_bool in function
2016-01-19Fix reference to validate_bool in functionMatt Bostock
The documentation in `validate_ip_address` references `validate_bool`, but I believe this should read `validate_ip_address` instead, which makes more sense. Looks like this was copied from `validate_ipv4_address`, which I fixed in 7b068781.
2016-01-18Merge pull request #567 from alechenninger/add-test-for-basename-with-schemeDavid Schmitt
Add test for basename on path with scheme
2016-01-16Add test for basename on path with schemeAlec Henninger
2016-01-12Merge pull request #566 from puppetlabs/4.11.xDavid Schmitt
4.11.0 merge back
2016-01-08Merge pull request #552 from mattbostock/add_x509_rsa_key_pairDavid Schmitt
Add a function to validate an x509 RSA key pair
2016-01-08Change order of tests to be more logicalMatt Bostock
Put the tests using a valid certificate fixture together and put tests using a valid key fixture together.
2016-01-08Test certificate and key with a truncated middleMatt Bostock
Test a valid certificate and valid key that have had 48 characters removed from their middle, to simulate a malformed certificate and key. Suggested by @DavidS in https://github.com/puppetlabs/puppetlabs-stdlib/pull/552
2016-01-08Add a function to validate an x509 RSA key pairMatt Bostock
Add a function to validate an x509 RSA certificate and key pair, as commonly used for TLS certificates. The rationale behind this is that we store our TLS certificates and private keys in Hiera YAML files, and poor indentation or formatting in the YAML file could cause a valid certificate to be considered invalid. Will cause the Puppet run to fail if: - an invalid certificate is detected - an invalid RSA key is detected - the certificate does not match the key, i.e. the certificate has not been signed by the supplied key The test certificates I've used in the spec tests were generated using the Go standard library: $ go run $GOROOT/src/crypto/tls/generate_cert.go -host localhost Example output: ==> cache-1.router: Error: Not a valid RSA key: Neither PUB key nor PRIV key:: nested asn1 error at /var/govuk/puppet/modules/nginx/manifests/config/ssl.pp:30 on node cache-1.router.dev.gov.uk
2016-01-07Merge pull request #565 from tphoney/4.11.0_tweakDavid Schmitt
minor tweak to 4.11.0 adding debian 8 to metadata
2016-01-07minor tweak to 4.11.0 adding debian 8 to metadatatphoney
2016-01-04Merge pull request #545 from mpolenchuk/masterDavid Schmitt
Add clamp function
2015-12-31Merge pull request #564 from tphoney/4.11.0_prepJesse Lovelace
4.11.0 prep
2015-12-31Add clamp functionMichael Polenchuk
Clamp keeps value within the range. Employ of soft() makes the whole thing is independant of order.
2015-12-304.11.0 preptphoney
2015-12-21Merge pull request #553 from logicminds/absolute_pathBryan Jen
adds new parser called is_absolute_path
2015-12-21Merge pull request #561 from DavidS/fix-package_providerTP Honey
Allow package_provider fact to resolve on PE 3.x
2015-12-18Allow package_provider fact to resolve on PE 3.xDavid Schmitt
PE 3.x emits a puppetversion fact in the format "3.x.x (Puppet Enterprise 3.x.x)". This fact causes an error when invoked on PE 3.x: Could not retrieve fact='package_provider', resolution='<anonymous>': Malformed version number string 3.8.1 (Puppet Enterprise 3.8.1 This fix has been tested on PE 3.8.2 and should work for PE 3.3, 3.7, and 3.8. Original-fix-by: Alex Harden <aharden@gmail.com>
2015-12-17Merge pull request #559 from DavidS/fm-3802-fix-ensure_resource-testTP Honey
(FM-3802) make ensure_resource test of packages
2015-12-17(FM-3802) make ensure_resource test of packagesDavid Schmitt
This ensures that the test passes independently of changes to rubygems.
2015-12-15refactors the validate_absolute_path to utilize the is_absolute_pathCorey Osman
2015-12-15adds new parser called is_absolute_pathCorey Osman
* is_absolute_path returns boolean true if the given path is absolute, returns false otherwise. * works for windows and unix
2015-12-15Merge pull request #558 from puppetlabs/4.10.xJesse Lovelace
4.10.x mergeback
2015-12-14Merge pull request #557 from jbondpdx/4.10.xBryan Jen
edits to README
2015-12-14more carriage returnsjbondpdx
2015-12-14more carriage returns, nojbondpdx
2015-12-14removing mid-line carriage returnsjbondpdx
2015-12-14edits to READMEjbondpdx
2015-12-11Merge pull request #556 from HelenCampbell/4.10.0_prepBryan Jen
Changelog and versionbump for 4.10.0
2015-12-11Changelog and versionbump for 4.10.0Helen Campbell
2015-12-10Merge pull request #554 from kjetilho/ticket/2886-seeded_randBryan Jen
(#2886) seeded_rand: new function
2015-12-08Merge pull request #555 from puppetlabs/4.9.xTP Honey
4.9.x Mergeback
2015-12-08(#2886) seeded_rand: new functionKjetil Torgrim Homme
seeded_rand is needed for repeatable randomness across nodes in a cluster
2015-11-30Merge pull request #546 from jdevesa/validate_ipBryan Jen
Add validator for any IP address