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'
|
|
|
|
$group = 'apache'
|
|
|
|
$home_dir = '/home/acme_vault'
|
2018-03-01 20:59:07 +00:00
|
|
|
$contact_email = ''
|
|
|
|
$domains = undef
|
|
|
|
|
|
|
|
# authentication
|
|
|
|
$vault_token = undef
|
|
|
|
$vault_addr = undef
|
|
|
|
$vault_bin = "${home_dir}/vault"
|
|
|
|
|
|
|
|
$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
|
|
|
|
2018-02-22 20:50:27 +00:00
|
|
|
# lexicon
|
2018-03-01 20:59:07 +00:00
|
|
|
$lexicon_provider = undef
|
|
|
|
$lexicon_username = undef
|
|
|
|
$lexicon_token = undef
|
2018-02-22 20:50:27 +00:00
|
|
|
|
2018-02-22 19:46:51 +00:00
|
|
|
# settings for deploy
|
|
|
|
|
|
|
|
$cert_destination_path = '/etc/acme/'
|
|
|
|
|
2018-02-26 18:01:25 +00:00
|
|
|
$restart = false
|
2018-02-26 19:54:07 +00:00
|
|
|
$restart_command = 'echo restart!'
|
2018-02-26 18:01:25 +00:00
|
|
|
|
2018-02-22 19:46:51 +00:00
|
|
|
}
|