purpleidea / oh-my-vagrant

An easy to manipulate development environment for using vagrant with puppet, docker and more!
GNU Affero General Public License v3.0
307 stars 64 forks source link

add port forwarding to omv.yaml #103

Open goern opened 9 years ago

goern commented 9 years ago

As a section to omv.yaml so that portforwarding could be configured by Oh-My-Vagrant. This will complement vfwd. Something like

forward:
  8443:master:8433
  80:master:8080

would be nice.

purpleidea commented 9 years ago

@goern agreed. Patches welcome :)

purpleidea commented 9 years ago

Bonus points if the values support simple math expressions, so you can do things like:

forward:
    8443+$i:omv$i:80+$i

so that you don't have to add N entries, for count: N In fact, this could be done with a simplistic string parser (string.endswith+$i) sort of thing...