Skip to content

Commit

Permalink
fix multiple nssdb::create declarations
Browse files Browse the repository at this point in the history
  • Loading branch information
Joshua Hoblitt committed Jan 15, 2014
1 parent 2a212ec commit 1be0034
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions manifests/create.pp
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,11 @@
group => $group_id,
require => [
File["${certdir}/password.conf"],
Exec['create_nss_db'],
Exec["create_nss_db_${title}"],
],
}

exec {'create_nss_db':
exec { "create_nss_db_${title}":
command => "/usr/bin/certutil -N -d ${certdir} -f ${certdir}/password.conf",
creates => ["${certdir}/cert8.db", "${certdir}/key3.db", "${certdir}/secmod.db"],
require => [
Expand Down
8 changes: 4 additions & 4 deletions spec/defines/nssdb_create_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
:mode => '0600',
:require => [
'File[/obsolete/password.conf]',
'Exec[create_nss_db]',
'Exec[create_nss_db_/obsolete]',
]
)
end
Expand All @@ -52,7 +52,7 @@

context 'create nss db' do
it do
should contain_exec('create_nss_db').with(
should contain_exec('create_nss_db_/obsolete').with(
:command => %r{-d /obsolete -f /obsolete},
:creates => [
'/obsolete/cert8.db',
Expand Down Expand Up @@ -104,15 +104,15 @@
:owner => 'nobody',
:group => 'nobody',
:mode => '0660',
:require => [ 'File[/obsolete/password.conf]', 'Exec[create_nss_db]']
:require => [ 'File[/obsolete/password.conf]', 'Exec[create_nss_db_/obsolete]']
)
end
end
end

context 'create nss db' do
it do
should contain_exec('create_nss_db').with(
should contain_exec('create_nss_db_/obsolete').with(
:command => %r{-d /obsolete -f /obsolete},
:creates => [
'/obsolete/cert8.db',
Expand Down

0 comments on commit 1be0034

Please sign in to comment.