diff --git a/manifests/init.pp b/manifests/init.pp index 7fa2c54580adf4749f70ddb4349a459ae60329d0..1b60e60335ce829f417277b807746874e20cd984 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -177,6 +177,7 @@ class cfssl ( owner => $sysuser, group => $sysgroup, content => to_json_pretty($serve_config), + notify => Service['cfssl'], } vcsrepo { $_goose_cfssldbmigrate_path: diff --git a/spec/classes/cfssl_spec.rb b/spec/classes/cfssl_spec.rb index 04b64b8bc0b3ddbb0e13e81023a2dc29f5494eea..ea1af37d75b80652f6c02032b35da3b4ec0da479 100644 --- a/spec/classes/cfssl_spec.rb +++ b/spec/classes/cfssl_spec.rb @@ -20,6 +20,7 @@ describe 'cfssl' do } end + it { is_expected.to contain_file('/etc/cfssl/serve-config.json').that_notifies('Service[cfssl]') } it { is_expected.to compile } end end