diff --git a/REFERENCE.md b/REFERENCE.md index b6bcdd9..b372705 100644 --- a/REFERENCE.md +++ b/REFERENCE.md @@ -65,9 +65,9 @@ Default value: `['postfix']` Data type: `String` -defaults to 'install' +defaults to 'installed' -Default value: `'present'` +Default value: `'installed'` ##### `use_profile` diff --git a/manifests/init.pp b/manifests/init.pp index 13c16d3..4581b48 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -7,7 +7,7 @@ # @param packages # packages to install # @param package_ensure -# defaults to 'install' +# defaults to 'installed' # @param use_profile # profile for the configuration to use. # @param parameters @@ -66,7 +66,7 @@ # class postfix ( Array $packages = ['postfix'], - String $package_ensure = 'present', + String $package_ensure = 'installed', String[1] $use_profile = 'none', Hash $parameters = {}, Hash $parameters_profiles = {}, diff --git a/spec/classes/postfix_spec.rb b/spec/classes/postfix_spec.rb index a122633..772156b 100644 --- a/spec/classes/postfix_spec.rb +++ b/spec/classes/postfix_spec.rb @@ -11,7 +11,7 @@ it { is_expected.to contain_class('postfix::service') } it { is_expected.to contain_package('postfix') - .with(ensure: 'present', + .with(ensure: 'installed', tag: 'postfix-packages') } end