resolve fed-cloud09 to internal ip, but only on compute nodes

because swift does not listnen on internal ip and it will not work on controller itself
This commit is contained in:
Miroslav Suchý 2015-02-19 13:56:34 +00:00
parent 65d9be09f2
commit 905ae5fa76

View file

@ -3,6 +3,7 @@
- authorized_key: user=root key="{{ lookup('file', files + '/fedora-cloud/fed09-ssh-key.pub') }}"
- template: src={{ files }}/fedora-cloud/hosts dest=/etc/hosts owner=root mode=0644
- lineinfile: dest=/etc/hosts line="{{ controller_private_ip }} fed-cloud09.cloud.fedoraproject.org"
- lineinfile: dest=/etc/sysconfig/network-scripts/ifcfg-eth1 regexp="^ONBOOT=" line="ONBOOT=yes"
notify: