Compare commits
2 commits
c128b8a1ca
...
8ebf4e0ec0
Author | SHA1 | Date | |
---|---|---|---|
8ebf4e0ec0 | |||
8e8f77e546 |
3 changed files with 21 additions and 3 deletions
|
@ -21,3 +21,4 @@ ClientAliveInterval 30
|
||||||
ClientAliveCountMax 5
|
ClientAliveCountMax 5
|
||||||
AcceptEnv LANG
|
AcceptEnv LANG
|
||||||
Subsystem sftp /usr/lib/openssh/sftp-server
|
Subsystem sftp /usr/lib/openssh/sftp-server
|
||||||
|
HostKey /etc/ssh/ssh_host_managed_key
|
||||||
|
|
|
@ -51,14 +51,14 @@ files = {
|
||||||
],
|
],
|
||||||
'skip': dont_touch_sshd,
|
'skip': dont_touch_sshd,
|
||||||
},
|
},
|
||||||
'/etc/ssh/ssh_host_ed25519_key': {
|
'/etc/ssh/ssh_host_managed_key': {
|
||||||
'content': node.metadata.get('ssh/host_key/private') + '\n',
|
'content': node.metadata.get('ssh/host_key/private') + '\n',
|
||||||
'mode': '0600',
|
'mode': '0600',
|
||||||
'triggers': [
|
'triggers': [
|
||||||
'svc_systemd:ssh:restart'
|
'svc_systemd:ssh:restart'
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
'/etc/ssh/ssh_host_ed25519_key.pub': {
|
'/etc/ssh/ssh_host_managed_key.pub': {
|
||||||
'content': node.metadata.get('ssh/host_key/public') + '\n',
|
'content': node.metadata.get('ssh/host_key/public') + '\n',
|
||||||
'mode': '0644',
|
'mode': '0644',
|
||||||
'triggers': [
|
'triggers': [
|
||||||
|
|
|
@ -9,6 +9,7 @@ directories = {
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
'/etc/zsh/oh-my-zsh/custom/plugins/zsh-autosuggestions': {
|
'/etc/zsh/oh-my-zsh/custom/plugins/zsh-autosuggestions': {
|
||||||
|
'mode': '0755',
|
||||||
'needs': [
|
'needs': [
|
||||||
f"git_deploy:/etc/zsh/oh-my-zsh",
|
f"git_deploy:/etc/zsh/oh-my-zsh",
|
||||||
]
|
]
|
||||||
|
@ -27,14 +28,30 @@ git_deploy = {
|
||||||
}
|
}
|
||||||
|
|
||||||
files = {
|
files = {
|
||||||
'/etc/zsh/zprofile': {},
|
'/etc/zsh/zprofile': {
|
||||||
|
'mode': '0755',
|
||||||
|
},
|
||||||
'/etc/zsh/oh-my-zsh/themes/bw.zsh-theme': {
|
'/etc/zsh/oh-my-zsh/themes/bw.zsh-theme': {
|
||||||
|
'mode': '0755',
|
||||||
'needs': [
|
'needs': [
|
||||||
f"git_deploy:/etc/zsh/oh-my-zsh",
|
f"git_deploy:/etc/zsh/oh-my-zsh",
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
actions = {
|
||||||
|
'chown_oh_my_zsh': {
|
||||||
|
'command': 'chmod -R 755 /etc/zsh/oh-my-zsh',
|
||||||
|
'triggered': True,
|
||||||
|
'triggered_by': [
|
||||||
|
"git_deploy:/etc/zsh/oh-my-zsh",
|
||||||
|
"git_deploy:/etc/zsh/oh-my-zsh/custom/plugins/zsh-autosuggestions",
|
||||||
|
"file:/etc/zsh/zprofile",
|
||||||
|
"file:/etc/zsh/oh-my-zsh/themes/bw.zsh-theme",
|
||||||
|
],
|
||||||
|
},
|
||||||
|
}
|
||||||
|
|
||||||
for name, user_config in node.metadata.get('users').items():
|
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':
|
||||||
files[join(user_config['home'], '.zshrc')] = {
|
files[join(user_config['home'], '.zshrc')] = {
|
||||||
|
|
Loading…
Reference in a new issue