[
https://issues.apache.org/jira/browse/TC-6?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15854958#comment-15854958
]
ASF GitHub Bot commented on TC-6:
---------------------------------
Github user dangogh commented on a diff in the pull request:
https://github.com/apache/incubator-trafficcontrol/pull/255#discussion_r99711784
--- Diff: traffic_ops/install/bin/postinstall ---
@@ -568,8 +558,10 @@ sub getDefaults {
sub setupDatabase {
my $todbconf = shift;
my $opensslconf = shift;
- my $genCert = shift;
my $setupMaxmind = shift;
+ my $databaseConfFile = shift;
+
+ my $dbconf = InstallUtils::readJson( $databaseConfFile );
--- End diff --
This is a catch-22 -- the db connection must be tested first -- just to
make sure the dbconf.yml settings are correct. Only then can the `db/admin.pl
... setup` do anything....
> Traffic Ops postinstall: non-interactive configuration
> ------------------------------------------------------
>
> Key: TC-6
> URL: https://issues.apache.org/jira/browse/TC-6
> Project: Traffic Control
> Issue Type: Improvement
> Components: Traffic Ops
> Affects Versions: 1.8.0
> Reporter: Dan Kirkwood
> Assignee: Dan Kirkwood
> Fix For: 2.0.0
>
> Attachments: Automated_Postinstall_for_Traffic_Ops_v4.docx
>
> Original Estimate: 48h
> Remaining Estimate: 48h
>
> Traffic Ops postinstall currently requires interactive user input. This
> makes it difficult to install exactly the same way each time, and can be
> error prone. It also makes installation within a docker container difficult.
> There should be a way to get this same input from a file that can be
> configured ahead of time.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)