exported resources question

22 views
Skip to first unread message

Cristian Falcas

unread,
Jul 23, 2014, 10:02:43 AM7/23/14
to puppet...@googlegroups.com
Hello,

When are the exported resources exported and by whom? Are they send by the agent at the end of the run or are written by the server after catalog compilation?

Best regards,
Cristian Falcas

Andy Parker

unread,
Jul 23, 2014, 4:05:43 PM7/23/14
to puppet...@googlegroups.com
On Wed, Jul 23, 2014 at 7:02 AM, Cristian Falcas <cristi...@gmail.com> wrote:
Hello,

When are the exported resources exported and by whom? Are they send by the agent at the end of the run or are written by the server after catalog compilation?


The exported resources are created as part of the catalog compilation process on the master via the @@ prefix on resource declarations. Those resources are part of the local catalog as the compilation progresses. At the end of the compilation, the storeconfigs backend is given access to the catalog. What exactly happens at this point is implementation specific. For puppetdb, the puppetdb catalog terminus is invoked on the puppet master, which extracts the exported resources and stores those in puppetdb as well as the rest of the catalog. After that the master removes the any exported resources from the catalog and sends that catalog to the agent. The agent never sees exported resources that weren't realized into the catalog.
 
Best regards,
Cristian Falcas

--
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 view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CAMo7R_eD1Wy7_7q-mqXxQZBScUdrjE6J60Q1_6BqKAKNJH6tHA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.



--
Andrew Parker
Freenode: zaphod42
Twitter: @aparker42
Software Developer

Join us at PuppetConf 2014September 22-24 in San Francisco
Register by May 30th to take advantage of the Early Adopter discount save $349!

Cristian Falcas

unread,
Jul 25, 2014, 6:03:55 AM7/25/14
to puppet...@googlegroups.com
Thank you.

Best regards,
Cristian Falcas


Reply all
Reply to author
Forward
0 new messages