puppetmaster 側に以下の 2 つの設定をする.
/etc/puppet/puppet.conf
[puppetmasterd] reports = tagmail,daily,security sendmail = /usr/sbin/sendmail reportfrom = [email protected] smtpserver = mx.example.com
/etc/puppet/tagmail.conf
all: [email protected]
puppet 側は /etc/puppet/puppet.conf に
[puppetd] report = true
を追加.
この状態で,
user { testuser: ensure => present }
というマニフェストを実行させると,以下のようなメールが届く.
Subject: Puppet Report for test2
Fri Aug 29 17:57:39 +0900 2008 //Node[test2]/User[testuser]/ensure (notice): created
- Puppet を使って client にパッケージをインストールする [2008-08-28-3]
- CentOS 5.2 に puppet を rpm でインストールする [2008-08-28-1]
comments powered by Disqus