X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=modules%2Fpopcon%2Ftemplates%2Fpopularity-contest.conf.erb;h=6120c41838115e38095991060449f1b92b4af019;hb=249b713a08d35bffb1cd52739be6f5808baa5a5f;hp=14b2fb79bd51adb8c5953c9906c709b89873266e;hpb=d55193d32bcface5935ae2a6acc2cdc6eed71a80;p=mirror%2Fdsa-puppet.git diff --git a/modules/popcon/templates/popularity-contest.conf.erb b/modules/popcon/templates/popularity-contest.conf.erb index 14b2fb79b..6120c4183 100644 --- 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 -id_short = popcon_host_id[0,32] +id_short = @popcon_host_id[0,32] # 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}\""