Created
August 9, 2016 12:08
-
-
Save pysysops/a9d954de031b97fd4e55da34b54c8892 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pseudo-random loadbalancing: | |
scope['cdl_logstash::gelf_servers'][ @ipaddress.gsub(/[\D]+/i,'').to_i % scope['cdl_logstash::gelf_servers'].length.to_i ] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment