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
You are missing Package[] inside defined(). The correct way to do it:
if ! defined(Package['gnome-session-fallback']) { package { 'gnome-session-fallback': ensure => installed, } }