2
0
mirror of https://github.com/xcat2/confluent.git synced 2024-11-23 10:02:04 +00:00
confluent/confluent_osdeploy/ubuntu22.04/profiles/default/scripts/addcrypt

13 lines
252 B
Plaintext
Raw Normal View History

import yaml
import sys
ainst = {}
with open('/autoinstall.yaml', 'r') as allin:
ainst = yaml.safe_load(allin)
ainst['storage']['layout']['password'] = sys.argv[1]
with open('/autoinstall.yaml', 'w') as allout:
yaml.safe_dump(ainst, allout)