We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Had to edit the Vagrantfile in order to get static IP addressing working with a cluster configuration.
Original Vagrantfile code:
def inc_ip(ip, i) newip = "#{ip}" nr = "#{ip}" nr.gsub!(/^(.*\.)+/, "").to_i newip.gsub!(/\.\d+$/, ".#{nr + i}") newip end
Edited Vagrantfile code:
newip.gsub!(/.\d+$/, ".#{nr.to_i + i}")
def inc_ip(ip, i) newip = "#{ip}" nr = "#{ip}" nr.gsub!(/^(.*\.)+/, "").to_i newip.gsub!(/\.\d+$/, ".#{nr.to_i + i}") newip end
Once edit in place, each node gets a static IP address based on the settings in the project.properties file.
The text was updated successfully, but these errors were encountered:
Looks like a very logical patch, thnx for reporting!
Sorry, something went wrong.
b7e9638
grtjn
No branches or pull requests
Had to edit the Vagrantfile in order to get static IP addressing working with a cluster configuration.
Original Vagrantfile code:
Edited Vagrantfile code:
newip.gsub!(/.\d+$/, ".#{nr.to_i + i}")
Once edit in place, each node gets a static IP address based on the settings in the project.properties file.
The text was updated successfully, but these errors were encountered: