Skip to content

Commit

Permalink
Merge pull request #321 from martijndegouw/feature/propagepackageensu…
Browse files Browse the repository at this point in the history
…retonginxplugin

Propagate the package_ensure parameter to all plugins
  • Loading branch information
bastelfreak authored Jun 29, 2023
2 parents e4a3a1e + 2a9e467 commit 2dcc8a7
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
4 changes: 2 additions & 2 deletions manifests/plugin/dns_cloudflare.pp
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
Boolean $manage_package = true,
Integer $propagation_seconds = 10,
) {
require letsencrypt::install
require letsencrypt

if ! $api_key and ! $api_token {
fail('No authentication method provided, please specify either api_token or api_key and api_email.')
Expand All @@ -35,7 +35,7 @@
}

package { $package_name:
ensure => installed,
ensure => $letsencrypt::package_ensure,
}
}

Expand Down
2 changes: 1 addition & 1 deletion manifests/plugin/dns_rfc2136.pp
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

if $manage_package {
package { $package_name:
ensure => installed,
ensure => $letsencrypt::package_ensure,
}
}

Expand Down
2 changes: 1 addition & 1 deletion manifests/plugin/dns_route53.pp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

if $manage_package {
package { $package_name:
ensure => installed,
ensure => $letsencrypt::package_ensure,
}
}
}
4 changes: 3 additions & 1 deletion manifests/plugin/nginx.pp
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,11 @@
Boolean $manage_package = true,
String[1] $package_name = 'python3-certbot-nginx',
) {
require letsencrypt

if $manage_package {
package { $package_name:
ensure => installed,
ensure => $letsencrypt::package_ensure,
}
}
}

0 comments on commit 2dcc8a7

Please sign in to comment.