salt/bin/roles.py
Georg Pfuetzenreuter f1a4b0514c
Init
Signed-off-by: Georg Pfuetzenreuter <mail@georg-pfuetzenreuter.net>
2023-01-15 09:18:15 +01:00

14 lines
258 B
Python
Executable File

#!/usr/bin/env python3
import os
roles = []
excluded = ['common-suse', 'minion']
def get():
for file in os.listdir('salt/role'):
role = os.path.splitext(file)[0]
if not role in excluded:
roles.append(role)
return roles