On 11/21/11 11:13 AM, Luke Bigum wrote:
Yes, big difference.
The 'import' function will literally add the contents of a manifest file
into where your import statement is, it's like a 'include "woof.h"' in
C/C++ or "source /etc/sysconfig/woof" in Bash. It should really never be
used anywhere outside of site.pp to add classes and functions but rather
with Puppet's class autoloading functionality.
[CUT]
I think it's related. I'm using 2.7.3 with "puppet apply" only and I've
noticed that if you declare a variable in the importing manifest (say,
init.pp), it will not be callable from the imported manifest. So:
init.pp:
$myvariable = "blabla"
myresource { $myvariable : ensure => present }
import "secondmanifest.pp"
#########################
secondmanifest.pp:
mysersource { "/etc/$myvariable": ensure => present }
doesn't work.
--
Alexander Fortin
http://about.me/alexanderfortin/
--
You received this message because you are subscribed to the Google Groups "Puppet
Users" group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/puppet-users?hl=en.