mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-18 07:23:13 +00:00
PHRAS-2533 Inject containers hostname on /etc/hosts file
This commit is contained in:
@@ -0,0 +1,4 @@
|
|||||||
|
---
|
||||||
|
- name: Update /etc/hosts
|
||||||
|
lineinfile: dest=/etc/hosts regexp='^127\.0\.0\.1' line='127.0.0.1 localhost {{ vagrant_local.vm.docker-hosts-container|default('') }}' owner=root group=root mode=0644
|
||||||
|
when: vagrant_local.vm.docker-hosts-container is defined
|
@@ -10,3 +10,5 @@
|
|||||||
- name: Update /etc/hosts
|
- name: Update /etc/hosts
|
||||||
lineinfile: dest=/etc/hosts regexp='^127\.0\.0\.1' line='127.0.0.1 localhost {{ vagrant_local.vm.hostname|default('') }}' owner=root group=root mode=0644
|
lineinfile: dest=/etc/hosts regexp='^127\.0\.0\.1' line='127.0.0.1 localhost {{ vagrant_local.vm.hostname|default('') }}' owner=root group=root mode=0644
|
||||||
when: vagrant_local.vm.hostname is defined
|
when: vagrant_local.vm.hostname is defined
|
||||||
|
|
||||||
|
- include: docker-hosts-container.yml
|
@@ -48,6 +48,8 @@ vagrant_local:
|
|||||||
sharedfolder: ./
|
sharedfolder: ./
|
||||||
useVagrantCloud: '1'
|
useVagrantCloud: '1'
|
||||||
syncType: nfs
|
syncType: nfs
|
||||||
|
hostname: ''
|
||||||
|
docker-hosts-container: 'db elasticsearch redis rabbitmq'
|
||||||
nginx:
|
nginx:
|
||||||
install: '1'
|
install: '1'
|
||||||
docroot: /vagrant
|
docroot: /vagrant
|
||||||
|
Reference in New Issue
Block a user