> On Monday, July 16, 2012 6:50:36 PM UTC-5, Anatoliy Lisovskiy (Wavebourn)
> wrote:
>> Hi!
>> What I am doing wrong?
>> When I define such a way:
>> ===========================
>> import "classes/*.pp"
>> node default{
>> include ntp
>> include add_admin_accounts
>> }
>> node kvm4 inherits default
>> {
>> include vm_create
>> }
>> ===================
>> it can't find the class from the file imported file.
>> But when I write such way:
>> ===========================
>> import "classes/*.pp"
>> node default{
>> include ntp
>> include add_admin_accounts
>> include vm_create
>> }
>> node kvm4 inherits default
>> {
>> }
>> ===================
>> it works fine. What I am doing wrong?
> Using the 'import' function?
> I apologize for the flippancy, but
> 1. you haven't given us much to work with, and
> 2. instead of using 'import', you really should be putting your
> classes into modules and relying on the autoloader.
> If you want us to have any hope of troubleshooting the immediate problem
> then please provide the actual error message emitted by puppet and all the
> classes/*.pp files. For best results, find a minimal set and minimal
> content for the imported manifests that still exhibits the problem.