Page MenuHomeDevCentral

Attribute roles to servers
ClosedPublic

Authored by dereckson on Jun 12 2017, 22:58.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Nov 24, 16:05
Unknown Object (File)
Sun, Nov 24, 13:59
Unknown Object (File)
Sun, Nov 24, 13:48
Unknown Object (File)
Sun, Nov 24, 10:31
Unknown Object (File)
Wed, Nov 20, 14:07
Unknown Object (File)
Tue, Nov 19, 18:22
Unknown Object (File)
Mon, Nov 18, 03:06
Unknown Object (File)
Mon, Nov 18, 03:05
Subscribers
None

Details

Summary

Roles are attributed to the servers through Salt configuration,
adding to the minions a 'roles' grain.

Fixes T1220.

Test Plan

Apply to Eglide

Diff Detail

Repository
rOPS Nasqueron Operations
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

dereckson planned changes to this revision.EditedJun 12 2017, 22:59
dereckson edited edge metadata.
$ salt eglide state.apply roles/core/salt/
eglide:        
    Data failed to compile:
----------
    Rendering SLS 'base:roles/core/salt/' failed: Jinja variable 'None' has no attribute 'eglide'
  • "local" isn't the shell master id, only a way to target it in top.sls
  • adding new pillar file to pillar top.sls
  • use list_present

Works fine, but list operation is always an append, see https://github.com/saltstack/salt/issues/41716

This revision is now accepted and ready to land.Jun 13 2017, 12:59
This revision was automatically updated to reflect the committed changes.