Skip to content

Commit

Permalink
Update pmm-framework.py (#92)
Browse files Browse the repository at this point in the history
Fix issue, to pick changed password
  • Loading branch information
saikumar-vs authored Nov 14, 2024
1 parent c4e15e7 commit 92a2b96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pmm_qa/pmm-framework.py
Original file line number Diff line number Diff line change
Expand Up @@ -596,7 +596,7 @@ def mongo_ssl_setup(script_filename, args):
subprocess.run(
['cp', f'{scripts_path}docker-compose-pmm-psmdb.yml', f'{compose_file_path}'])
admin_password = os.getenv('ADMIN_PASSWORD') or args.pmm_server_password or 'admin'
subprocess.run(['sed', '-i', f's/password/{admin_password}/g', f'{compose_file_path}'])
subprocess.run(['sed', '-i', f's/PMM_AGENT_SERVER_PASSWORD=admin/PMM_AGENT_SERVER_PASSWORD={admin_password}/g', f'{compose_file_path}'])
subprocess.run(['sed', '-i', '/container_name/a\ networks:\\\n \\- pmm-qa', f'{compose_file_path}'])
subprocess.run(['sed', '-i', '$a\\\nnetworks:\\\n pmm-qa:\\\n name: pmm-qa\\\n external: true',
f'{compose_file_path}'])
Expand Down

0 comments on commit 92a2b96

Please sign in to comment.