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

zabbix::repo should be in setup stage #661

Closed
xhejtman opened this issue Mar 1, 2020 · 1 comment
Closed

zabbix::repo should be in setup stage #661

xhejtman opened this issue Mar 1, 2020 · 1 comment

Comments

@xhejtman
Copy link

xhejtman commented Mar 1, 2020

Class zabbix::repo should be marked to be in setup stage (String $stage = 'setup') otherwise one can get dependency cycle:
(Apt_key[zabbix-A1848F5] => Apt::Source[zabbix] => Apt::Setting[list-zabbix] => File[/etc/apt/sources.list.d/zabbix.list] => Class[Apt::Update] => Exec[apt_update] => Class[Apt::Update] => Stage[setup] => Stage[main] => Class[Zabbix::Repo] => Apt::Source[zabbix])\nTry the '--graph' option and opening the resulting '.dot' file in OmniGraffle or GraphViz
Error: Failed to apply catalog: One or more resource dependency cycles detected in graph

apt module version 7.0.1

@baurmatt
Copy link
Contributor

baurmatt commented Mar 2, 2020

Hey @xhejtman,

thank you for opening this issue. The apt module documentation clearly states:

This module is not designed to be split across run stages.

@baurmatt baurmatt closed this as completed Mar 2, 2020
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