That works. Thanks a lot@ -yushu
+-------------------------------------------------+ | Yushu Yao | Ph:1-510-486-4690 | | Lawrence Berkeley National Lab | 1 Cyclotron Road | Berkeley CA 94720 - USA +-------------------------------------------------+ On Mon, May 23, 2011 at 4:41 PM, Nan Liu <n...@puppetlabs.com> wrote: > On Mon, May 23, 2011 at 4:21 PM, Yushu Yao <y...@lbl.gov> 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 puppet-users@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. > > -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@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.