diff options
-rw-r--r-- | manifests/worker.pp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/manifests/worker.pp b/manifests/worker.pp index 2346b95..3631ba0 100644 --- a/manifests/worker.pp +++ b/manifests/worker.pp @@ -69,6 +69,7 @@ class concourse::worker ( Stdlib::Absolutepath $key_dir = $concourse::key_dir, Stdlib::Absolutepath $worker_private_key_file = "${key_dir}/worker_key", Stdlib::Absolutepath $worker_public_key_file = "${worker_private_key_file}.pub", + Stdlib::Absolutepath $tsa_public_key_file = "${key_dir}/tsa_public_key", String $service = $concourse::worker_service, String $service_unit = "${service}.service", Enum['absent', 'present'] $ensure = 'present', @@ -130,10 +131,15 @@ class concourse::worker ( enable => true, } + file { $tsa_public_key_file: + content => $tsa_public_key, + show_diff => false, + } + $env = { 'CONCOURSE_WORK_DIR' => $work_dir, 'CONCOURSE_TSA_HOST' => $tsa_host, - 'CONCOURSE_TSA_PUBLIC_KEY' => $tsa_public_key, + 'CONCOURSE_TSA_PUBLIC_KEY' => $tsa_public_key_file, 'CONCOURSE_TSA_WORKER_PRIVATE_KEY' => $worker_private_key_file, 'CONCOURSE_TAG' => if $concourse_tag == undef { undef } else { $concourse_tag.join(',') }, 'CONCOURSE_TEAM' => $team, |