apt::source { "openvz":
location => "$openvz_repo",
release => "wheezy",
repos => "main",
http_key => "$openvz_repo_key",
http_key_server => "$openvz_repo"
}
package {
'libvirt-bin': ensure => present;
'vzctl': ensure => present;
}
}
where apt:source is an external class in a module. In most cases the package resource will run before the apt::source, causing it to fail as the apt repo is not there yet.
How can I make the package resource dependent on the apt::source ? I am assuming using the "require" attribute, but in this case I am not quite sure what the best practice might be. All suggestions are highly appreciated.