forked from jhoblitt/puppet-nsstools
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rename module from nssdb -> nsstools
To avoid a namespace conflict with the module this one was initially forked from and has since become highly diverged.
- Loading branch information
Joshua Hoblitt
committed
Feb 10, 2014
1 parent
258a04e
commit c31de09
Showing
14 changed files
with
66 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,12 @@ | ||
name 'rcritten/nssdb' | ||
name 'jhoblitt/nsstools' | ||
version '1.0.0' | ||
source 'git://github.com/rcritten/puppet-nssdb.git' | ||
author 'Rob Crittenden <rcritten@redhat.com>' | ||
|
||
author 'Joshua Hoblitt <jhoblitt@cpan.org>' | ||
license 'Apache' | ||
summary 'NSS database Puppet Module' | ||
description 'This module manages NSS databases.' | ||
project_page 'https://github.com/rcritten/puppet-nssdb' | ||
project_page 'https://github.com/jhoblitt/puppet-nsstools' | ||
source 'git://github.com/jhoblitt/puppet-nsstools.git' | ||
summary 'Manages NSS X.509 certificate databases.' | ||
description 'Manages NSS X.509 certificate databases.' | ||
|
||
dependency 'puppetlabs/stdlib', '>= 4.0.0' | ||
dependency 'camptocamp/openssl', '>= 0.1.0' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,20 @@ | ||
# utility class | ||
class nssdb ( | ||
class nsstools ( | ||
$require_openssl = true, | ||
) { | ||
validate_bool($require_openssl) | ||
|
||
include nssdb::params | ||
ensure_packages($::nssdb::params::package_name) | ||
include nsstools::params | ||
ensure_packages($::nsstools::params::package_name) | ||
|
||
if $require_openssl { | ||
include openssl | ||
|
||
Class['openssl'] -> | ||
Anchor['nssdb::begin'] | ||
Anchor['nsstools::begin'] | ||
} | ||
|
||
anchor{ 'nssdb::begin': } -> | ||
Package[$::nssdb::params::package_name] -> | ||
anchor{ 'nssdb::end': } | ||
anchor{ 'nsstools::begin': } -> | ||
Package[$::nsstools::params::package_name] -> | ||
anchor{ 'nsstools::end': } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,23 @@ | ||
# NOTE: This requires that the directory /tmp/nssdb already exists | ||
# NOTE: This requires that the directory /tmp/nsstools already exists | ||
|
||
# Create a test database owned by the user rcrit | ||
nssdb::create { '/tmp/nssdb': | ||
nsstools::create { '/tmp/nsstools': | ||
owner => 'rcrit', | ||
group => 'rcrit', | ||
password => 'test', | ||
} | ||
|
||
# Add a certificate and private key from PEM fiels | ||
nssdb::add_cert_and_key { 'test': | ||
certdir => '/tmp/nssdb', | ||
nsstools::add_cert_and_key { 'test': | ||
certdir => '/tmp/nsstools', | ||
cert => '/tmp/cert.pem', | ||
key => '/tmp/key.pem', | ||
} | ||
|
||
# You can confirm that things are loaded properly with: | ||
# | ||
# List the certs: | ||
# certutil -L -d /tmp/nssdb/test | ||
# certutil -L -d /tmp/nsstools/test | ||
# | ||
# Verify the cert: | ||
# certutil -V -u V -d /tmp/nssdb/test -n test | ||
# certutil -V -u V -d /tmp/nsstools/test -n test |