Puppet 3.6.2: import is deprecated

734 views
Skip to first unread message

Sergey Arlashin

unread,
Jun 30, 2014, 1:52:45 PM6/30/14
to puppet...@googlegroups.com
Hi!

I used 'import' in my previous config.

I had the following structure:

site.pp :
import 'nodes.pp'

nodes.pp:
import 'node1.pp'
import 'node2.pp'
import 'node3.pp'
etc.

Now I'm moving to 3.6.2 and after getting the deprecation warning decided to remove all imports from my manifests.

Now puppet agent seems to ignore all my config. None of my modules is applied. --debug shows that it doesn't try to apply anything at all.

Could anyone tell me if it is normal? :) Or may be I'm doing something wrong? Or may be this is a bug?

# puppet config print manifest
/etc/puppet/environments/production/manifests


Thanks in advance!

--
Best regards,
Sergey Arlashin





Sergey Arlashin

unread,
Jun 30, 2014, 2:07:56 PM6/30/14
to puppet...@googlegroups.com
I forgot to mention that I'm using directory environments.
Also when I remove site.pp I get
Error: Could not run: Could not find file /etc/puppet/environments/production/manifests/site.pp

--
Best regards,
Sergey Arlashin



Sergey Arlashin

unread,
Jun 30, 2014, 3:15:58 PM6/30/14
to puppet...@googlegroups.com
I half an hour it magically started to work. Seems to be some caching issue?
Did I need to restart puppet master after removing 'imports' ? Or do something like this ?

--
Best regards,
Sergey Arlashin



Rich Burroughs

unread,
Jun 30, 2014, 7:29:52 PM6/30/14
to puppet...@googlegroups.com
I think what you were seeing is related to the last note on this page:

http://docs.puppetlabs.com/puppet/latest/reference/lang_import.html

Restarting the master should have corrected it, did you end up trying that?


Rich





--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/11585190-5027-4311-8480-51B27754F4B8%40gmail.com.
For more options, visit https://groups.google.com/d/optout.

Johan De Wit

unread,
Jul 1, 2014, 3:44:54 AM7/1/14
to puppet...@googlegroups.com
As an example, this is my manifests directory :

[root@puppet manifests]# ls -l
total 28
-rw-r--r--. 1 root root 819 Jun 1 22:40 00_koewacht_defaults.pp
-rw-r--r--. 1 root root 950 Jun 1 23:20 fc19.koewacht.net.pp
-rw-r--r--. 1 root root 1152 Jun 15 17:20 fc20.koewacht.net.pp
-rw-r--r--. 1 root root 930 May 20 13:12 laptopfc18.koewacht.net.pp
-rw-r--r--. 1 root root 801 Jun 13 09:29 puppet.koewacht.net.pp
-rw-r--r--. 1 root root 320 May 20 13:12 rspecfc20.koewacht.net.pp

[root@puppet manifests]# pwd
/data/puppet/environments/production/manifests

the 00_koewacht_defaults.pp is my former site.pp, which will be loaded
first. The rest are my former node/<certname>.pp files.

running on 3.6.2 and also dir envs.

Grts

jo



--
Johan De Wit

Open Source Consultant

Red Hat Certified Engineer (805008667232363)
Puppet Certified Professional 2013/2014 (PCP0000006)
_________________________________________________________

Open-Future Phone +32 (0)2/255 70 70
Zavelstraat 72 Fax +32 (0)2/255 70 71
3071 KORTENBERG Mobile +32 (0)474/42 40 73
BELGIUM http://www.open-future.be
_________________________________________________________


Next Events:
Linux Training | https://www.open-future.be/linux-training-8-till-12th-september
Puppet Introduction Course | https://www.open-future.be/puppet-introduction-course-15th-september
Puppet Fundamentals Training | https://www.open-future.be/puppet-fundamentals-training-16-till-18th-september
Zabbix Certified Specialist | https://www.open-future.be/zabbix-certified-specialisttraining-22-till-24th-september
Zabbix Certified Professional | https://www.open-future.be/zabbix-certified-professional-training-25-till-26th-september
Subscribe to our newsletter | http://eepurl.com/BUG8H
Reply all
Reply to author
Forward
0 new messages