mirror of
https://github.com/xcat2/confluent.git
synced 2024-11-23 01:53:28 +00:00
2df902e80e
Pass the luks password by environment variable instead.
13 lines
262 B
Plaintext
13 lines
262 B
Plaintext
import yaml
|
|
import os
|
|
|
|
ainst = {}
|
|
with open('/autoinstall.yaml', 'r') as allin:
|
|
ainst = yaml.safe_load(allin)
|
|
|
|
ainst['storage']['layout']['password'] = os.environ['lukspass']
|
|
|
|
with open('/autoinstall.yaml', 'w') as allout:
|
|
yaml.safe_dump(ainst, allout)
|
|
|