Puppet Setup Local Yum Repos - Error on agent

class local_yum_repo {
yumrepo { ‘local_yum’:
enabled => 1,
descr => ‘Local repo holding application packages’,
baseurl => ‘file:///packages/downloaded_rpms’,
pgpcheck => 0,
}
}

package {‘vim-enhanced’:
ensure => ‘installed’,
require => Yumrepo[‘local_yum’]
}
node ‘stapp01.stratos.xfusioncorp.com’,‘stapp02.stratos.xfusioncorp.com’,‘stapp03.stratos.xfusioncorp.com’{

class declaration

include local_yum_repo
}

Getting below error

[tony@stapp01 ~]$ sudo puppet agent -tv
Info: Using configured environment ‘production’
Info: Retrieving pluginfacts
Info: Retrieving plugin
Info: Retrieving locales
Error: Could not retrieve catalog from remote server: Error 500 on SERVER: Server Error: no parameter named ‘pgpcheck’ (file: /etc/puppetlabs/code/environments/production/manifests/cluster.pp, line: 2) on Yumrepo[local_yum] (file: /etc/puppetlabs/code/environments/production/manifests/cluster.pp, line: 2) on node stapp01.stratos.xfusioncorp.com
Warning: Not using cache on failed catalog
Error: Could not retrieve catalog; skipping run

any help on above task

hi @smohdiqbal, please try with gpgcheck instead of pgpcheck.