On 27/07/17 18:56, Jegadeesh Kumar wrote:
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
Did you try reading the documentation?
https://docs.puppet.com/puppet/3.6/lang_import.html#what-to-use-instead
Best,
- henrik
--
You received this message because you are subscribed to the Google
Groups "Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to [email protected]
<mailto:[email protected]>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/puppet-users/6e6d9d11-75f0-416d-81ed-7abd4c584a50%40googlegroups.com
<https://groups.google.com/d/msgid/puppet-users/6e6d9d11-75f0-416d-81ed-7abd4c584a50%40googlegroups.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout.
--
Visit my Blog "Puppet on the Edge"
http://puppet-on-the-edge.blogspot.se/
--
You received this message because you are subscribed to the Google Groups "Puppet
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/puppet-users/olepfv%244ke%241%40blaine.gmane.org.
For more options, visit https://groups.google.com/d/optout.