Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modernize the module #38

Open
wants to merge 16 commits into
base: master
Choose a base branch
from
Prev Previous commit
Next Next commit
Inline package_ensure parameter and add data types
ekohl committed Dec 27, 2022
commit 93094001be816e2c12e5166637e1a5ddc20e83ba
4 changes: 2 additions & 2 deletions manifests/init.pp
Original file line number Diff line number Diff line change
@@ -14,8 +14,8 @@
# @author Dejan Golja <[email protected]>
#
class gnupg (
$package_ensure = $gnupg::params::package_ensure,
$package_name = $gnupg::params::package_name,
String[1] $package_ensure = 'present',
String[1] $package_name = $gnupg::params::package_name,
) inherits gnupg::params {
package { 'gnupg':
ensure => $package_ensure,
2 changes: 0 additions & 2 deletions manifests/params.pp
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
# @summary Set module defaults
# @api private
class gnupg::params {
$package_ensure = 'present'

case $::osfamily {
'Debian': {
$package_name ='gnupg'