From 317fb09bec083622263db2b6bfda8e73da901643 Mon Sep 17 00:00:00 2001 From: ebner Date: Thu, 1 Dec 2022 14:19:14 +0100 Subject: [PATCH] update --- proposals/draft_repositories.md | 73 ++++++- .../draft_repositories_overview.drawio.svg | 179 ++++++++++-------- .../idea_classification_systems.drawio.svg | 125 ++++++++++++ 3 files changed, 292 insertions(+), 85 deletions(-) create mode 100644 proposals/idea_classification_systems.drawio.svg diff --git a/proposals/draft_repositories.md b/proposals/draft_repositories.md index b4c0d87e..1782a03c 100644 --- a/proposals/draft_repositories.md +++ b/proposals/draft_repositories.md @@ -1,8 +1,79 @@ # Draft Repository Design +## URL Patterns + +All repo URLs for any operating system follow this patterns: + +* https://repos.psi.ch/<os>/iso +* https://repos.psi.ch/<os>/tags/<tag>/<repo> +* https://repos.psi.ch/<os>/tags/<tag>/keys; +* https://repos.psi.ch/<os>/snapshots/<tag>/<repo> +* https://repos.psi.ch/<os>/snapshots/<tag>/keys +* https://repos.psi.ch/<os>/latest/<repo> +* https://repos.psi.ch/<os>/latest/keys; + +The __<os>__ part is a combination of the __ID__ and __VERSION_ID__ variable inside the standard (see https://stackoverflow.com/questions/47838800/etc-lsb-release-vs-etc-os-release) /etc/os-release file. In some cases the VERSION_ID will be trunkated (especially for RHEL systems) + +Example RHEL7 system: +``` +[root]# cat /etc/os-release +[...] +ID="rhel" +VERSION_ID="7.9" +[...] +``` +will result in __rhel7__. + +Example Ubuntu system: +``` +[root]# cat /etc/os-release +[...] +ID=ubuntu +VERSION_ID="22.04" +[...] +``` +will result in __ubuntu22.04__. + + +For os independen firmware images we will have a "repos" like this: + +* https://repos.psi.ch/firmware +* https://repos.psi.ch/firmware/<group> + + +### Examples +* https://repos.psi.ch/rhel7/iso +* https://repos.psi.ch/rhel7/tags/<tag>/<repo> +* https://repos.psi.ch/rhel7/tags/<tag>/keys; +* https://repos.psi.ch/rhel7/snapshots/<tag>/<repo> +* https://repos.psi.ch/rhel7/snapshots/<tag>/keys +* https://repos.psi.ch/rhel7/latest/<repo> +* https://repos.psi.ch/rhel7/latest/keys; + +---- + +* https://repos.psi.ch/rhel8/iso +* https://repos.psi.ch/rhel8/tags/<tag>/<repo> +* https://repos.psi.ch/rhel8/tags/<tag>/keys +* https://repos.psi.ch/rhel8/snapshots/<tag>/<repo> +* https://repos.psi.ch/rhel8/snapshots/<tag>/keys +* https://repos.psi.ch/rhel8/latest/<repo> +* https://repos.psi.ch/rhel8/latest/keys + +---- +* ... +---- + +* https://repos.psi.ch/firmware/... + + +## Filesystem Layout + ![](draft_repositories_overview.drawio.svg) + + ## Questions * One RPM to enable/install supported yum repository -* Where do we provide our own rpm packages? +* Where do we provide our own rpm packages - lx-misc (currently pli-misc) * How to know which systems are using which repos? (via rpm package list / hiera config / ... ?) \ No newline at end of file diff --git a/proposals/draft_repositories_overview.drawio.svg b/proposals/draft_repositories_overview.drawio.svg index 32738855..61a80082 100644 --- a/proposals/draft_repositories_overview.drawio.svg +++ b/proposals/draft_repositories_overview.drawio.svg @@ -1,10 +1,10 @@ - + - + - +
@@ -19,9 +19,9 @@ - + - +
@@ -36,26 +36,26 @@ - + - +
- sources/ + latest/
- sources/ + latest/
- + - +
@@ -70,9 +70,9 @@ - + - +
@@ -86,11 +86,11 @@ - + - + - +
@@ -103,15 +103,15 @@
- + if same gpg key is used... - + - +
@@ -126,9 +126,9 @@ - + - +
@@ -143,9 +143,9 @@ - + - +
@@ -159,11 +159,11 @@ - + - + - +
@@ -180,9 +180,9 @@ - + - +
@@ -197,9 +197,9 @@ - + - +
@@ -214,9 +214,9 @@ - + - +
@@ -231,9 +231,9 @@ - + - +
@@ -248,18 +248,18 @@ - + - +
Examples:
- redhat7 + rhel7
- redhat8 + rhel8
...
@@ -273,9 +273,9 @@ - + - +
@@ -290,9 +290,9 @@ - + - +
@@ -306,12 +306,12 @@ - + - + - -
+ +
iso mount @@ -325,9 +325,9 @@ - + - +
@@ -342,9 +342,9 @@ - + - +
@@ -360,9 +360,9 @@ - + - +
@@ -377,9 +377,9 @@ - + - +
@@ -393,12 +393,12 @@ - + - + - +
@@ -414,9 +414,9 @@ - + - +
@@ -430,11 +430,11 @@ - + - + - +
@@ -443,7 +443,7 @@ (alias)
- lx-repos-01.psi.ch (real server name) + lx-web-01.psi.ch (real server name)
@@ -453,46 +453,57 @@
- - + + - -
+ +
Located on the NFS fileserver: - lx-fs:/repositories/yum + lx-fs:/xxxxx
- - Located on the NFS fileserver: lx-fs:/repositories/yum + + Located on the NFS fileserver: lx-fs:/xxxxx - - + + - -
-
+ +
+
- good -
- name??? -
- repositories/packages/ -
- yum/yum-repos/rpms/..??? + firmware
- - good... + + firmware + + + + + + + +
+
+
+ <group>/ +
+
+
+
+ + <group>/
diff --git a/proposals/idea_classification_systems.drawio.svg b/proposals/idea_classification_systems.drawio.svg new file mode 100644 index 00000000..a0edddac --- /dev/null +++ b/proposals/idea_classification_systems.drawio.svg @@ -0,0 +1,125 @@ + + + + + + + +
+
+
+ personal +
+ system +
+
+
+
+ + personal... + +
+
+ + + + +
+
+
+ multi user +
+ systems +
+
+
+
+ + multi user... + +
+
+ + + + +
+
+
+ server +
+ systems +
+
+
+
+ + server... + +
+
+ + + + +
+
+
+ infrastructure +
+ systems +
+
+
+
+ + infrastructure... + +
+
+ + + + +
+
+
+ + responsibility must be with a group + +
+
+
+
+ + responsibility must be with a group + +
+
+ + + + +
+
+
+ priority +
+
+
+
+ + priority + +
+
+
+ + + + + Viewer does not support full SVG 1.1 + + + +
\ No newline at end of file