install popcon
[mirror/dsa-puppet.git] / modules / popcon / manifests / init.pp
diff --git a/modules/popcon/manifests/init.pp b/modules/popcon/manifests/init.pp
new file mode 100644 (file)
index 0000000..ab289ef
--- /dev/null
@@ -0,0 +1,11 @@
+class popcon {
+       $popcon_host_id = hkdf('/etc/puppet/secret', "popcon_host_id-${::fqdn}")
+
+       package { 'popularity-contest':
+               ensure => installed,
+       }
+
+       file { '/etc/popularity-contest.conf':
+               content => template('popcon/popularity-contest.conf.erb')
+       }
+}