mirror of
https://github.com/krislamo/puppet-acme_vault
synced 2025-01-18 15:30:34 +00:00
puppet-lint
This commit is contained in:
parent
8a5abc08c6
commit
8a09e270ce
@ -30,7 +30,7 @@ END
|
||||
ensure => directory,
|
||||
owner => $user,
|
||||
group => $group,
|
||||
mode => "0750",
|
||||
mode => '0750',
|
||||
}
|
||||
|
||||
# vault module isn't too flexible for install only, just copy in binary
|
||||
@ -41,28 +41,28 @@ END
|
||||
|
||||
file { $vault_bin:
|
||||
ensure => present,
|
||||
owner => "root",
|
||||
group => "root",
|
||||
mode => "0555",
|
||||
source => "puppet:///modules/acme_vault/vault",
|
||||
owner => 'root',
|
||||
group => 'root',
|
||||
mode => '0555',
|
||||
source => 'puppet:///modules/acme_vault/vault',
|
||||
}
|
||||
|
||||
# variables in bashrc
|
||||
concat { "${home_dir}/.bashrc":
|
||||
owner => $user,
|
||||
group => $group,
|
||||
mode => "0600",
|
||||
mode => '0600',
|
||||
}
|
||||
|
||||
concat::fragment{ "vault_bashrc":
|
||||
concat::fragment{ 'vault_bashrc':
|
||||
target => "${home_dir}/.bashrc",
|
||||
content => inline_template($common_bashrc_template),
|
||||
order => "01",
|
||||
order => '01',
|
||||
}
|
||||
|
||||
# common dummy cron job to set MAILTO
|
||||
cron { "dummy_mailto":
|
||||
command => "/bin/true",
|
||||
cron { 'dummy_mailto':
|
||||
command => '/bin/true',
|
||||
user => $user,
|
||||
month => 7,
|
||||
environment => "MAILTO=${contact_email}",
|
||||
|
@ -16,14 +16,14 @@ class acme_vault::deploy(
|
||||
ensure => present,
|
||||
owner => $user,
|
||||
group => $group,
|
||||
mode => "0750",
|
||||
source => "puppet:///modules/acme_vault/check_cert.sh",
|
||||
mode => '0750',
|
||||
source => 'puppet:///modules/acme_vault/check_cert.sh',
|
||||
}
|
||||
|
||||
if $restart {
|
||||
$cron_command = "${home_dir}/check_cert.sh $domain $cert_destination_path && $restart_command"
|
||||
$cron_command = "${home_dir}/check_cert.sh ${domain} ${cert_destination_path} && ${restart_command}"
|
||||
} else {
|
||||
$cron_command = "${home_dir}/check_cert.sh $domain $cert_destination_path"
|
||||
$cron_command = "${home_dir}/check_cert.sh ${domain} ${cert_destination_path}"
|
||||
}
|
||||
|
||||
|
||||
|
@ -12,15 +12,15 @@ class acme_vault::params {
|
||||
$contact_email = ''
|
||||
|
||||
$acme_revision = 'HEAD'
|
||||
$acme_repo_path = "$home_dir/acme.sh"
|
||||
$acme_script = "$acme_repo_path/acme.sh"
|
||||
$acme_repo_path = "${home_dir}/acme.sh"
|
||||
$acme_script = "${acme_repo_path}/acme.sh"
|
||||
$vault_prefix = '/secret/letsencrypt/'
|
||||
$domains = ''
|
||||
|
||||
# authentication
|
||||
$vault_token = ''
|
||||
$vault_addr = ''
|
||||
$vault_bin = "$home_dir/vault"
|
||||
$vault_bin = "${home_dir}/vault"
|
||||
|
||||
# lexicon
|
||||
$lexicon_provider = ''
|
||||
@ -32,6 +32,6 @@ class acme_vault::params {
|
||||
$cert_destination_path = '/etc/acme/'
|
||||
|
||||
$restart = false
|
||||
$restart_command = "echo restart!"
|
||||
$restart_command = 'echo restart!'
|
||||
|
||||
}
|
||||
|
@ -37,10 +37,10 @@ END
|
||||
})
|
||||
|
||||
# variables in bashrc
|
||||
concat::fragment { "requestor_bashrc":
|
||||
concat::fragment { 'requestor_bashrc':
|
||||
target => "${home_dir}/.bashrc",
|
||||
content => inline_template($requestor_bashrc_template),
|
||||
order => "02",
|
||||
order => '02',
|
||||
}
|
||||
|
||||
|
||||
@ -48,7 +48,7 @@ END
|
||||
vcsrepo { $acme_repo_path:
|
||||
ensure => present,
|
||||
provider => git,
|
||||
source => "https://github.com/Neilpang/acme.sh.git",
|
||||
source => 'https://github.com/Neilpang/acme.sh.git',
|
||||
revision => $acme_revision,
|
||||
}
|
||||
|
||||
@ -56,12 +56,12 @@ END
|
||||
$domains.each |$domain, $d_list| {
|
||||
file {"/${home_dir}/${domain}.sh":
|
||||
ensure => present,
|
||||
mode => "0700",
|
||||
mode => '0700',
|
||||
owner => $user,
|
||||
group => $group,
|
||||
|
||||
content => epp("acme_vault/domain.epp", {
|
||||
acme_script => "$acme_script",
|
||||
content => epp('acme_vault/domain.epp', {
|
||||
acme_script => $acme_script,
|
||||
domain => $domain,
|
||||
domains => $d_list,
|
||||
staging => $staging,
|
||||
|
Loading…
Reference in New Issue
Block a user