Skip to content

Commit

Permalink
plugins: avoid circular dependencies
Browse files Browse the repository at this point in the history
`include` the letsencrypt class instead of `require` it.

Fixes #331.
  • Loading branch information
kenyon committed Oct 13, 2023
1 parent 19391cc commit ed36053
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion 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
include letsencrypt

if ! $api_key and ! $api_token {
fail('No authentication method provided, please specify either api_token or api_key and api_email.')
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 @@ -24,7 +24,7 @@
Stdlib::Absolutepath $config_dir = $letsencrypt::config_dir,
Boolean $manage_package = true,
) {
require letsencrypt
include letsencrypt

if $manage_package {
package { $package_name:
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 @@ -12,7 +12,7 @@
Integer $propagation_seconds = 10,
Boolean $manage_package = true,
) {
require letsencrypt
include letsencrypt

if $manage_package {
package { $package_name:
Expand Down
2 changes: 1 addition & 1 deletion manifests/plugin/nginx.pp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
Boolean $manage_package = true,
String[1] $package_name = 'python3-certbot-nginx',
) {
require letsencrypt
include letsencrypt

if $manage_package {
package { $package_name:
Expand Down

0 comments on commit ed36053

Please sign in to comment.