This message was deleted.
# bolt
s
This message was deleted.
c
apply
blocks can do that: https://www.puppet.com/docs/bolt/latest/applying_manifest_blocks.html#applying-manifest-blocks-from-a-puppet-plan Manifests from modules installed in the Bolt project are available.
t
Thanks… but I'm apparently not wise enough to see how I pass the block. Do I just go something like
Copy code
$manifest = file::read('manifests/foo.pp')
apply($targets) $manifest
?
y
you need
apply_prep()
first
it should be something like this:
Copy code
apply_prep($targets)
apply($targets) {
  include foo
}
👍🏻 1
you have usual puppet code inside of
apply()
block
t
Ah… Yeah, okay, that makes sense, I was not thinking of just
include
ing that manifest. I thought you somehow had to read it from file and convert it to a block.
y
maybe you’ll need
include <bolt_project_name>::foo
.. not sure