Skip to content

Commit

Permalink
Fix vagrant using eth1 network
Browse files Browse the repository at this point in the history
  • Loading branch information
storax committed Jul 31, 2015
1 parent e37debe commit 7a3f2a7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions env_vars/crafternode.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
---

# web --------------------------------------------------------------------------
rabbitmq_host: "{{ hostvars[groups['masterservers'][0]]['ansible_eth1']['ipv4']['address'] }}"
db_host: "{{ hostvars[groups['masterservers'][0]]['ansible_eth1']['ipv4']['address'] }}"
masterfacts: " {{ hostvars[groups['masterservers'][0]] }}"
# For Vagrant its eth1 for production its eth0
rabbitmq_host: "masterfacts.get('ansible_eth1', masterfacts['ansible_eth0'])['ipv4']['address'] }}"
db_host: "{{ masterfacts.get('ansible_eth1', masterfacts['ansible_eth0'])['ipv4']['address'] }}"

0 comments on commit 7a3f2a7

Please sign in to comment.