Puppet - test if a package already defined?

前端 未结 4 1108
面向向阳花
面向向阳花 2021-02-12 15:09

I\'m writing some puppet modules and have a package defined in two modules hence get the following error:

err: Could not retrieve catalog from remote server: Err         


        
4条回答
  •  囚心锁ツ
    2021-02-12 15:36

    To answer my own question about what the "proper" approach is : This issue is discussed at https://groups.google.com/forum/?fromgroups=#!topic/puppet-users/julAujaVsVk and jcbollenger offers what looks like a "best-practice" solution - resources which are defined multiple times should be moved into their own module and included into the classes on which they depend. I applied this and solved my problem.

    This doesn't actually answer why "if !defined" fails however...

提交回复
热议问题