From 9f218e8e4a835cf282f73a3463e478be9a104559 Mon Sep 17 00:00:00 2001 From: mh Date: Tue, 26 Apr 2011 01:56:50 +0200 Subject: fix mail location on centos --- manifests/init.pp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/manifests/init.pp b/manifests/init.pp index 991a8df..c71b3b7 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -48,8 +48,12 @@ class monkeysphere { } } 'mail': { + $mail_loc = $operatingsystem ? { + 'centos' => '/bin/mail', + default => '/usr/bin/mail', + } exec { "/usr/sbin/monkeysphere-host import-key /etc/ssh/ssh_host_rsa_key $key && \ - /usr/bin/mail -s 'monkeysphere host pgp key for $fqdn' root < /var/lib/monkeysphere/host_keys.pub.pgp": + ${mail_loc} -s 'monkeysphere host pgp key for $fqdn' root < /var/lib/monkeysphere/host_keys.pub.pgp": unless => "/usr/local/sbin/monkeysphere-check-key", user => "root", require => [ Package["monkeysphere"], File["/usr/local/sbin/monkeysphere-check-key"] ], -- cgit v1.2.3