Skip to content

Commit 688c07d

Browse files
authored
Merge pull request #25 from VallariAg/custom-conf
Add TEUTHOLOGY_CONF and TEUTHOLOGY_YAML to teuthology container
2 parents ed49ec1 + fb3f22b commit 688c07d

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

ceph_devstack/resources/ceph/containers.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -341,6 +341,20 @@ def create_cmd(self):
341341
"-e",
342342
f"SSH_AUTH_SOCK={ssh_auth_socket}",
343343
]
344+
custom_conf = os.environ.get("TEUTHOLOGY_CONF")
345+
if custom_conf:
346+
cmd += [
347+
"-v",
348+
f"{custom_conf}:/tmp/conf.yaml",
349+
"-e",
350+
f"TEUTHOLOGY_CONF=/tmp/conf.yaml",
351+
]
352+
teuthology_yaml = os.environ.get("TEUTHOLOGY_YAML")
353+
if teuthology_yaml:
354+
cmd += [
355+
"-v",
356+
f"{teuthology_yaml}:/root/.teuthology.yaml",
357+
]
344358
cmd += [
345359
"--name",
346360
"{name}",

0 commit comments

Comments
 (0)