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
The cleanest way to do this is to use the ensure_resource function from puppetlabs-stdlib:
ensure_resource
ensure_resource('package', 'gnome-session-fallback', {'ensure' => 'present'})