Puppet 5.0.1 : Alernate for import funcation

392 views
Skip to first unread message

Jegadeesh Kumar

unread,
Jul 27, 2017, 12:56:45 PM7/27/17
to Puppet Users
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

Henrik Lindberg

unread,
Jul 28, 2017, 3:36:08 AM7/28/17
to puppet...@googlegroups.com
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 puppet-users...@googlegroups.com
> <mailto:puppet-users...@googlegroups.com>.
> 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/

Reply all
Reply to author
Forward
0 new messages