Skip to content

Instantly share code, notes, and snippets.

@rodjek
Forked from supercow/servers.pp
Created October 14, 2013 20:02
Show Gist options
  • Save rodjek/6981305 to your computer and use it in GitHub Desktop.
Save rodjek/6981305 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