openstack-ansible-openstack.../templates
Markos Chandras 32e44dc7bc templates: hostfile-setup: Improve regexp for host entries
A hosts line may contain tabs instead of spaces and the '\ .*' regexp
doesn't match on that case. As such, we can improve the regexp to simply
look for any character after matching the address word. This fixes the
following problem when an entry with a tab exists in the file

~$ cat -Et /etc/hosts|head -n1
127.0.0.1^Ilocalhost$

The entry is not updated by the script leading to the following problem

fatal: [localhost]: FAILED! => {
    "assertion": "'127.0.1.1 localhost.openstack.local localhost' in hosts_content",
    "changed": false,
    "evaluated_to": false
}

Change-Id: I23d22cbf4317a3c9228bcdb6b3e9e6c2238fcfb7
2018-01-23 11:28:18 +00:00
..
environment.j2 Improve Python 3 compatibility 2017-06-23 14:11:29 -07:00
modprobe.conf.j2 Add the ability to run the role on all hosts 2017-11-24 14:50:40 +00:00
openstack-host-hostfile-setup.sh.j2 templates: hostfile-setup: Improve regexp for host entries 2018-01-23 11:28:18 +00:00
openstack-release.j2 Make the release file options more configurable 2016-12-07 12:32:54 +00:00
sudoers.j2 Remove requiretty for sudo on centos hosts. 2016-09-15 20:17:58 +00:00
sysstat.cron.debian.j2 Only configure systat on debian based system. 2016-09-02 11:15:15 -04:00
sysstat.cron.redhat.j2 Only configure systat on debian based system. 2016-09-02 11:15:15 -04:00
sysstat.cron.suse.j2 Add SUSE support 2017-04-05 12:08:29 +01:00
sysstat.default.j2 Store openstack_host_sysstat_enabled as lower case value for sysstat.default.j2 2016-01-05 09:08:06 -06:00