Ask Your Question

What's Wrong With My Dependencies?

asked 2013-03-26 13:59:53 -0500

Ancillas gravatar image

updated 2013-03-28 14:26:29 -0500

I'm trying to setup some basic roles, and I can't seem to get Puppet to respect my dependencies. I've tried several variations, but nothing seems to run in order. I really need DNS to be setup before applying Apt changes, which should then occur before I install any packages. i.e. DNS -> APT -> Apt::Sources -> Modules-That-Install-Packages.

I created a gist with my latest code.

I would appreciate someone with more experience using classes as roles, and the anchor pattern. I understand why the anchor pattern is necessary, but I just can't seem to make Puppet respect ... (more)

edit retag flag offensive close merge delete


What do the facts, hosts dns and apt classes look like?

llowder gravatar imagellowder ( 2013-03-26 14:03:45 -0500 )edit

The only module that I didn't write is apt, which is from I updated my gist with init.pp from facts, hosts, and dns ...(more)

Ancillas gravatar imageAncillas ( 2013-03-26 16:20:11 -0500 )edit

Can you provide more details as to how puppet is not respecting your intention? Relevant puppet run output would be useful.

lavaman gravatar imagelavaman ( 2013-03-26 17:24:08 -0500 )edit

I ran a test/debug run and made another gist with some slightly scrubbed output.

On this particular run, Puppet tried to run the ...(more)

Ancillas gravatar imageAncillas ( 2013-03-26 19:00:29 -0500 )edit

1 answer

Sort by ยป oldest newest most voted

answered 2013-03-27 12:56:48 -0500

lavaman gravatar image

I think you have a scoping issue. The collector for Apt::Source is in a class. It would need to be in top scope outside a class in order to collect all Apt::Sources.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools


Asked: 2013-03-26 13:59:53 -0500

Seen: 162 times

Last updated: Mar 28 '13