Browse Source

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: I6ea7b30d7a890b73f8a4ce6572751d0ecfb35667
changes/06/564606/1
Colleen Murphy 1 year ago
parent
commit
bb2f9fc027
1 changed files with 3 additions and 3 deletions
  1. 3
    3
      templates/jenkins-subunit-worker.init.erb

+ 3
- 3
templates/jenkins-subunit-worker.init.erb View File

@@ -1,6 +1,6 @@
1 1
 #! /bin/sh
2 2
 ### BEGIN INIT INFO
3
-# Provides:          jenkins-subunit-worker<%= suffix %>
3
+# Provides:          jenkins-subunit-worker<%= @suffix %>
4 4
 # Required-Start:    $remote_fs $syslog
5 5
 # Required-Stop:     $remote_fs $syslog
6 6
 # Default-Start:     2 3 4 5
@@ -14,10 +14,10 @@
14 14
 # PATH should only include /usr/* if it runs after the mountnfs.sh script
15 15
 PATH=/sbin:/usr/sbin:/bin:/usr/bin:/usr/local/bin
16 16
 DESC="Jenkins Subunit Worker"
17
-NAME=jenkins-subunit-worker<%= suffix %>
17
+NAME=jenkins-subunit-worker<%= @suffix %>
18 18
 DAEMON=/usr/local/bin/subunit-gearman-worker.py
19 19
 PIDFILE=/var/run/$NAME/$NAME.pid
20
-DAEMON_ARGS="-c /etc/subunit2sql/jenkins-subunit-worker<%= suffix %>.yaml -d /var/log/subunit2sql/subunit-worker<%= suffix %>-debug.log -p $PIDFILE"
20
+DAEMON_ARGS="-c /etc/subunit2sql/jenkins-subunit-worker<%= @suffix %>.yaml -d /var/log/subunit2sql/subunit-worker<%= @suffix %>-debug.log -p $PIDFILE"
21 21
 SCRIPTNAME=/etc/init.d/$NAME
22 22
 USER=subunit
23 23
 

Loading…
Cancel
Save