bundles/users: add option to not automatically deploy configs
This commit is contained in:
parent
4da792f522
commit
1856f4749c
1 changed files with 27 additions and 27 deletions
|
@ -58,6 +58,7 @@ for username, attrs in node.metadata['users'].items():
|
||||||
else:
|
else:
|
||||||
files[home + '/.ssh/authorized_keys'] = {'delete': True}
|
files[home + '/.ssh/authorized_keys'] = {'delete': True}
|
||||||
|
|
||||||
|
if attrs.get('deploy_configs', True):
|
||||||
if exists(join(repo.path, 'data', 'users', 'files', 'tmux', '{}.conf'.format(username))):
|
if exists(join(repo.path, 'data', 'users', 'files', 'tmux', '{}.conf'.format(username))):
|
||||||
files[home + '/.tmux.conf'] = {
|
files[home + '/.tmux.conf'] = {
|
||||||
'content_type': 'mako',
|
'content_type': 'mako',
|
||||||
|
@ -68,7 +69,6 @@ for username, attrs in node.metadata['users'].items():
|
||||||
'delete': True,
|
'delete': True,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if exists(join(repo.path, 'data', 'users', 'files', 'fish', '{}.conf'.format(username))):
|
if exists(join(repo.path, 'data', 'users', 'files', 'fish', '{}.conf'.format(username))):
|
||||||
fish_src = 'fisk/{}.conf'.format(username)
|
fish_src = 'fisk/{}.conf'.format(username)
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in a new issue