Page MenuHomeDevCentral

Attribute roles to servers
ClosedPublic

Authored by dereckson on Jun 12 2017, 22:58.
Tags
None
Referenced Files
F3774819: D995.id2541.diff
Sun, Nov 24, 13:59
F3774796: D995.id2540.diff
Sun, Nov 24, 13:48
F3774207: D995.diff
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
Unknown Object (File)
Sun, Nov 17, 21:56
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 Passed
Unit
No Test Coverage
Branch
roles (branched from master)
Build Status
Buildable 1550
Build 1798: arc lint + arc unit

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.