Puppet Bolt show diff

29 views
Skip to first unread message

Brent Clark

unread,
Jan 6, 2020, 10:16:18 AM1/6/20
to Puppet Users
Good day Guys

In the traditional, master - agent sense, when ever puppet changes a
file, you would see the "diff/changes" been applied.

Can bolt too show the changes applied?

Regards
Brent

Michael Smith

unread,
Jan 6, 2020, 11:34:19 AM1/6/20
to puppet...@googlegroups.com
The result of an apply statement in a Bolt Plan is a ResultSet (a list of results from each target). The results include the report from applying Puppet, which includes all those details. See https://puppet.com/docs/bolt/latest/applying_manifest_blocks.html#return-value-of-apply-action for how to access that. The log output itself is available as well, see the comments on https://tickets.puppetlabs.com/browse/BOLT-901 for an example of printing those logs. I think making some helpers for printing report results would be a useful module to add to the Forge.

https://tickets.puppetlabs.com/browse/BOLT-991 was opened to get more progressive log output, but hasn't been re-opened after moving to GitHub Issues.

--
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/a90bfbd9-af6b-3221-f7a7-2fcfd23bc329%40gmail.com.
Reply all
Reply to author
Forward
0 new messages