2018-02-28 18:46:41 +00:00
|
|
|
# params for both common, request, and deploy
|
2018-02-22 19:46:51 +00:00
|
|
|
class acme_vault::params {
|
2018-02-22 20:50:27 +00:00
|
|
|
# settings for acme user
|
2018-02-22 19:46:51 +00:00
|
|
|
$user = 'acme'
|
2020-11-16 19:03:04 +00:00
|
|
|
$group = 'acme'
|
2021-07-02 15:05:06 +00:00
|
|
|
$group_members = []
|
2018-02-22 19:46:51 +00:00
|
|
|
$home_dir = '/home/acme_vault'
|
2018-03-01 20:59:07 +00:00
|
|
|
$contact_email = ''
|
|
|
|
$domains = undef
|
2019-08-08 16:01:55 +00:00
|
|
|
# overrides is a list of challenge-alias overrides. It defaults to the domain itself.
|
|
|
|
# see https://github.com/Neilpang/acme.sh/wiki/DNS-alias-mode
|
|
|
|
$overrides = {}
|
2018-03-01 20:59:07 +00:00
|
|
|
|
|
|
|
# authentication
|
|
|
|
$vault_token = undef
|
|
|
|
$vault_addr = undef
|
2021-10-31 17:38:31 +00:00
|
|
|
$vault_bin = "/usr/local/bin/vault"
|
2018-03-01 20:59:07 +00:00
|
|
|
|
|
|
|
$vault_prefix = '/secret/letsencrypt/'
|
2018-02-22 19:46:51 +00:00
|
|
|
|
|
|
|
# whether to use the letsencrypt staging url, set those urls
|
2018-03-01 15:34:38 +00:00
|
|
|
$staging = false
|
2018-02-22 19:46:51 +00:00
|
|
|
$staging_url = 'https://acme-staging-v02.api.letsencrypt.org/directory'
|
|
|
|
$prod_url = 'https://acme-v02.api.letsencrypt.org/directory'
|
|
|
|
|
|
|
|
$acme_revision = 'HEAD'
|
2018-02-26 19:54:07 +00:00
|
|
|
$acme_repo_path = "${home_dir}/acme.sh"
|
|
|
|
$acme_script = "${acme_repo_path}/acme.sh"
|
2018-02-22 19:46:51 +00:00
|
|
|
|
2021-04-20 17:11:05 +00:00
|
|
|
# namecheap
|
|
|
|
$namecheap_username = undef
|
|
|
|
$namecheap_api_key = undef
|
2021-04-20 17:21:22 +00:00
|
|
|
$namecheap_sourceip = '127.0.0.1'
|
2018-02-22 20:50:27 +00:00
|
|
|
|
2018-02-22 19:46:51 +00:00
|
|
|
# settings for deploy
|
2020-08-11 15:14:38 +00:00
|
|
|
$cert_destination_path = '/etc/acme'
|
|
|
|
$deploy_scripts = "${cert_destination_path}/deploy.d"
|
|
|
|
$restart_method = "for f in ${deploy_scripts}/*.sh; do \"\$f\"; done"
|
2018-02-22 19:46:51 +00:00
|
|
|
}
|