Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Simpler to wrap it in a profile class. Also fits in nice with Role/Profile which is a common organizational pattern in Puppet code.

class profile::collectd {

  # I'd skip this entirely and just use the apt module or write my own apt module
  exec { 'add collectd ppa': }

  class { '::collectd':
    purge        => true,
    recurse      => true,
    purge_config => true,
    require => Exec['add collectd ppa'],