bundles/sshmon: do not rely on bundle:users to create sshmon user
Some checks failed
bundlewrap/pipeline/head There was a failure building this commit
Some checks failed
bundlewrap/pipeline/head There was a failure building this commit
This commit is contained in:
parent
988c71a6fb
commit
ad84f62c0d
2 changed files with 17 additions and 14 deletions
|
@ -1,12 +1,7 @@
|
|||
from bundlewrap.utils import Fault
|
||||
|
||||
from os.path import join
|
||||
from re import sub
|
||||
|
||||
|
||||
with open(join(repo.path, 'data', 'sshmon', 'sshmon.pub'), 'r') as fp:
|
||||
pubkey = fp.read().strip()
|
||||
|
||||
defaults = {
|
||||
'apt': {
|
||||
'packages': {
|
||||
|
@ -25,15 +20,6 @@ defaults = {
|
|||
},
|
||||
},
|
||||
},
|
||||
'users': {
|
||||
'sshmon': {
|
||||
'password_hash': 'x',
|
||||
'ssh_pubkey': {
|
||||
'command="/usr/local/sbin/sshmon" {}'.format(pubkey),
|
||||
},
|
||||
'sudo_commands': [],
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue