[Puppet Users] Re: How to make a package dependant on a class for the repository.

2013-07-01 Thread linde . mvdl
A way to work around your problem may be to use stages: class { repos: stage = first } #you may define stages before So all repositories will be available before the first packet will be installed. -- You received this message because you are subscribed to the Google Groups Puppet Users

Re: [Puppet Users] Re: How to make a package dependant on a class for the repository.

2013-06-30 Thread Stack Kororā
Just wanted to say Thanks! again. The example helped out quite a bit and I was able to get it functioning the way I wanted it to (at least so far! :). Thanks! -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and

[Puppet Users] Re: How to make a package dependant on a class for the repository.

2013-06-26 Thread Stack Kororā
Thank you very much Joe. I think this exactly the path that I need but I am having trouble with it. As I said, I have multiple systems that this repo class watches over. Thus, for one of several instances, I have things like: if $osfamily == 'RedHat' { class {'repos::epel': } } The

Re: [Puppet Users] Re: How to make a package dependant on a class for the repository.

2013-06-26 Thread Wolf Noble
Hi Stack, here's an example: https://github.com/wolfspyre/puppet-mysqlx/blob/master/manifests/v55.pp in this class I create a pair of bookend anchors, and then shove a yumrepo, and a file resource between them. Your other classes/resources can then declare a relationship to the end anchor to

Re: [Puppet Users] Re: How to make a package dependant on a class for the repository.

2013-06-26 Thread Stack Kororā
Thanks for the quick reply! And the example! Let me review this and try it out. I will post back if I run into any issues. Thanks again! -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails

[Puppet Users] Re: How to make a package dependant on a class for the repository.

2013-06-20 Thread joe
Does your repos class have a bunch of classes included? If so, those are not caught by the require and you need to use the anchor pattern: http://projects.puppetlabs.com/projects/puppet/wiki/Anchor_Pattern The ordering (no matter how you do it) only orders the *resources* in that class. Not