14b2fb79bd51adb8c5953c9906c709b89873266e
[mirror/dsa-puppet.git] / modules / popcon / templates / popularity-contest.conf.erb
1 ##
2 ### THIS FILE IS UNDER PUPPET CONTROL. DON'T EDIT IT HERE.
3 ### USE: git clone git+ssh://$USER@puppet.debian.org/srv/puppet.debian.org/git/dsa-puppet.git
4 ###
5
6 PARTICIPATE="yes"
7 USEHTTP="yes"
8 <%=
9 # hostids are 32 hexchars long
10 id_short = popcon_host_id[0,32]
11
12 # slightly biased, but meh
13 day = (popcon_host_id[0].ord + 256*popcon_host_id[1].ord) % 7
14
15 conf = []
16 conf << "MY_HOSTID=\"#{id_short}\""
17 conf << "DAY=\"#{day}\""
18
19 conf.join("\n")
20 -%>
21