Skip to content

Commit

Permalink
switch package ensure from 'present' to 'installed'
Browse files Browse the repository at this point in the history
this seems the better default !
  • Loading branch information
trefzer committed Dec 7, 2024
1 parent 779ad71 commit 39a2f7e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions REFERENCE.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,9 @@ Default value: `['postfix']`

Data type: `String`

defaults to 'install'
defaults to 'installed'

Default value: `'present'`
Default value: `'installed'`

##### <a name="-postfix--use_profile"></a>`use_profile`

Expand Down
4 changes: 2 additions & 2 deletions manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 = {},
Expand Down
2 changes: 1 addition & 1 deletion spec/classes/postfix_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 39a2f7e

Please sign in to comment.