zsh chown
This commit is contained in:
parent
8cabb029b3
commit
cf09493486
1 changed files with 19 additions and 3 deletions
|
@ -7,40 +7,56 @@ for name, user_config in node.metadata.get('users').items():
|
||||||
directories = {
|
directories = {
|
||||||
join(user_config['home'], '.zsh'): {
|
join(user_config['home'], '.zsh'): {
|
||||||
'owner': name,
|
'owner': name,
|
||||||
|
'group': name,
|
||||||
},
|
},
|
||||||
join(user_config['home'], '.zsh/oh-my-zsh'): {
|
join(user_config['home'], '.zsh/oh-my-zsh'): {
|
||||||
'owner': name,
|
'owner': name,
|
||||||
|
'group': name,
|
||||||
},
|
},
|
||||||
join(user_config['home'], '.zsh/oh-my-zsh/custom/plugins/zsh-autosuggestions'): {
|
join(user_config['home'], '.zsh/oh-my-zsh/custom/plugins/zsh-autosuggestions'): {
|
||||||
'owner': name,
|
'owner': name,
|
||||||
|
'group': name,
|
||||||
'needs': [
|
'needs': [
|
||||||
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 = {
|
||||||
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',
|
||||||
|
'triggers': [
|
||||||
|
f'action:chown_zsh_{name}',
|
||||||
|
],
|
||||||
},
|
},
|
||||||
join(user_config['home'], '.zsh/oh-my-zsh/custom/plugins/zsh-autosuggestions'): {
|
join(user_config['home'], '.zsh/oh-my-zsh/custom/plugins/zsh-autosuggestions'): {
|
||||||
'repo': 'https://github.com/zsh-users/zsh-autosuggestions.git',
|
'repo': 'https://github.com/zsh-users/zsh-autosuggestions.git',
|
||||||
'rev': 'master',
|
'rev': 'master',
|
||||||
|
'triggers': [
|
||||||
|
f'action:chown_zsh_{name}',
|
||||||
|
],
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
files = {
|
files = {
|
||||||
join(user_config['home'], '.zshrc'): {
|
join(user_config['home'], '.zshrc'): {
|
||||||
'owner': name,
|
'owner': name,
|
||||||
|
'group': name,
|
||||||
'source': 'zshrc',
|
'source': 'zshrc',
|
||||||
},
|
},
|
||||||
join(user_config['home'], '.zsh/oh-my-zsh/themes/bw.zsh-theme'): {
|
join(user_config['home'], '.zsh/oh-my-zsh/themes/bw.zsh-theme'): {
|
||||||
'owner': name,
|
'owner': name,
|
||||||
|
'group': name,
|
||||||
'needs': [
|
'needs': [
|
||||||
f"git_deploy:{join(user_config['home'], '.zsh/oh-my-zsh')}",
|
f"git_deploy:{join(user_config['home'], '.zsh/oh-my-zsh')}",
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
actions = {
|
||||||
|
f'chown_zsh_{name}': {
|
||||||
|
'command': f"chown -R {name}:{name} {user_config['home']}",
|
||||||
|
'triggered': True,
|
||||||
|
},
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue