In data 08 gennaio 2011 alle ore 21:36:48, Daniel Pittman
<dan...@rimspace.net> ha scritto:
On Sat, Jan 8, 2011 at 12:17, Cosimo Streppone <cos...@streppone.it>
wrote:
In data 08 gennaio 2011 alle ore 20:07:20, Nigel Kersten
<ni...@puppetlabs.com> ha scritto:
Is between "====" exactly what you're printing out?
=================
--- YAML
---
classes:
- geodns::production::backend
environment: production
name: z01-06-02
parameters:
puppet_server: z01-06-02
==================
Yes, that's the standard perl YAML serializer.
Hrm. A quick test here with YAML.pm 0.72 does the right thing, which
is that it does not emit that extra line. It might be worth looking
into that, because that does indicate that your stream contains *two*
documents - each '---' separator starts an entire document and all.
I found there was a problem in my classifier script.
I was doing:
# ...
my $puppet_classifier_info = {
classes => $puppet_class,
environment => 'production',
parameters => \%default_params,
};
print YAML->Dump($puppet_classifier_info);
While the correct statement is:
print YAML::Dump($puppet_classifier_info);
As you suggested, that doesn't output the additional '--- YAML' line.
I didn't have time to try this yet, but it's clear that it's
going to work.
Yay!
--
Cosimo
--
You received this message because you are subscribed to the Google Groups "Puppet
Users" group.
To post to this group, send email to puppet-us...@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.