fix overwrite dicts
This commit is contained in:
parent
34b42832ac
commit
8063833950
1 changed files with 8 additions and 8 deletions
|
@ -4,7 +4,7 @@ for name, user_config in node.metadata.get('users').items():
|
||||||
if user_config.get('shell', None) != '/usr/bin/zsh':
|
if user_config.get('shell', None) != '/usr/bin/zsh':
|
||||||
continue
|
continue
|
||||||
|
|
||||||
directories = {
|
directories.update({
|
||||||
join(user_config['home'], '.zsh'): {
|
join(user_config['home'], '.zsh'): {
|
||||||
'owner': name,
|
'owner': name,
|
||||||
'group': name,
|
'group': name,
|
||||||
|
@ -20,9 +20,9 @@ for name, user_config in node.metadata.get('users').items():
|
||||||
f"git_deploy:{join(user_config['home'], '.zsh/oh-my-zsh')}",
|
f"git_deploy:{join(user_config['home'], '.zsh/oh-my-zsh')}",
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
}
|
})
|
||||||
|
|
||||||
git_deploy = {
|
git_deploy.update({
|
||||||
join(user_config['home'], '.zsh/oh-my-zsh'): {
|
join(user_config['home'], '.zsh/oh-my-zsh'): {
|
||||||
'repo': 'https://github.com/ohmyzsh/ohmyzsh.git',
|
'repo': 'https://github.com/ohmyzsh/ohmyzsh.git',
|
||||||
'rev': 'master',
|
'rev': 'master',
|
||||||
|
@ -37,9 +37,9 @@ for name, user_config in node.metadata.get('users').items():
|
||||||
f'action:chown_zsh_{name}',
|
f'action:chown_zsh_{name}',
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
}
|
})
|
||||||
|
|
||||||
files = {
|
files.update({
|
||||||
join(user_config['home'], '.zshrc'): {
|
join(user_config['home'], '.zshrc'): {
|
||||||
'owner': name,
|
'owner': name,
|
||||||
'group': name,
|
'group': name,
|
||||||
|
@ -52,11 +52,11 @@ for name, user_config in node.metadata.get('users').items():
|
||||||
f"git_deploy:{join(user_config['home'], '.zsh/oh-my-zsh')}",
|
f"git_deploy:{join(user_config['home'], '.zsh/oh-my-zsh')}",
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
}
|
})
|
||||||
|
|
||||||
actions = {
|
actions.update({
|
||||||
f'chown_zsh_{name}': {
|
f'chown_zsh_{name}': {
|
||||||
'command': f"chown -R {name}:{name} {user_config['home']}",
|
'command': f"chown -R {name}:{name} {user_config['home']}",
|
||||||
'triggered': True,
|
'triggered': True,
|
||||||
},
|
},
|
||||||
}
|
})
|
||||||
|
|
Loading…
Reference in a new issue