From 7254a591468e2e436209334289fbde7dd36c966d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timo=20M=E4kinen?= Date: Fri, 13 Apr 2012 14:35:22 +0300 Subject: [PATCH 1/4] Changed OpenBSD emacs to no-x11 version. --- emacs/manifests/init.pp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/emacs/manifests/init.pp b/emacs/manifests/init.pp index 2144b71..c9f45b2 100644 --- a/emacs/manifests/init.pp +++ b/emacs/manifests/init.pp @@ -9,7 +9,7 @@ class emacs { if $puppetversion =~ /^2\./ { Package["emacs"] { - flavor => "gtk", + flavor => "no_x11", } } From 23e17e32aea41e964a09b3aa34763fffe6df6973 Mon Sep 17 00:00:00 2001 From: Ossi Salmi Date: Fri, 13 Apr 2012 15:35:47 +0300 Subject: [PATCH 2/4] Added variable for setting ejabberd chatroom log format --- ejabberd/manifests/init.pp | 11 +++++++++++ ejabberd/templates/ejabberd.cfg.erb | 1 + 2 files changed, 12 insertions(+) diff --git a/ejabberd/manifests/init.pp b/ejabberd/manifests/init.pp index b5d619f..723c09e 100644 --- a/ejabberd/manifests/init.pp +++ b/ejabberd/manifests/init.pp @@ -20,6 +20,9 @@ # $ejabberd_muclog_datadir: # Path where to store chatroom logs. Disabled by default. # +# $ejabberd_muclog_format: +# Chatroom log format. Valid values html or plaintext, defaults to html. +# class ejabberd { include user::system @@ -32,6 +35,14 @@ class ejabberd { $ejabberd_admin = [] } + case $ejabberd_muclog_format { + "": { $ejabberd_muclog_format = "html" } + "html","plaintext": { } + default: { + fail("Invalid value ${ejabberd_muclog_format} for \$ejabberd_muclog_format.") + } + } + package { "ejabberd": ensure => installed, require => [ User["ejabberd"], User["ejabberd"] ], diff --git a/ejabberd/templates/ejabberd.cfg.erb b/ejabberd/templates/ejabberd.cfg.erb index 76c7001..603b135 100644 --- a/ejabberd/templates/ejabberd.cfg.erb +++ b/ejabberd/templates/ejabberd.cfg.erb @@ -583,6 +583,7 @@ user, host = admin.split("@") -%> {access_log, muc}, {outdir, "<%= ejabberd_muclog_datadir %>"}, {dirtype, subdirs}, + {file_format, <%= ejabberd_muclog_format %>}, {cssfile, false}, {top_link, {"/portal/", "Back to Portal"}} ]}, From 97b9ab10a6c81389ea09ea3a24a4d81cc002ff94 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timo=20M=E4kinen?= Date: Tue, 17 Apr 2012 00:35:42 +0300 Subject: [PATCH 3/4] Initial version of python class which installs python. --- python/manifests/init.pp | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/python/manifests/init.pp b/python/manifests/init.pp index 5a90d09..39e1e0b 100644 --- a/python/manifests/init.pp +++ b/python/manifests/init.pp @@ -1,3 +1,27 @@ + +# Install python +# +class python { + + package { "python": + ensure => installed, + notify => $operatingsystem ? { + "openbsd" => Exec["python-links"], + default => undef, + }, + } + + exec { "python-links": + path => "/bin:/usr/bin:/usr/local/bin:/sbin:/usr/sbin:/usr/local/sbin", + command => "pkg_info python | egrep '^[ ]*ln -sf' | sh", + user => "root", + group => "wheel", + refreshonly => true, + } + +} + + # Install python software using setup.py. # # === Parameters From 6bc1dede76dbd64478634b81e88ded9ec7f3c0b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timo=20M=E4kinen?= Date: Tue, 17 Apr 2012 01:18:32 +0300 Subject: [PATCH 4/4] Fixed dhcp::server::ldap depencies. --- dhcp/manifests/init.pp | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/dhcp/manifests/init.pp b/dhcp/manifests/init.pp index a517541..1c31758 100644 --- a/dhcp/manifests/init.pp +++ b/dhcp/manifests/init.pp @@ -96,7 +96,8 @@ class dhcp::server inherits dhcp::server::common { class dhcp::server::ldap inherits dhcp::server::common { - include ldap::client::python + include python + include ldap::client file { "/usr/local/sbin/dhcpdump.py": ensure => present, @@ -126,8 +127,12 @@ class dhcp::server::ldap inherits dhcp::server::common { path => "/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin", command => "dhcpdump.py /etc/dhcpd.conf.in* > /etc/dhcpd.conf", unless => "dhcpdump.py /etc/dhcpd.conf.in* | diff /etc/dhcpd.conf -", - require => [ File["/etc/dhcpd.conf.in"], - File["/usr/local/sbin/dhcpdump.py"], ], + require => [ + File["/etc/dhcpd.conf.in"], + File["/usr/local/sbin/dhcpdump.py"], + Class["python"], + Class["ldap::client"], + ], notify => Service["dhcpd"], }