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
One cleaner way (among multiple ways) is to create a virtual package resource and then realize it. You can realize the same virtual package multiple times without error.
@package { 'gnome-session-fallback':
ensure => installed,
}
And then where you need it:
realize( Package[ 'gnome-session-fallback' ] )