diff options
author | Benjamin Copeland <ben.copeland@linaro.org> | 2018-11-18 08:00:45 +0000 |
---|---|---|
committer | Benjamin Copeland <ben.copeland@linaro.org> | 2018-11-19 10:09:29 +0000 |
commit | 39f4c803d2e7ddf1bb2009389bdabbfaf8a549f1 (patch) | |
tree | 0be21fe95a27f1539847cb9a096f3049838ac760 | |
parent | 2fcff3ae2325418e1831f7d8c507036c899a246a (diff) |
Jenkins: Fix NFS server exports
In Ansible inventory, Jenkins slaves were switched from IP
addresses to hostnames, with IP provided in ansible_host= variable.
These hostnames don't resolve on Jenkins master. Switch
/etc/exports from hostname to the IP in inventory. This allows
Jenkins slaves to access master over NFS again.
Fixes: d6a93fab4e5f3b3254e3dd702ecd75573ffb5ce7
Change-Id: I7f266e630887def16d08eeda5d0a95b398f927b7
Reviewed-on: https://review.linaro.org/29111
Reviewed-by: Benjamin Copeland <ben.copeland@linaro.org>
-rw-r--r-- | roles/nfs-server/templates/exports.j2 | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/roles/nfs-server/templates/exports.j2 b/roles/nfs-server/templates/exports.j2 index 26b89c61..c53848a8 100644 --- a/roles/nfs-server/templates/exports.j2 +++ b/roles/nfs-server/templates/exports.j2 @@ -10,5 +10,5 @@ # /srv/nfs4/homes gss/krb5i(rw,sync,no_subtree_check) # {% for export in nfs_exports %} -{{export.path}} {% for host in groups['jenkins_slaves'] %}{{host}}{{export.options}} {%endfor%} +{{export.path}} {% for host in groups['jenkins_slaves']|map('extract', hostvars, 'ansible_host')|list %}{{host}}{{export.options}} {%endfor%} {% endfor %} |