debops / examples

Repository with example DebOps projects
MIT License
61 stars 19 forks source link

vagrant-multi-machine #7

Closed MatthewMi11er closed 9 years ago

MatthewMi11er commented 9 years ago

To simplify the Ansible/Vagrant issue I created a basic provisioner which outputs the vagrant file to wherever you like. You can then run Ansible or Debops outside of Vagrant as normal. Using a custom provisioner means you don't need to create a dummy playbook, vagrant won't try to run Ansible at all and you can specify where you want the inventory to be created, so you don't have to use symlinks. It also means you don't have to deal with port numbers and ssh keys like you would with a hand-crafted inventory file.

I haven't yet fixed the issue of it running for each machine defined in the Vagrantfile , but doing so doesn't hurt anything and is easy to work around.

drybjed commented 9 years ago

@MatthewMi11er Good to know! I'm really using Vagrant myself, preferring straight libvirt + KVM, but I'm sure some of my users will be interested.

htgoebel commented 9 years ago

This seams to be really great! I'm going to update the example soon.

htgoebel commented 9 years ago

Solved by #8 resp. e84c95075e0cf79fae5ca36ff2bba5321ac9c7d9