{"action":"opened","issue":{"url":"https://api.github.com/repos/mwhahaha/puppet-pgpool/issues/13","labels_url":"https://api.github.com/repos/mwhahaha/puppet-pgpool/issues/13/labels{/name}","comments_url":"https://api.github.com/repos/mwhahaha/puppet-pgpool/issues/13/comments","events_url":"https://api.github.com/repos/mwhahaha/puppet-pgpool/issues/13/events","html_url":"https://github.com/mwhahaha/puppet-pgpool/issues/13","id":94902324,"number":13,"title":"Dependency cycle when ensuring pgpool is absent","user":{"login":"swesterveld","id":638899,"avatar_url":"https://avatars.githubusercontent.com/u/638899?v=3","gravatar_id":"","url":"https://api.github.com/users/swesterveld","html_url":"https://github.com/swesterveld","followers_url":"https://api.github.com/users/swesterveld/followers","following_url":"https://api.github.com/users/swesterveld/following{/other_user}","gists_url":"https://api.github.com/users/swesterveld/gists{/gist_id}","starred_url":"https://api.github.com/users/swesterveld/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/swesterveld/subscriptions","organizations_url":"https://api.github.com/users/swesterveld/orgs","repos_url":"https://api.github.com/users/swesterveld/repos","events_url":"https://api.github.com/users/swesterveld/events{/privacy}","received_events_url":"https://api.github.com/users/swesterveld/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-07-14T09:17:31Z","updated_at":"2015-07-14T09:17:31Z","closed_at":null,"body":"Hi,\r\nI ran into the problem that pgpool can't be removed by puppet, by using:\r\n```\r\nclass { pgpool:\r\n    ensure => absent,\r\n}\r\n```\r\n\r\nAccording to the output from the Puppet agent, this will lead to a circular dependency:\r\n```\r\nvagrant@pgpool:~$ sudo puppet agent --test\r\nInfo: Retrieving plugin\r\nInfo: Loading facts in /var/lib/puppet/lib/facter/nodejs_stable_version.rb\r\nInfo: Loading facts in /var/lib/puppet/lib/facter/iptables_version.rb\r\nInfo: Loading facts in /var/lib/puppet/lib/facter/nodejs_installed_version.rb\r\nInfo: Loading facts in /var/lib/puppet/lib/facter/nodejs_functions.rb\r\nInfo: Loading facts in /var/lib/puppet/lib/facter/nodejs_latest_version.rb\r\nInfo: Loading facts in /var/lib/puppet/lib/facter/ip6tables_version.rb\r\nInfo: Loading facts in /var/lib/puppet/lib/facter/concat_basedir.rb\r\nInfo: Loading facts in /var/lib/puppet/lib/facter/iptables_persistent_version.rb\r\nInfo: Loading facts in /var/lib/puppet/lib/facter/root_home.rb\r\nInfo: Loading facts in /var/lib/puppet/lib/facter/facter_dot_d.rb\r\nInfo: Loading facts in /var/lib/puppet/lib/facter/pe_version.rb\r\nInfo: Loading facts in /var/lib/puppet/lib/facter/puppet_vardir.rb\r\nInfo: Caching catalog for pgpool.example.com\r\nInfo: Applying configuration version '1436863675'\r\nError: Could not apply complete catalog: Found 1 dependency cycle:\r\n(Augeas[rm pgpool.conf failback_command] => Service[pgpool] => Class[Pgpool::Service] => Class[Pgpool::Config] => File[/etc/default/pgpool2] => Service[pgpool])\r\nTry the '--graph' option and opening the resulting '.dot' file in OmniGraffle or GraphViz\r\n```\r\nThe graph look likes this:\r\n![cycles](https://cloud.githubusercontent.com/assets/638899/8670059/c8f353a2-2a19-11e5-81ec-5aa749313a2b.png)\r\n\r\n"}}