]> gitweb.fluxo.info Git - puppet-stdlib.git/commit
(#8925) Added new function called 'get_certificate' for retrieving
authorKen Barber <ken@bob.sh>
Sun, 14 Aug 2011 01:47:32 +0000 (03:47 +0200)
committerKen Barber <ken@bob.sh>
Wed, 17 Aug 2011 14:36:59 +0000 (16:36 +0200)
commit9b912d028fe1a2622ec61a56b1f0774ef3c9f43b
tree56c1be57410b1c1e6532b03c42cda4e1602ffd08
parent33887f9be50c4fd94bbd08d7c00d9b3d97e29d21
(#8925) Added new function called 'get_certificate' for retrieving
certificates from a CA (or locally).

This function works by either obtaining the file locally
or remotely based on Puppets configuration.

Also added get_pubkey which wraps get_certificate and extracts the
public key.
23 files changed:
lib/puppet/parser/functions/get_certificate.rb [new file with mode: 0644]
lib/puppet/parser/functions/get_pubkey.rb [new file with mode: 0644]
spec/fixtures/master_config/.gitignore [new file with mode: 0644]
spec/fixtures/master_config/auth.conf [new file with mode: 0644]
spec/fixtures/master_config/ssl/ca/ca_crl.pem [new file with mode: 0644]
spec/fixtures/master_config/ssl/ca/ca_crt.pem [new file with mode: 0644]
spec/fixtures/master_config/ssl/ca/ca_key.pem [new file with mode: 0644]
spec/fixtures/master_config/ssl/ca/ca_pub.pem [new file with mode: 0644]
spec/fixtures/master_config/ssl/ca/inventory.txt [new file with mode: 0644]
spec/fixtures/master_config/ssl/ca/private/ca.pass [new file with mode: 0644]
spec/fixtures/master_config/ssl/ca/serial [new file with mode: 0644]
spec/fixtures/master_config/ssl/ca/signed/bob@mydomain.com.pem [new file with mode: 0644]
spec/fixtures/master_config/ssl/ca/signed/puppetmaster.pem [new file with mode: 0644]
spec/fixtures/master_config/ssl/certs/bob@mydomain.com.pem [new file with mode: 0644]
spec/fixtures/master_config/ssl/certs/ca.pem [new file with mode: 0644]
spec/fixtures/master_config/ssl/certs/puppetmaster.pem [new file with mode: 0644]
spec/fixtures/master_config/ssl/crl.pem [new file with mode: 0644]
spec/fixtures/master_config/ssl/private_keys/bob@mydomain.com.pem [new file with mode: 0644]
spec/fixtures/master_config/ssl/private_keys/puppetmaster.pem [new file with mode: 0644]
spec/fixtures/master_config/ssl/public_keys/bob@mydomain.com.pem [new file with mode: 0644]
spec/fixtures/master_config/ssl/public_keys/puppetmaster.pem [new file with mode: 0644]
spec/unit/puppet/parser/functions/get_certficiate_spec.rb [new file with mode: 0755]
spec/unit/puppet/parser/functions/get_pubkey_spec.rb [new file with mode: 0755]