Puppet - test if a package already defined?

前端 未结 4 1111
面向向阳花
面向向阳花 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:32

    The cleanest way to do this is to use the ensure_resource function from puppetlabs-stdlib:

    ensure_resource('package', 'gnome-session-fallback', {'ensure' => 'present'})

提交回复
热议问题