Skip to content

Instantly share code, notes, and snippets.

@supercow
Created October 14, 2013 17:08
Show Gist options
  • Save supercow/6978816 to your computer and use it in GitHub Desktop.
Save supercow/6978816 to your computer and use it in GitHub Desktop.
$hosts = ['hosta','hostb','hostc']
range(0,count($hosts)-1).each |$num| {
$port = 8080 + $num
somemodule::someservice { $hosts[$num]:
listening_port => $port,
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment