projects
/
mirror
/
dsa-puppet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add lindsay and pinel volumes at ubc
[mirror/dsa-puppet.git]
/
modules
/
popcon
/
templates
/
popularity-contest.conf.erb
diff --git
a/modules/popcon/templates/popularity-contest.conf.erb
b/modules/popcon/templates/popularity-contest.conf.erb
index
14b2fb7
..
6120c41
100644
(file)
--- a/
modules/popcon/templates/popularity-contest.conf.erb
+++ b/
modules/popcon/templates/popularity-contest.conf.erb
@@
-7,10
+7,10
@@
PARTICIPATE="yes"
USEHTTP="yes"
<%=
# hostids are 32 hexchars long
USEHTTP="yes"
<%=
# hostids are 32 hexchars long
-id_short = popcon_host_id[0,32]
+id_short =
@
popcon_host_id[0,32]
# slightly biased, but meh
# slightly biased, but meh
-day = (
popcon_host_id[0].ord + 256*
popcon_host_id[1].ord) % 7
+day = (
@popcon_host_id[0].ord + 256*@
popcon_host_id[1].ord) % 7
conf = []
conf << "MY_HOSTID=\"#{id_short}\""
conf = []
conf << "MY_HOSTID=\"#{id_short}\""