Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dependency cycle using consul::services #90

Closed
sjoeboo opened this issue Mar 5, 2015 · 3 comments
Closed

Dependency cycle using consul::services #90

sjoeboo opened this issue Mar 5, 2015 · 3 comments

Comments

@sjoeboo
Copy link
Contributor

sjoeboo commented Mar 5, 2015

Just took a stab at adding a service (1) using the consul::services hash, via hiera. I started getting a dependency cycle right away.

Hiera:

consul::services:
  puppet_httpd:
    tags:
      - httpd
      - puppet
    port: 8140
    check_script: '/my/check/script'

output:

Info: Applying configuration version '1425588453'
Error: Could not apply complete catalog: Found 1 dependency cycle:
(File[/etc/consul/service_puppet_httpd.json] => Class[Consul::Run_service] => Service[consul] => Class[Consul::Run_service] => Class[Consul] => Consul::Service[puppet_httpd] => File[/etc/consul/service_puppet_httpd.json])
Cycle graph written to /var/lib/puppet/state/graphs/cycles.dot.
@sjoeboo
Copy link
Contributor Author

sjoeboo commented Mar 5, 2015

Interestingly, I just assigned the same service directly (not via hiera, not in the consul::services hash), and it was fine:

consul::service {'puppet_httpd':
    tags          => ['httpd','puppet'],
    port          => 8140,
    check_script  => "/my/check/script"
  }

@solarkennedy
Copy link
Contributor

Can you verify you are using the latest master? I'm pretty sure this is fixed.

@sjoeboo
Copy link
Contributor Author

sjoeboo commented Mar 6, 2015

That did it, was pulling via r10k from the forge, hitting master directly let the hash work perfectly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants