diff options
author | Hugo Hörnquist <hugo@lysator.liu.se> | 2023-06-21 00:07:26 +0200 |
---|---|---|
committer | Hugo Hörnquist <hugo@lysator.liu.se> | 2023-06-21 00:07:26 +0200 |
commit | fa956feefe0ccfd6af053af5b21088a984464f65 (patch) | |
tree | c26fea6279c5745c6f5c62777b2a0917982539b9 | |
parent | fixes (diff) | |
download | concourse-fa956feefe0ccfd6af053af5b21088a984464f65.tar.gz concourse-fa956feefe0ccfd6af053af5b21088a984464f65.tar.xz |
-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, |