Just preference and consistency. We've been using puppet as a
substitute for shell commands that use the 'command [options]
arguments ... ' pattern and 'puppet resource ...' matches that
pattern nicely. But if by using here-documents we can match the
pattern pretty closely and we gain the additional functionality, we'll
go that way.
Using 'puppet apply' with a here-document ....
puppet apply <<"eof"
file { "hello_world":
path => "/tmp/hw.txt",
ensure => "file",
content => "hello\nworld\n",
}
eof
... looks pretty close to using arguments to 'puppet resource' ...
$ puppet resource \
file hello_world \
path=/tmp/hw.txt \
ensure=file \
content="hello\nworld\n"
... but actually works. :)
Regards,
- Robert
> --
> 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...@googlegroups.com.
> To post to this group, send email to
puppet...@googlegroups.com.
> Visit this group at
http://groups.google.com/group/puppet-users?hl=en.
> For more options, visit
https://groups.google.com/groups/opt_out.
>
>