Compare commits
No commits in common. "6706d042984e09830dba85c9b613e98e7d299c86" and "8cabb029b36a7f399c8a55f4625bf400415fb7b4" have entirely different histories.
6706d04298
...
8cabb029b3
2 changed files with 4 additions and 26 deletions
|
@ -7,56 +7,40 @@ for name, user_config in node.metadata.get('users').items():
|
|||
directories = {
|
||||
join(user_config['home'], '.zsh'): {
|
||||
'owner': name,
|
||||
'group': name,
|
||||
},
|
||||
join(user_config['home'], '.zsh/oh-my-zsh'): {
|
||||
'owner': name,
|
||||
'group': name,
|
||||
},
|
||||
join(user_config['home'], '.zsh/oh-my-zsh/custom/plugins/zsh-autosuggestions'): {
|
||||
'owner': name,
|
||||
'group': name,
|
||||
'needs': [
|
||||
f"git_deploy:{join(user_config['home'], '.zsh/oh-my-zsh')}",
|
||||
]
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
|
||||
git_deploy = {
|
||||
join(user_config['home'], '.zsh/oh-my-zsh'): {
|
||||
'repo': 'https://github.com/ohmyzsh/ohmyzsh.git',
|
||||
'rev': 'master',
|
||||
'triggers': [
|
||||
f'action:chown_zsh_{name}',
|
||||
],
|
||||
},
|
||||
join(user_config['home'], '.zsh/oh-my-zsh/custom/plugins/zsh-autosuggestions'): {
|
||||
'repo': 'https://github.com/zsh-users/zsh-autosuggestions.git',
|
||||
'rev': 'master',
|
||||
'triggers': [
|
||||
f'action:chown_zsh_{name}',
|
||||
],
|
||||
},
|
||||
}
|
||||
|
||||
files = {
|
||||
join(user_config['home'], '.zshrc'): {
|
||||
'owner': name,
|
||||
'group': name,
|
||||
'source': 'zshrc',
|
||||
},
|
||||
join(user_config['home'], '.zsh/oh-my-zsh/themes/bw.zsh-theme'): {
|
||||
'owner': name,
|
||||
'group': name,
|
||||
'needs': [
|
||||
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,
|
||||
},
|
||||
}
|
||||
|
||||
|
|
|
@ -30,15 +30,9 @@
|
|||
],
|
||||
},
|
||||
'users': {
|
||||
'ckn': {
|
||||
'root': {
|
||||
'shell': '/usr/bin/zsh',
|
||||
'authorized_keys': {
|
||||
'ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIEU1l2ijW3ZqzFGZcdWg2ESgTGehdNfBTfafxsjWvWdS mwiegand@macbook',
|
||||
},
|
||||
},
|
||||
},
|
||||
'sudoers': {
|
||||
'ckn': {'ALL'},
|
||||
},
|
||||
},
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue