Dmitry Lysnichenko created AMBARI-22871:
-------------------------------------------
Summary: Move Stack OS and Repository to DB
Key: AMBARI-22871
URL: https://issues.apache.org/jira/browse/AMBARI-22871
Project: Ambari
Issue Type: Task
Reporter: Dmitry Lysnichenko
Assignee: Dmitry Lysnichenko
Attachments: AMBARI-22871.patch
This jira is to address technical debt. Move from storing OS and Repository
data as embedded json and make them proper tables/entities instead.
We are starting to add data to OS and Repository over just what is defined on
the stack. These tables should allow for both {{stack}} and {{repo_version}}
to use them.
new: repo_os
|id|bigint|PK|
|family|varchar(255), non-null, default ''|the os family (eg redhat6)|
|ambari_managed|smallint default 1|whether ambari manages the repos|
new: repo_definition
|id|bigint|PK|
|repo_os_id|bigint|FK to repo_os|
|repo_name|varchar(255) non-null|name of the repository (HDP-2.5, HDP-UTILS)|
|repo_id|varchar(255) non-null|freeform id of the repository (HDP-2.5-2.5.0.0)|
|base_url|varchar(2048) non-null|base url|
|default_url|varchar(2048) non-null|(verify this is still needed)|
|mirrors|text|mirrors to check|
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)