quick question: when the compiler sends the catalo...
# puppet
j
quick question: when the compiler sends the catalog to the agent, is the
resources[]
list within the catalog in the exact order that the agent will check/enforce the resources? or does the agent go through what it receives, resolve the dependences, and convert it from an "un-ordered list" to an "ordered list"? ... i've always assumed it was the latter (i.e. agent resolves dependencies) but i'm being asked for a definitive answer now.
this is happening under PE2016.2.0/puppet 4.5.2, but if nobody knows about that version, an answer relating to PE2023 would be better than nothing.
c
mmy understanding has always been it is a runtime decision made by the compilation process
there are a couple folks on OpenVox that might be able to better answer like Heinrick or Nick
that’s the latest “unencumbered” docs. Post-“core”, I have no idea what’s going on in there, but this is rather certain
j
i remember reading through something very similar, i suspect it was the "puppet 4.5" version of the same page (it would be really nice if the older versions' documentation existed in a format that could be viewed using a web browser, rather than having to manually parse the markdown files by hand, but that argument is already several years outdated)
n
@jms1 The
resources
array is not necessarily enforced in the order received. At least, it's not the only deciding factor. The agent takes into account the order of the
resources
array and the relationships defined in the
edges
field of the catalog. The agent uses the info within the
edges
to create a dependency graph and enforce resources based on that graph.