I think, in your yaml, you are missing the name: <certname>
Grts
jo
On 17/06/14 15:19, shlo.af...@gmail.com wrote:
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
<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
<mailto: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
<https://groups.google.com/d/msgid/puppet-users/5a15194a-c44e-4c3b-b62b-cc07e8094bf4%40googlegroups.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout.
--
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:
Puppet Advanced Training |
https://www.open-future.be/puppet-advanced-training-10-till-12th-june
Puppet Introduction Course |
https://www.open-future.be/puppet-introduction-course-13th-june
Linux Training | https://www.open-future.be/linux-training-16-till-20th-june
Subscribe to our newsletter | http://eepurl.com/BUG8H
--
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/53A04BA6.8070005%40open-future.be.
For more options, visit https://groups.google.com/d/optout.