reformat groups

This commit is contained in:
Franzi 2020-02-29 12:30:51 +00:00
parent ebf7f7ada9
commit 33589e9a02
Signed by: kunsi
GPG key ID: 12E3D2136B818350
2 changed files with 28 additions and 18 deletions

View file

@ -1,18 +1,7 @@
groups = { from os.path import join
#'group-1': { from pathlib import Path
# 'bundles': (
# 'bundle-1', groups = {}
# ), for group in Path(join(repo_path, "groups")).rglob("*.py"):
# 'members': ( with open(group, 'r') as f:
# 'node-1', exec(f.read())
# ),
# 'subgroups': (
# 'group-2',
# ),
#},
'all': {
'member_patterns': (
r".*",
),
},
}

21
groups/all.py Normal file
View file

@ -0,0 +1,21 @@
groups['all'] = {
'member_patterns': (
r".*",
),
'bundles': {
'users',
},
'metadata': {
'users': {
'kunsi': {
'ssh_pubkey': [
'ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQC+ja1z5VRQzaKCCePsUM14qMr9QR94qlWc7Je5Poki9UmC1t/TyxRVzcCBL1ZdIfBGx6QKtfkEbvhgb3nxVt3PvXjoJrc6wwGLmNrVsU6B88y35g7nzupQiPKYJwkNzJ9j6Dmkgj1F5Q+aY2SitDaX6vqICLJ4Al/ZFw2IQxVJfC7JXRJ9jRMG5o9gWoE3gWDYEAmw+HU2mNzyeuaD12qJw9DHUimAlgkOWzll3gh9WclsYnnXGrCCn5fyHFUCJl+XXAIy519z7YTpKih02rsIOw5dnaGClBZD/YQu2ZKVFZiwIVH7aBiqHOmtgRyWTQgjbh/fMpIN0ar2f/iZsWYUjd6et48TOmXZYIPCQ5FivXNvxt9oo1XZfq76UHBwlmypLJIWROMbz375n2M6hr3hECuxuPjKEUXAv05KiC1aJ4xc6pFoVhqwAR99hvHw5U4o7/ko2NVjNpTu6Jr5DT5VaQLIdDDjC/93kUjMpdD/8P72bEn7454+WexU6OE6uvNiHj1fetrptr2UAuzVfnCoaV8pBqY7X95gk+lnSENdpr8ltJYMg8s0Z7Pzz0OxsZtzzDY5VmWfC9TCdJkN5lT8IbnaixsYlWdjQl1lMmZGElmelfU3K7YQLAbZiHmHKe4hTl9ZoCcWdTQ3d4y2t1DBos+N2HZNdtFCyOS8esDdMw== cardno:000609506971',
],
},
'sophie': {
'shell': '/bin/bash',
},
},
},
}