HI,

I empty the file nodes.pp, but it look like it's not running.
I make the script to print something to a file, each time it run, but it 
write it only when I run it from the command line,
While I expect to have that print each time the Puppet agent run the puppet 
command.

Is the hostname should send automatically as the first parameter or I need 
to do it in somehow?

When I install open source Puppet 3.3.1, I follow old instruction of 2.6.0.
I did not install the PuppetDB, unless it came by default installation. Is 
it installed with open source puppet 3.3.1?
Can ENC work without it or should I install PuppetDB? installation  can 
mess what I had?

Maybe I missing the basic,
I create perl script and put it in /path/to/bin/external_node
in this script I put a regular perl commands:

    #!/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


Is it okay?

Thank you very much for your responses.

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/a7ae0b61-8178-4070-85f7-28f1322eaf41%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to