All pastes #482225 Raw Edit

Stuff

public text v1 · immutable
·published 2007-05-11 05:25 UTC
rendered paste body

root@admin:/var/local# puppetd --test
notice: Ignoring cache
info: Caching configuration at /var/lib/puppet/state/localconfig.yaml
info: mount[localhost]: Mounted /
info: /Exec[/usr/bin/apt-get -y update && /usr/bin/apt-get autoclean #hourly]: Adding aliases "apt-get_update"
info: /Exec[/usr/bin/perl -pi -e 's/^PARTICIPATE="no"/PARTICIPATE="yes"/' '/etc/popularity-contest.conf']: Adding aliases "exec_participate_popularity_contest"
notice: Starting configuration run
err: Could not apply complete configuration: Could not retrieve dependency 'File[]' at /etc/puppet/manifests/classes/munin.pp:152
notice: Finished configuration run in 0.37 seconds

...

$NODESDIR="/var/local/puppet/munin-nodes"

# TODO: On the munin host, apache (or maybe micro-httpd) needs to be installed and configured                                           
# none of that is being done below                                                                                                      
class host {
  package { [munin]:
    ensure => installed
  }

  # Collect all the exported files from the nodes                                                                                       
  File <<||>>

  # monitor this file for updates                                                                                                       
  $munin_includes = "$splice_dir/munin_conf_includes"
  file { $munin_includes: checksum => md5, }

  exec { create_munin_includes:
    command => "/bin/sh -c '/bin/cat $NODESDIR/* > $munin_includes'",
    subscribe => File[$NODESDIR],
  }
...