puppet:类实例的执行顺序
我知道我可以如何使用Puppet中的资源sorting来订购内置types(用户,组,cron …)或类,但是我不知道如何才能将它用于类的特定实例。 例如,我使用puppetlabs / apt模块和apt :: source定义的types来推送wheezy / updates / … apt源代码。 我的代码看起来像 apt::source { 'debian_wheezy': location => 'http://ftp.debian.org/debian/', release => 'wheezy', repos => 'main contrib non-free', include_src => false, } apt::source { 'debian_wheezy_updates': location => 'http://ftp.debian.org/debian/', release => 'wheezy-updates', repos => 'main contrib non-free', include_src => false, } 我想使用另一个模块来configurationHAProxy,但是我需要定义另一个apt :: source来configurationwheezy backports,因为haproxy在标准wheezy仓库中不可用。 所以我想指出我的haproxy类依赖于我的apt :: […]