Skip to content

Dependency cycle when ensuring pgpool is absent #13

@swesterveld

Description

@swesterveld

Hi,
I ran into the problem that pgpool can't be removed by puppet, by using:

class { pgpool:
    ensure => absent,
}

According to the output from the Puppet agent, this will lead to a circular dependency:

vagrant@pgpool:~$ sudo puppet agent --test
Info: Retrieving plugin
Info: Loading facts in /var/lib/puppet/lib/facter/nodejs_stable_version.rb
Info: Loading facts in /var/lib/puppet/lib/facter/iptables_version.rb
Info: Loading facts in /var/lib/puppet/lib/facter/nodejs_installed_version.rb
Info: Loading facts in /var/lib/puppet/lib/facter/nodejs_functions.rb
Info: Loading facts in /var/lib/puppet/lib/facter/nodejs_latest_version.rb
Info: Loading facts in /var/lib/puppet/lib/facter/ip6tables_version.rb
Info: Loading facts in /var/lib/puppet/lib/facter/concat_basedir.rb
Info: Loading facts in /var/lib/puppet/lib/facter/iptables_persistent_version.rb
Info: Loading facts in /var/lib/puppet/lib/facter/root_home.rb
Info: Loading facts in /var/lib/puppet/lib/facter/facter_dot_d.rb
Info: Loading facts in /var/lib/puppet/lib/facter/pe_version.rb
Info: Loading facts in /var/lib/puppet/lib/facter/puppet_vardir.rb
Info: Caching catalog for pgpool.example.com
Info: Applying configuration version '1436863675'
Error: Could not apply complete catalog: Found 1 dependency cycle:
(Augeas[rm pgpool.conf failback_command] => Service[pgpool] => Class[Pgpool::Service] => Class[Pgpool::Config] => File[/etc/default/pgpool2] => Service[pgpool])
Try the '--graph' option and opening the resulting '.dot' file in OmniGraffle or GraphViz

The graph look likes this:
cycles

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions