Created
February 8, 2016 18:41
-
-
Save cswingler/0e0dd9ef291916fc6a3d to your computer and use it in GitHub Desktop.
This file contains 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
if type == 'server': | |
myid = str(sorted(params.zookeeper_hosts).index(params.hostname) + 1) | |
File(format("{zk_data_dir}/myid"), | |
mode = 0644, | |
content = myid | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment