- package { "userdir-ldap": ensure => latest;
- "zsh": ensure => latest;
- "tcsh": ensure => latest;
- "pdksh": ensure => latest;
- "ksh": ensure => latest;
- "csh": ensure => latest;
- "ntp": ensure => latest;
- "locales-all": ensure => latest;
- "sudo": ensure => latest;
- "libpam-pwdfile": ensure => latest;
- "vim": ensure => latest;
- "gnupg": ensure => latest;
- "bzip2": ensure => latest;
- "less": ensure => latest;
- "ed": ensure => latest;
- "puppet": ensure => latest;
-
- }
+ $debianadmin = [ "debian-archive-debian-samhain-reports@master.debian.org", "debian-admin@ftbfs.de", "weasel@debian.org", "steve@lobefin.net" ]
+ package {
+ "apt-utils": ensure => installed;
+ "bash-completion": ensure => installed;
+ "debian.org": ensure => installed;
+ "dnsutils": ensure => installed;
+ "dsa-munin-plugins": ensure => installed;
+ "klogd": ensure => purged;
+ "less": ensure => installed;
+ "libfilesystem-ruby1.8": ensure => installed;
+ "mtr-tiny": ensure => installed;
+ "nload": ensure => installed;
+ "pciutils": ensure => installed;
+ "rsyslog": ensure => purged;
+ "sysklogd": ensure => purged;
+ }
+ file {
+ "/etc/apt/preferences":
+ source => "puppet:///modules/debian-org/apt.preferences";
+ "/etc/apt/sources.list.d/backports.org.list":
+ content => template("debian-org/etc/apt/sources.list.d/backports.org.list.erb"),
+ notify => Exec["apt-get update"];
+ "/etc/apt/sources.list.d/debian.org.list":
+ content => template("debian-org/etc/apt/sources.list.d/debian.org.list.erb"),
+ notify => Exec["apt-get update"];
+ "/etc/apt/sources.list.d/security.list":
+ content => template("debian-org/etc/apt/sources.list.d/security.list.erb"),
+ notify => Exec["apt-get update"];
+ "/etc/apt/sources.list.d/volatile.list":
+ content => template("debian-org/etc/apt/sources.list.d/volatile.list.erb"),
+ notify => Exec["apt-get update"];
+ "/etc/apt/apt.conf.d/local-recommends":
+ source => "puppet:///modules/debian-org/apt.conf.d/local-recommends";
+ "/etc/apt/apt.conf.d/local-pdiffs":
+ source => "puppet:///modules/debian-org/apt.conf.d/local-pdiffs";
+ "/etc/timezone":
+ source => "puppet:///modules/debian-org/timezone",
+ notify => Exec["dpkg-reconfigure tzdata -pcritical -fnoninteractive"];
+ "/etc/puppet/puppet.conf":
+ # require => Package["puppet"],
+ source => "puppet:///modules/debian-org/puppet.conf"
+ ;
+ "/etc/default/puppet":
+ # require => Package["puppet"],
+ source => "puppet:///modules/debian-org/puppet.default"
+ ;
+
+ "/etc/cron.d/dsa-puppet-stuff":
+ source => "puppet:///modules/debian-org/dsa-puppet-stuff.cron",
+ require => Package["debian.org"]
+ ;
+ "/etc/ldap/ldap.conf":
+ require => Package["debian.org"],
+ source => "puppet:///modules/debian-org/ldap.conf",
+ ;
+ "/etc/pam.d/common-session":
+ require => Package["debian.org"],
+ content => template("debian-org/pam.common-session.erb"),
+ ;
+ "/etc/rc.local":
+ mode => 0755,
+ source => "puppet:///modules/debian-org/rc.local",
+ notify => Exec["rc.local start"],
+ ;
+
+ "/etc/dsa":
+ mode => 0755,
+ ensure => directory,
+ ;
+ "/etc/dsa/cron.ignore.dsa-puppet-stuff":
+ source => "puppet:///modules/debian-org/dsa-puppet-stuff.cron.ignore",
+ require => Package["debian.org"]
+ ;
+ }
+
+ # set mmap_min_addr to 4096 to mitigate
+ # Linux NULL-pointer dereference exploits
+ sysctl {
+ "mmap_min_addr" :
+ key => "vm.mmap_min_addr",
+ value => 4096,
+ }
+
+ set_alternatives {
+ "editor":
+ linkto => "/usr/bin/vim.basic",
+ }
+
+ mailalias {
+ "samhain-reports":
+ recipient => $debianadmin,
+ ensure => present;
+ }