aboutsummaryrefslogtreecommitdiff
path: root/manifests/worker_key.pp
blob: be32a01d066c43fee92758b6aab025cc92410335 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# @summary A worker (public) key for a given cluster.
#
# This resource is supposed to be created and exported by the worker
# resource, and then collected by the web resource.
#
# It should however be fine to create manual instances of this resource.
#
# @param content
#   Complete content of the key, as it appears on disk.
# @param cluster
#   Which cluster this key is part of.
# @api private
define concourse::worker_key (
  String $cluster,
  String $content,
) {
  concat::fragment { $name:
    content => $content,
    target  => "authorized_worker_keys - ${cluster}",
  }
}