On Mon, May 23, 2011 at 4:21 PM, Yushu Yao <[email protected]> wrote:
> One Follow up question:
>
> how do I apply the compiled catalog on the client?
>
> The yaml I get from puppet master --compile is like:
> cat mytest.yaml
> {
>   "data": {
>     "edges": [
>       {
>         "target": "Class[main]",
>         "source": "Stage[main]"
> .... ...
> }
>
> If I do on the client: puppet apply --test --debug mytest.yaml, I get
> Could not parse for environment production: Syntax error at '{'; expected
> '}' at /root/mytest.yaml:1 on node 192.168.2.199

Not the most intuitive thing, puppet apply -t -d --apply mytest.yaml.
Most likely will get expired catalog, but that can either be updated
by changing expire datetime in the catalog, or controlling expiration
using --runinterval (it's overloading the same option for two
purpose).

HTH,

Nan

-- 
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.

Reply via email to