-
-
Save carsten-AEI/70b465bca3e17051994184e4377cdae8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pillar: | |
sqlite3: | |
database: '/srv/salt/external/sqlite/pillar.db' | |
timeout: 5.0 | |
ext_pillar: | |
- sqlite3: | |
common: | |
query: "SELECT DISTINCT 'users', 'accounts', u.name, full_name, uid, shell, home, autofs_location | |
FROM person p | |
INNER JOIN user u on p.id = u.person_id | |
INNER JOIN user_role ur ON u.id = ur.user_id | |
INNER JOIN role r ON ur.role_id = r.id | |
LEFT JOIN nodegroup_role nr ON r.id = nr.role_id | |
LEFT JOIN nodegroup n ON nr.nodegroup_id = n.id | |
WHERE n.name IN ? | |
ORDER BY u.name" | |
depth: 3 | |
by_nodegroups: True |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment