Hi Team,
I am recently installed puppet 5.0.1, earlier i used import on site.pp file in puppet 3.8. now its doesn't work. do you know the alternate way to achieve the same funcation.
Site.pp
[root@puppet nodes]# cat ../site.pp
# Main Site.pp file
import "classes/*"
import "nodes/*"
node default {
service { 'ntpd':
ensure => 'running',
enable => 'true',
}
}
When i run puppet agent -t on client side, i got following error
Error: Could not retrieve catalog from remote server: Error 500 on SERVER: Server Error: Evaluation Error: Use of 'import' has been discontinued in favor of a manifest directory. See
http://links.puppet.com/puppet-import-deprecation at /etc/puppetlabs/code/environments/production/manifests/site.pp:2:1 on node ci-linux-1.localdomain
Warning: Not using cache on failed catalog
Error: Could not retrieve catalog; skipping run
Please help me to resolve