Puppet Function: getMySQLAutoIncrementOffset
- Defined in:
-
lib/puppet/parser/functions/getMySQLAutoIncrementOffset.rb
- Function type:
- Ruby 3.x API
Overview
getMySQLAutoIncrementOffset() ⇒ Any
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
# File 'lib/puppet/parser/functions/getMySQLAutoIncrementOffset.rb', line 16
newfunction(:getMySQLAutoIncrementOffset, :type => :rvalue) do |args|
clusterHash = args[0]
hostname = args[1]
Puppet::Parser::Functions.autoloader.loadall
availableMasters = function_getTungstenAvailableMasters([clusterHash])
idx = availableMasters.index(hostname)
if idx == nil
return 1
else
return (idx+1)
end
end
|