Slackbot
06/01/2023, 1:22 PMcsharpsteen
06/01/2023, 1:45 PMapply
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.towo
06/01/2023, 1:47 PM$manifest = file::read('manifests/foo.pp')
apply($targets) $manifest
?Yury Bushmelev
06/01/2023, 2:15 PMapply_prep()
firstYury Bushmelev
06/01/2023, 2:16 PMapply_prep($targets)
apply($targets) {
include foo
}
Yury Bushmelev
06/01/2023, 2:16 PMapply()
blocktowo
06/01/2023, 2:17 PMinclude
ing that manifest. I thought you somehow had to read it from file and convert it to a block.Yury Bushmelev
06/01/2023, 2:17 PMinclude <bolt_project_name>::foo
.. not sure