puppet-prod/modules/libs/lib/facter/consul_node_token.rb
Ben Vincent 6c2bad9806
All checks were successful
Build / precommit (pull_request) Successful in 3m23s
feat: add vmcluster module
- manage vmstorage package, service and environment file
- manage vmselect package, service and environment file
- manage vminsert package, service and environment file
- manage vmagent package, service and environment file
- manage options for vmstorage, vmselect, vminsert, vmagent role
2025-07-26 18:04:49 +10:00

15 lines
245 B
Ruby

# frozen_string_literal: true
require 'puppet'
Facter.add('consul_node_token') do
setcode do
token_file = '/root/.config/consul_node_token'
begin
File.read(token_file).strip
rescue StandardError
nil
end
end
end