diff options
author | Rob Austein <sra@hactrn.net> | 2010-03-04 06:18:22 +0000 |
---|---|---|
committer | Rob Austein <sra@hactrn.net> | 2010-03-04 06:18:22 +0000 |
commit | 527380159f145fb8488f328737e534f1cb2276bd (patch) | |
tree | 48af7af1d37b946bc5db3c63bb501b74d9988504 /myrpki.rototill/yamltest.py | |
parent | 79a42e2ec990faaba8e2f7181a21cfef5b54220a (diff) |
Clean up myrpki.conf customizations. Other than SQL settings, this
script shouldn't need to modify anything but the [myrpki] section.
svn path=/myrpki.rototill/yamltest.py; revision=3020
Diffstat (limited to 'myrpki.rototill/yamltest.py')
-rw-r--r-- | myrpki.rototill/yamltest.py | 38 |
1 files changed, 12 insertions, 26 deletions
diff --git a/myrpki.rototill/yamltest.py b/myrpki.rototill/yamltest.py index e7fbfa2b..ef148f0d 100644 --- a/myrpki.rototill/yamltest.py +++ b/myrpki.rototill/yamltest.py @@ -386,44 +386,30 @@ class allocation(object): r = { ("myrpki", "handle"): self.name } if not self.is_hosted(): - r["irdbd", "https-url"] = "https://localhost:%d/" % self.irdbd_port - r["irdbd", "sql-database"] = "irdb%d" % self.engine - r["myrpki", "irdbd_conf"] = "myrpki.conf" - r["myrpki", "rpkid_base"] = "https://localhost:%d/" % self.rpkid_port - r["rpkid", "irdb-url"] = "https://localhost:%d/" % self.irdbd_port - r["rpkid", "server-port"] = "%d" % self.rpkid_port - r["rpkid", "sql-database"] = "rpki%d" % self.engine - r["myrpki", "run_pubd"] = "true" if self.runs_pubd() else "false" - r["myrpki", "run_rootd"] = "true" if self.is_root() else "false" - r["irbe_cli", "rpkid-url"] = "https://localhost:%d/left-right" % self.rpkid_port + r["irdbd", "sql-database"] = "irdb%d" % self.engine + r["rpkid", "sql-database"] = "rpki%d" % self.engine + r["myrpki", "rpkid_server_host"] = "localhost" + r["myrpki", "rpkid_server_port"] = str(self.rpkid_port) + r["myrpki", "irdbd_server_host"] = "localhost" + r["myrpki", "irdbd_server_port"] = str(self.irdbd_port) + r["myrpki", "run_pubd"] = "true" if self.runs_pubd() else "false" + r["myrpki", "run_rootd"] = "true" if self.is_root() else "false" if self.is_root(): - root_path = "localhost:%d/%s" % (self.rsync_port, self.name) - r["rootd", "rpki-root-dir"] = "publication/" - r["rootd", "rpki-base-uri"] = "rsync://%s/" % root_path - r["rootd", "rpki-root-cert"] = "publication/root.cer" - r["rootd", "rpki-root-cert-uri"] = "rsync://%s/root.cer" % root_path - r["rootd", "rpki-subject-cert"] = "%s.cer" % self.name - r["rootd", "rpki-root-manifest"] = "root.mnf" - r["rootd", "root_cert_sia"] = r["rootd", "rpki-base-uri"] - r["rootd", "root_cert_manifest"] = r["rootd", "rpki-base-uri"] + r["rootd", "rpki-root-manifest"] + r["myrpki", "rootd_server_port"] = str(self.rootd_port) + r["myrpki", "rootd_resource_class_name"] = self.name if self.runs_pubd(): - r["pubd", "server-port"] = "%d" % self.pubd_port r["pubd", "sql-database"] = "pubd%d" % self.engine - r["irbe_cli", "pubd-url"] = "https://localhost:%d/control/" % self.pubd_port s = self while not s.runs_pubd(): s = s.parent - r["myrpki", "pubd_base"] = "https://localhost:%d/" % s.pubd_port - r["myrpki", "rsync_base"] = "rsync://localhost:%d/" % s.rsync_port + r["myrpki", "pubd_server_host"] = "localhost" + r["myrpki", "pubd_server_port"] = str(s.pubd_port) r["myrpki", "repository_bpki_certificate"] = s.path("bpki/myirbe/ca.cer") r["myrpki", "repository_handle"] = self.client_handle - if self.is_root(): - r["rootd", "server-port"] = "%d" % self.rootd_port - if rpkid_password: r["rpkid", "sql-password"] = rpkid_password |