<feed xmlns='http://www.w3.org/2005/Atom'>
<title>puppet-stdlib/lib/puppet/parser/functions, branch master</title>
<subtitle>Puppet module for stdlib</subtitle>
<id>https://git.fluxo.info/puppet-stdlib/atom?h=master</id>
<link rel='self' href='https://git.fluxo.info/puppet-stdlib/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git.fluxo.info/puppet-stdlib/'/>
<updated>2016-03-17T16:25:38+00:00</updated>
<entry>
<title>Merge pull request #576 from yadavnikhil/master</title>
<updated>2016-03-17T16:25:38+00:00</updated>
<author>
<name>Hunter Haugen</name>
<email>hunter@puppetlabs.com</email>
</author>
<published>2016-03-17T16:25:38+00:00</published>
<link rel='alternate' type='text/html' href='https://git.fluxo.info/puppet-stdlib/commit/?id=b6383d259cf4917edd832ba31cf4dae2b4201235'/>
<id>urn:sha1:b6383d259cf4917edd832ba31cf4dae2b4201235</id>
<content type='text'>
ensure_packages.rb: Modifed to pass hiera parameters (as hash,array) as first argument</content>
</entry>
<entry>
<title>Add ensure_resources() function</title>
<updated>2016-03-15T03:59:38+00:00</updated>
<author>
<name>Nikhil Yadav</name>
<email>nikhil.yadav@amdocs.com</email>
</author>
<published>2016-03-10T05:03:35+00:00</published>
<link rel='alternate' type='text/html' href='https://git.fluxo.info/puppet-stdlib/commit/?id=0da9ca7e4a78df49c08873f55caf7c88cdd9bc32'/>
<id>urn:sha1:0da9ca7e4a78df49c08873f55caf7c88cdd9bc32</id>
<content type='text'>
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 &amp; 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' =&gt; { gid =&gt; 'mygroup', uid =&gt;'600' } ,  'alex' =&gt; { gid =&gt; 'mygroup' }}, {'ensure' =&gt;'present'})

From Hiera Backend:

userlist:
  dan:
    gid: 'mygroup'

uid: '600'
  alex:
 gid: 'mygroup'

Call:
ensure_resources('user',hiera_hash('userlist'), {'ensure' =&gt; '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)
</content>
</entry>
<entry>
<title>Add enclose_ipv6 function</title>
<updated>2016-03-13T22:20:49+00:00</updated>
<author>
<name>Emilien Macchi</name>
<email>emilien@redhat.com</email>
</author>
<published>2016-03-13T22:20:49+00:00</published>
<link rel='alternate' type='text/html' href='https://git.fluxo.info/puppet-stdlib/commit/?id=0378336f9cefea65675d03f1d7107c75cb950fb6'/>
<id>urn:sha1:0378336f9cefea65675d03f1d7107c75cb950fb6</id>
<content type='text'>
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 &lt;benedikt_bock@web.de&gt;
</content>
</entry>
<entry>
<title>Merge pull request #570 from gfidente/master</title>
<updated>2016-02-18T18:32:25+00:00</updated>
<author>
<name>Hunter Haugen</name>
<email>hunter@puppetlabs.com</email>
</author>
<published>2016-02-18T18:32:25+00:00</published>
<link rel='alternate' type='text/html' href='https://git.fluxo.info/puppet-stdlib/commit/?id=69ca8d09c6124e9b5bd98e62fb201e734ae5bd05'/>
<id>urn:sha1:69ca8d09c6124e9b5bd98e62fb201e734ae5bd05</id>
<content type='text'>
Add is_ipv4_address and is_ipv6_address functions</content>
</entry>
<entry>
<title>Extend Base64() function support</title>
<updated>2016-02-18T15:38:19+00:00</updated>
<author>
<name>guessi</name>
<email>guessi@gmail.com</email>
</author>
<published>2016-02-17T09:00:41+00:00</published>
<link rel='alternate' type='text/html' href='https://git.fluxo.info/puppet-stdlib/commit/?id=dc64e721ee0e5e49dd3b446aa3c90dab19654c21'/>
<id>urn:sha1:dc64e721ee0e5e49dd3b446aa3c90dab19654c21</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Add dig() function</title>
<updated>2016-02-16T08:51:28+00:00</updated>
<author>
<name>Maksym Melnychok</name>
<email>maksym@yelp.com</email>
</author>
<published>2016-02-08T15:50:35+00:00</published>
<link rel='alternate' type='text/html' href='https://git.fluxo.info/puppet-stdlib/commit/?id=3169a43f4c24d01c64c90ab9537da284f587c726'/>
<id>urn:sha1:3169a43f4c24d01c64c90ab9537da284f587c726</id>
<content type='text'>
Deprecates #try_get_value()
</content>
</entry>
<entry>
<title>Add is_ipv4_address and is_ipv6_address functions</title>
<updated>2016-01-22T17:01:49+00:00</updated>
<author>
<name>Giulio Fidente</name>
<email>gfidente@redhat.com</email>
</author>
<published>2016-01-22T16:55:03+00:00</published>
<link rel='alternate' type='text/html' href='https://git.fluxo.info/puppet-stdlib/commit/?id=d85aec41a3b57a13f16086cc1ff7ed2fe09602b8'/>
<id>urn:sha1:d85aec41a3b57a13f16086cc1ff7ed2fe09602b8</id>
<content type='text'>
These are useful when making decisions based on the type of IP
address received.
</content>
</entry>
<entry>
<title>Fix reference to validate_bool in function</title>
<updated>2016-01-19T16:22:01+00:00</updated>
<author>
<name>Matt Bostock</name>
<email>matt@mattbostock.com</email>
</author>
<published>2016-01-19T16:22:01+00:00</published>
<link rel='alternate' type='text/html' href='https://git.fluxo.info/puppet-stdlib/commit/?id=b7df76cf7acf5924f169e1458f0a53248fc81c08'/>
<id>urn:sha1:b7df76cf7acf5924f169e1458f0a53248fc81c08</id>
<content type='text'>
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.
</content>
</entry>
<entry>
<title>Merge pull request #552 from mattbostock/add_x509_rsa_key_pair</title>
<updated>2016-01-08T11:13:16+00:00</updated>
<author>
<name>David Schmitt</name>
<email>david.schmitt@puppetlabs.com</email>
</author>
<published>2016-01-08T11:13:16+00:00</published>
<link rel='alternate' type='text/html' href='https://git.fluxo.info/puppet-stdlib/commit/?id=f875770245d6ce205dbf97f109d323a473d3e249'/>
<id>urn:sha1:f875770245d6ce205dbf97f109d323a473d3e249</id>
<content type='text'>
Add a function to validate an x509 RSA key pair</content>
</entry>
<entry>
<title>Add a function to validate an x509 RSA key pair</title>
<updated>2016-01-08T11:09:45+00:00</updated>
<author>
<name>Matt Bostock</name>
<email>matt@mattbostock.com</email>
</author>
<published>2015-11-23T23:45:23+00:00</published>
<link rel='alternate' type='text/html' href='https://git.fluxo.info/puppet-stdlib/commit/?id=97320ab42121a10b76c642b8378c82a888148e4b'/>
<id>urn:sha1:97320ab42121a10b76c642b8378c82a888148e4b</id>
<content type='text'>
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:

    ==&gt; 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
</content>
</entry>
</feed>
