Skip to content

Commit 230c5ea

Browse files
committed
Remove hardcoded dns-ovh.ini file name (replace by )
1 parent 1175fcc commit 230c5ea

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

manifests/certonly.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@
124124
$plugin_args = [
125125
"--cert-name '${title}' -d",
126126
"'${_domains}'",
127-
"--dns-ovh-credentials ${letsencrypt::plugin::dns_ovh::config_dir}/dns-ovh.ini",
127+
"--dns-ovh-credentials ${letsencrypt::plugin::dns_ovh::config_file}",
128128
"--dns-ovh-propagation-seconds ${letsencrypt::plugin::dns_ovh::propagation_seconds}",
129129
]
130130
}

manifests/plugin/dns_ovh.pp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -30,18 +30,18 @@
3030
# Manage the plugin package.
3131
# @param package_name
3232
# The name of the package to install when $manage_package is true.
33-
# @param config_dir
34-
# The path to the configuration directory.
33+
# @param config_file
34+
# The name, with full abolute path, of the configuration file containing OVH credentials.
3535
#
3636
class letsencrypt::plugin::dns_ovh (
3737
Enum['ovh-eu', 'ovh-ca'] $endpoint,
3838
String[1] $application_key,
3939
String[1] $application_secret,
4040
String[1] $consumer_key,
41-
Integer $propagation_seconds = $letsencrypt::dns_ovh_propagation_seconds,
42-
Stdlib::Absolutepath $config_dir = $letsencrypt::config_dir,
43-
Boolean $manage_package = $letsencrypt::dns_ovh_manage_package,
44-
String $package_name = $letsencrypt::dns_ovh_package_name,
41+
Integer $propagation_seconds = $letsencrypt::dns_ovh_propagation_seconds,
42+
Boolean $manage_package = $letsencrypt::dns_ovh_manage_package,
43+
String $package_name = $letsencrypt::dns_ovh_package_name,
44+
Stdlib::Absolutepath $config_file = "${letsencrypt::config_dir}/dns-ovh.ini",
4545
) {
4646

4747
if $manage_package {
@@ -58,7 +58,7 @@
5858
dns_ovh_propagation_seconds => $propagation_seconds,
5959
}
6060

61-
file { "${config_dir}/dns-ovh.ini":
61+
file { $config_file:
6262
ensure => file,
6363
owner => 'root',
6464
group => 'root',

0 commit comments

Comments
 (0)