I read the documentation.
I send yesterday example of my perl ENC code  and the output.  I'm sending 
them again:

    #!/usr/bin/perl -w
>     use strict;
>     use YAML qw(Dump);
>     
>     my $hostname = shift || die "No hostname passed";
>     
>     system("echo $hostname >> /tmp/llkkll");
>     
>     my ($host, $domain, $net) = ($1, $2, $3);
>     
>     my @classes = ();
>     my %parameters = (
>         puppetserver => "puppetsrv"
>     );
>         @classes = ('class1', 'class2::basic', "class3");
>         $parameters{var} = "kk1";
>     
>     
>     print Dump({
>         classes => \@classes,
>         parameters => \%parameters,
>     }); 


that as output give me:

---
> classes:
>   - class1
>   - class2::basic
>   - class3
> parameters:
>   puppetserver: puppetsrv
>   var: kk1

 

The definition of the classes are in manifests under the module directory.

My problem: 
when I run the puppet command on the agent, it look like it *ignore* the 
classes I define in ENC script
and only if I have the node definition in node.pp it try to so something.

Maybe I'm missing very basic issue. I'm sorry.
Is there any way to debug it? 

On Tuesday, June 17, 2014 2:58:55 PM UTC+3, Jason Antman wrote:
>
>  Yes, I have an idea.
>
> 1) Read the documentation: 
> http://docs.puppetlabs.com/guides/external_nodes.html
> 2) If that doesn't help, post your ENC code, with specific examples of 
> output and problems that you're having.
>
>  

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/5a15194a-c44e-4c3b-b62b-cc07e8094bf4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to