if $::kernel == 'Linux' {
include linux
include acpi
- } elsif $::kernel == 'GNU/kFreeBSD' {
- include kfreebsd
}
if $::mta == 'exim4' {
class acpi {
- if ! ($::debarchitecture in ['kfreebsd-amd64', 'kfreebsd-i386']) {
- if (versioncmp($::lsbmajdistrelease, '8') >= 0) {
- package { 'acpid':
- ensure => purged
- }
+ if (versioncmp($::lsbmajdistrelease, '8') >= 0) {
+ package { 'acpid':
+ ensure => purged
+ }
- package { 'acpi-support-base':
- ensure => purged
- }
- } elsif ($::kvmdomain) {
- package { 'acpid':
- ensure => installed
- }
+ package { 'acpi-support-base':
+ ensure => purged
+ }
+ } elsif ($::kvmdomain) {
+ package { 'acpid':
+ ensure => installed
+ }
- service { 'acpid':
- ensure => running,
- require => Package['acpid'],
- }
+ service { 'acpid':
+ ensure => running,
+ require => Package['acpid'],
+ }
- package { 'acpi-support-base':
- ensure => installed
- }
+ package { 'acpi-support-base':
+ ensure => installed
}
}
}
ENABLED="yes"
# Additional start arguments can be provided here
-# ARGS=""
-<% if scope.lookupvar('site::nodeinfo')['ldap'].has_key?('architecture') and scope.lookupvar('site::nodeinfo')['ldap']['architecture'][0].start_with?('kfreebsd') -%>
-ARGS=""
-<% else -%>
ARGS="-u bacula -k"
-<% end -%>
# Default config file can be changed here
# CONFIG="/etc/bacula/bacula-fd.conf"
# Stuff common to all debian.org servers
#
class debian_org::apt {
- if versioncmp($::lsbmajdistrelease, '7') <= 0 {
- $mungedcodename = $::lsbdistcodename
- } elsif ($::debarchitecture in ['kfreebsd-amd64', 'kfreebsd-i386']) {
- $mungedcodename = "${::lsbdistcodename}-kfreebsd"
- } else {
- $mungedcodename = $::lsbdistcodename
- }
-
if versioncmp($::lsbmajdistrelease, '8') <= 0 {
$fallbackmirror = 'http://cdn-fastly.deb.debian.org/debian/'
} else {
site::aptrepo { 'debian':
url => $mirror,
- suite => [ $mungedcodename, "${::lsbdistcodename}-backports", "${::lsbdistcodename}-updates" ],
+ suite => [ $::lsbdistcodename, "${::lsbdistcodename}-backports", "${::lsbdistcodename}-updates" ],
components => ['main','contrib','non-free']
}
} else {
site::aptrepo { 'security':
url => [ 'http://security-cdn.debian.org/', 'http://security.anycast-test.mirrors.debian.org/debian-security/', 'http://security.debian.org/' ],
- suite => "${mungedcodename}/updates",
+ suite => "${::lsbdistcodename}/updates",
components => ['main','contrib','non-free']
}
}
key => 'puppet:///modules/debian_org/db.debian.org.gpg',
}
- if ($::hostname in [] or $::debarchitecture in ['kfreebsd-amd64', 'kfreebsd-i386']) {
+ if ($::hostname in []) {
site::aptrepo { 'proposed-updates':
url => $mirror,
- suite => "${mungedcodename}-proposed-updates",
+ suite => "${::lsbdistcodename}-proposed-updates",
components => ['main','contrib','non-free']
}
} else {
mkswap /dev/dasdc1 && swapon -p 30 /dev/dasdc1
fi
<%- end -%>
-<% if scope.lookupvar('site::nodeinfo')['ldap'].has_key?('architecture') and scope.lookupvar('site::nodeinfo')['ldap']['architecture'][0].start_with?('kfreebsd') -%>
- ( sleep 120;
- service syslog-ng restart;
- sleep 5;
- init q
- ) & disown
-<%- end -%>
if [ -e /proc/sys/kernel/modules_disabled ]; then
( sleep 60;
+++ /dev/null
-class kfreebsd {
-
- file { '/etc/cron.d/dsa-killruby':
- source => 'puppet:///modules/kfreebsd/dsa-killruby',
- }
-
- file { '/etc/sysctl.d/':
- ensure => directory,
- mode => '0755'
- }
-
- file { '/etc/init.d/procps':
- source => 'puppet:///modules/kfreebsd/procps.init',
- mode => '0555',
- before => Service['procps'],
- notify => Exec['update-rc.d procps defaults']
- }
-
- site::sysctl { 'maxfiles':
- key => 'kern.maxfiles',
- value => 65536,
- target => 'GNU/kFreeBSD',
- }
- site::sysctl { 'accept_ra':
- key => 'net.inet6.ip6.accept_rtadv',
- value => 0,
- target => 'GNU/kFreeBSD',
- }
-
- exec { 'update-rc.d procps defaults':
- path => '/usr/bin:/usr/sbin:/bin:/sbin',
- refreshonly => true,
- }
-}
# filter out all the short-lived filesystems for df*:
[df*]
env.exclude_re ^/dev$ ^/run/.*$ ^/srv/piuparts-workspace/tmp.*$ ^/sys/.*$ ^/var/lib/schroot/mount/.*$
-
-<% if scope.lookupvar('site::nodeinfo')['ldap'].has_key?('architecture') and scope.lookupvar('site::nodeinfo')['ldap']['architecture'][0].start_with?('kfreebsd') -%>
-# Workaround for https://bugs.debian.org/767102
-[df*]
-env.exclude devfs fdescfs linprocfs sysfs noprocfs linsysfs nfs nullfs
-<% end %>
#
# <file system> <mount point> <type> <options> <dump> <pass>
-<% if scope.lookupvar('site::nodeinfo')['ldap'].has_key?('architecture') and scope.lookupvar('site::nodeinfo')['ldap']['architecture'][0].start_with?('kfreebsd') -%>
-# kFreeBSD version
-proc /proc linprocfs defaults 0 0
-dev /dev devfs rw 0 0
-dev /dev/fd fdescfs rw 0 0
-
-/srv/build-trees /build nullfs rw 0 0
-<% else -%>
# Linux version
/proc /proc none rw,bind 0 0
/sys /sys none rw,bind 0 0
<%- if has_variable?("has_srv_build_trees") && @has_srv_build_trees -%>
/srv/build-trees /build none rw,bind 0 0
-
-<% end %>
<% end %>
#
# <file system> <mount point> <type> <options> <dump> <pass>
-<% if scope.lookupvar('site::nodeinfo')['ldap'].has_key?('architecture') and scope.lookupvar('site::nodeinfo')['ldap']['architecture'][0].start_with?('kfreebsd') -%>
-# kFreeBSD version
-proc /proc linprocfs defaults 0 0
-dev /dev devfs rw 0 0
-dev /dev/fd fdescfs rw 0 0
-/home /home nullfs rw 0 0
-/tmp /tmp nullfs rw 0 0
-
-<% else -%>
# Linux version
/proc /proc none rw,bind 0 0
/sys /sys none rw,bind 0 0
/home /home none rw,bind 0 0
/tmp /tmp none rw,bind 0 0
tmpfs-shm /dev/shm tmpfs defaults,size=64m 0 0
-
-<% end %>