Puppet Function: jenkins_port
- Defined in:
- lib/puppet/parser/functions/jenkins_port.rb
- Function type:
- Ruby 3.x API
Overview
Return the configurad Jenkins port value (corresponds to /etc/defaults/jenkins -> JENKINS_PORT
Example:
$port = jenkins_port()
4 5 6 7 8 9 10 11 12 13 14 15 |
# File 'lib/puppet/parser/functions/jenkins_port.rb', line 4 newfunction(:jenkins_port, type: :rvalue, doc: <<-ENDHEREDOC) do |_args| Return the configurad Jenkins port value (corresponds to /etc/defaults/jenkins -> JENKINS_PORT Example: $port = jenkins_port() ENDHEREDOC config_hash = lookupvar('jenkins::config_hash') config_hash&.dig('JENKINS_PORT', 'value') || 8080 end |