Skip to content

Commit

Permalink
Create certificate domain dir when issueing certificate
Browse files Browse the repository at this point in the history
  • Loading branch information
Maarten De Quick committed Dec 13, 2018
1 parent 1fa5cad commit a8b081b
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions manifests/request.pp
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,13 @@
mode => '0640',
}

# Create directory to place the crt_file for each domain
$crt_dir_domain = "${crt_dir}/${domain}"
file { $crt_dir_domain :
ensure => directory,
mode => '0755',
}

# Places where acme.sh stores the resulting certificate.
$le_crt_file = "${acme_dir}/${domain}/${domain}.cer"
$le_chain_file = "${acme_dir}/${domain}/ca.cer"
Expand Down Expand Up @@ -263,6 +270,7 @@
User[$user],
Group[$group],
File[$csr_file],
File[$crt_dir_domain],
File[$account_conf_file],
Vcsrepo[$acme_install_dir],
],
Expand All @@ -289,6 +297,7 @@
User[$user],
Group[$group],
File[$csr_file],
File[$crt_dir_domain],
File[$account_conf_file],
Vcsrepo[$acme_install_dir],
],
Expand Down

0 comments on commit a8b081b

Please sign in to comment.