puppetdb purging resources and PUP-1963

asked 2014-07-10 06:01:02 -0600

steph gravatar image

Reading this and from some playing with the current Puppetlabs packages for Ubuntu (i.e. 3.6.x) it's my understanding that automatic resource purging is broken. The canonical example I have is for nagios integration e.g.

  Nagios_command        <<||>> { notify => Service['icinga'],require => Package['nagios-nrpe-server'], }
  Nagios_contact        <<||>> { notify => Service['icinga'],require => Package['nagios-nrpe-server'], }
  Nagios_contactgroup   <<||>> { notify => Service['icinga'],require => Package['nagios-nrpe-server'], }
  Nagios_host           <<||>> { notify => Service['icinga'],require => Package['nagios-nrpe-server'], }
  Nagios_hostgroup      <<||>> { notify => Service['icinga'],require => Package['nagios-nrpe-server'], }
  Nagios_service        <<||>> { notify => Service['icinga'],require => Package['nagios-nrpe-server'], }
  Nagios_servicegroup   <<||>> { notify => Service['icinga'],require => Package['nagios-nrpe-server'], }
  Nagios_timeperiod     <<||>> { notify => Service['icinga'],require => Package['nagios-nrpe-server'], }

  resources { [
    'nagios_command',
    'nagios_contact',
    'nagios_contactgroup',
    'nagios_host',
    'nagios_hostgroup',
    'nagios_service',
    'nagios_servicegroup',
    'nagios_timeperiod',
  ]:
    purge => true, notify => Service['icinga'],
  }

... which should work but doesn't. Is anyone running anything newer than 3.3 and has functional exported resource purging?

edit retag flag offensive close merge delete