diff options
author | Hugo Hörnquist <hugo@lysator.liu.se> | 2023-06-15 19:03:23 +0200 |
---|---|---|
committer | Hugo Hörnquist <hugo@lysator.liu.se> | 2023-06-15 19:03:23 +0200 |
commit | 73b98210f69455b33116f8c2ca3aab6daf473bab (patch) | |
tree | 1c059346ab41ac895ddbf1e7b4cc10918b6cdb18 /lib/facter | |
parent | Initial commit. (diff) | |
download | concourse-73b98210f69455b33116f8c2ca3aab6daf473bab.tar.gz concourse-73b98210f69455b33116f8c2ca3aab6daf473bab.tar.xz |
Initial add.
Diffstat (limited to '')
-rw-r--r-- | lib/facter/concourse_worker_key.rb | 8 |
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 |