Enable a set of repos and modules
https://review.opendev.org/c/openstack/tripleo-repos/+/789535
https://github.com/mwhahaha/rhos-bootstrap/blob/main/versions/centos.yaml#L37-L40
Execute dnf/yum command to update the yum module setting.
yum-module enable-module container-tools --module-version 3.0
It will be overriding /etc/dnf/modules.d/container-tools.module
[container-tools]
name=container-tools
stream=3.0 <this part gots overriden>
profiles=
state=enabled
yum-module enable-repo appstream --enable
It will go into /etc/yum.repos.d/ look for CentOS-Stream-AppStream.repo repo and
[appstream]
name=CentOS-Stream - AppStream
baseurl=https://mirror.mtl01.inap.opendev.org/centos/$stream/AppStream/$basearch/os/
gpgcheck=1
enabled=0 <this part will be change to one>
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial
Similar operations needs to be happen for all repos like:
yum-module enable-repo appstream --change-base_url <foobar.xyz>
+++++
need rlandy's input for dep pipeline -
The dependency pipeline is used to test $next. For example with container-tools, that is usually rhel* version or the next stable version. There are also virt modules ( using advanced virt atm). See rhos-release as an example http://git.app.eng.bos.redhat.com/git/rhos-release.git/tree/repos/rhos-release-rhel-8.4.repo
Main point is to make sure we single source here and don't enable/disable different versions
majority use case.. just to run command and update module
sudo tripleo-yum-config repo appstream --enable --set-opts baseurl=http://newurl exclude="some-package*"
sudo tripleo-yum-config repo test-debug --enable --config-file-path /etc/yum.repos.d/test.repo
sudo tripleo-yum-config module nginx --enable --set-opts stream=mainline
sudo tripleo-yum-config global --set-opts keepcache=0 cachedir="/var/cache/dnf"
- name: Enable appstream repo
ini_file:
dest: /etc/yum.repos.d/appstream.repo
section: appstream
option: enabled
value: 1
or
or
By clicking below, you agree to our terms of service.
New to HackMD? Sign up
Syntax | Example | Reference | |
---|---|---|---|
# Header | Header | 基本排版 | |
- Unordered List |
|
||
1. Ordered List |
|
||
- [ ] Todo List |
|
||
> Blockquote | Blockquote |
||
**Bold font** | Bold font | ||
*Italics font* | Italics font | ||
~~Strikethrough~~ | |||
19^th^ | 19th | ||
H~2~O | H2O | ||
++Inserted text++ | Inserted text | ||
==Marked text== | Marked text | ||
[link text](https:// "title") | Link | ||
 | Image | ||
`Code` | Code |
在筆記中貼入程式碼 | |
```javascript var i = 0; ``` |
|
||
:smile: | ![]() |
Emoji list | |
{%youtube youtube_id %} | Externals | ||
$L^aT_eX$ | LaTeX | ||
:::info This is a alert area. ::: |
This is a alert area. |
On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?
Please give us some advice and help us improve HackMD.
Do you want to remove this version name and description?
Syncing