bundles/users: move root user to metadata
This commit is contained in:
parent
16e8c4fd00
commit
c090a9c2c2
2 changed files with 19 additions and 19 deletions
|
@ -2,27 +2,20 @@ from os.path import join, exists
|
|||
|
||||
directories = {}
|
||||
users = {}
|
||||
files = {}
|
||||
groups = {}
|
||||
|
||||
users['root'] = {
|
||||
'home': '/root',
|
||||
'shell': '/bin/bash',
|
||||
'password': repo.vault.human_password_for('root on {}'.format(node.name)),
|
||||
}
|
||||
|
||||
files['/etc/bash.bashrc'] = {
|
||||
files = {
|
||||
'/etc/bash.bashrc': {
|
||||
'source': 'bashrc',
|
||||
'content_type': 'mako',
|
||||
}
|
||||
|
||||
files['/etc/tmux.conf'] = {
|
||||
},
|
||||
'/etc/tmux.conf': {
|
||||
'source': 'tmux.conf',
|
||||
'content_type': 'mako',
|
||||
}
|
||||
|
||||
files['/etc/vim/vimrc.local'] = {
|
||||
},
|
||||
'/etc/vim/vimrc.local': {
|
||||
'source': 'vimrc',
|
||||
},
|
||||
}
|
||||
|
||||
for username, attrs in node.metadata['users'].items():
|
||||
|
|
|
@ -5,4 +5,11 @@ defaults = {
|
|||
'vim': {},
|
||||
},
|
||||
},
|
||||
'users': {
|
||||
'root': {
|
||||
'home': '/root',
|
||||
'shell': '/bin/bash',
|
||||
'password': repo.vault.human_password_for('root on {}'.format(node.name)),
|
||||
},
|
||||
},
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue