Hi All,
By working on our bootstrap puppet scripts (executed wih standalone
puppet), I found a difference between pipe and file parsing :
A simple file with a content :
$ cat withdollar.pp
file { "/tmp/withdoller.txt":
content => 'something like echo $1'
}
When puppet parses the file :
$ puppet withdollar.pp
notice: //File[/tmp/withdoller.txt]/content: created file with
contents {md5}43f1e562200b79e68ebaf15cd956eaa3
When puppet parses stdin :
$ cat withdollar.pp | puppet
Could not parse for environment production: Could not find value for $1
I use "puppet pipes" to bootstrap servers, something like :
cat manifests/bootstrap/newserver.pp | ssh newserver sudo puppet
The workaround is simple (but longer) :
cat manifests/bootstrap/newserver.pp | ssh newserver "cat - >
/tmp/bootstrap.pp && sudo puppet /tmp/bootstrap.pp"
PS. May be my first message in this list, so : "mille mercis pour cet
outil fantastique !" :-)
--
Alban Peignier - [email protected]
http://people.tryphon.org/~alban
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/puppet-users?hl=en
-~----------~----~----~----~------~----~------~--~---