aboutsummaryrefslogtreecommitdiff
path: root/lib/facter
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2023-06-15 19:03:23 +0200
committerHugo Hörnquist <hugo@lysator.liu.se>2023-06-15 19:03:23 +0200
commit73b98210f69455b33116f8c2ca3aab6daf473bab (patch)
tree1c059346ab41ac895ddbf1e7b4cc10918b6cdb18 /lib/facter
parentInitial commit. (diff)
downloadconcourse-73b98210f69455b33116f8c2ca3aab6daf473bab.tar.gz
concourse-73b98210f69455b33116f8c2ca3aab6daf473bab.tar.xz
Initial add.
Diffstat (limited to 'lib/facter')
-rw-r--r--lib/facter/concourse_worker_key.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/facter/concourse_worker_key.rb b/lib/facter/concourse_worker_key.rb
new file mode 100644
index 0000000..f0d9398
--- /dev/null
+++ b/lib/facter/concourse_worker_key.rb
@@ -0,0 +1,8 @@
+Facter.add(:concourse_worker_key) do
+ confine do
+ File.exists? '/usr/lib/concourse/worker_key.pub'
+ end
+ setcode do
+ Facter::Core::Execution.execute('cat /usr/lib/concourse/worker_key.pub')
+ end
+end