search for: build_yaml

Displaying 1 result from an estimated 1 matches for "build_yaml".

Did you mean: build_all
2007 Oct 29
0
ENC a simple example
...r/bin/perl use strict; use warnings; use YAML qw( Dump LoadFile ); my $vardir = ''/etc/puppet''; my $manifest_dir = "$vardir/manifests/nodes"; my $hostname = shift || die "No hostname passed"; # initialize my $params; # build parameters based on files $params = build_yaml("$hostname/init.yaml") or exit 0; # always add the default class # we add them to the front unshift @{$params->{''classes''}}, ''base''; # dump yaml back to puppetmasterd print Dump($params); sub build_yaml { my $file = shift; $file = "$man...