Use instance variables in puppet template

Using local ruby variables in puppet ERB templates was deprecated in
puppet 3 and doesn't work any more in puppet 4. Access these values as
ruby instance variables instead.

Change-Id: I12f294d353066ff4af211b9823398a5084a585ee
This commit is contained in:
Colleen Murphy 2018-04-20 21:52:41 +02:00
parent 56e13f635a
commit cdb05c20e4

View File

@ -1,11 +1,11 @@
[projects] [projects]
homepage=http://openstack.org homepage=http://openstack.org
acl-dir=/home/gerrit2/acls acl-dir=/home/gerrit2/acls
local-git-dir=<%= local_git_dir %> local-git-dir=<%= @local_git_dir %>
jeepyb-cache-dir=<%= jeepyb_cache_dir %> jeepyb-cache-dir=<%= @jeepyb_cache_dir %>
gerrit-host=<%= fqdn %> gerrit-host=<%= @fqdn %>
gerrit-user=openstack-dev-project-creator gerrit-user=openstack-dev-project-creator
gerrit-key=<%= ssh_project_key %> gerrit-key=<%= @ssh_project_key %>
github-config=/etc/github/github-projects.secure.config github-config=/etc/github/github-projects.secure.config
has-wiki=False has-wiki=False
has-issues=False has-issues=False