Using grains with SALT: Revision history

Diff selection: Mark the radio buttons of the revisions to compare and hit enter or the button at the bottom.
Legend: (cur) = difference with latest revision, (prev) = difference with preceding revision, m = minor edit.

27 August 2025

16 July 2025

  • curprev 18:1218:12, 16 July 2025Gyurci08 talk contribs 1,474 bytes −353 No edit summary
  • curprev 18:1218:12, 16 July 2025Gyurci08 talk contribs 1,827 bytes +1,827 Created page with "Category:SALT == Using Grains with Salt == This guide demonstrates how to use grains—static, easily accessible bits of information about minions—in Salt. === 1. Set Custom Grains === Assign custom grains to your minions for targeting and configuration: <syntaxhighlight lang="bash"> salt '*ctr-1*' grains.setval roles '[ "primary-controller", "promtail-node" ]' salt '*ctr-2*' grains.setval roles '[ "controller", "promtail-node" ]' salt '*wkr-*' grains.setval..."