This is my media.pp file.
class local_yum_repo {
yumrepo { ‘epel_local’:
name => ‘epel_local’,
enabled => 1,
descr => ‘Local epel repo for app pckgs’,
baseurl => ‘file:///packages/downloaded_rpms’,
gpgcheck => 0,
}
package { 'httpd ':
ensure => ‘installed’,
require => Yumrepo[‘epel_local’],
}
}
node ‘stapp01.stratos.xfusioncorp.(com)’, ‘stapp02.stratos.xfusioncorp.(com)’, ‘stapp03.stratos.xfusioncorp.(com)’ {
include local_yum_repo
}
PS. ignore () in .com above.
Then i loggen into all the app servers and typed puppet agent -tv
but still this is failing and showing error like httpd package is not getting installed from newly created yum repo epel_local
help needed.