This cookbook manages the base, epel, extras, and updates repositories on CentOS 7; and the appstream, base, highavailability, and powertools repositories on AlmaLinux 8. This cookbook imports these repositories and points them at the osuosl repositories.
https://github.com/osuosl-cookbooks/osl-repos
osl-repos::elevate
- Configures and enables the 'elevate' repositoryosl-repos::elrepo
- Configures and enables the 'elrepo' repositoryosl-repos::epel
- Configures and enables the 'epel' repositoryosl-repos::oslrepo
- Configures and enables the 'oslrepo' repository (legacy OSL repo)
osl_repos_elrepo
- Manages and configures the elrepo repository using theyum-epel
cookbookosl_repos_epel
- Manages and configures the epel repository using theyum-elrepo
cookbookosl_repos_alma
- Manages and configures the base, extras, appstream, highavailability, powertools
Action | Description |
---|---|
add | Configures all repositories managed by a given resource |
Note: All repositories controlled by a resource will be installed and configured. These properties determine if said repos are enabled
Property | Effect | Default | Compatibility |
---|---|---|---|
appstream | Enable the appstream repo | True | Alma 8, 9 |
base | Enable the base repo | True | Alma 8, 9 |
extras | Enable the extras repo | True | Alma 8, 9 |
highavailability | Enable the highavailability repo | False | Alma 8, 9 |
powertools | Enable the powertools repo | True | Alma 8, 9 |
Property | Effect | Default | Compatibility |
---|---|---|---|
elrepo | Enable the elrepo repo | True | Alma 8, 9 |
Resource | Property | Effect | Default | Compatibility |
---|---|---|---|---|
epel | epel | Enable the epel repo | True | Alma 8, 9 |
Configure the EPEL repository:
# via recipe
include_recipe 'osl-repos::epel'
# or resource
osl_repos_epel 'default'
Configure the ELRepo repository:
# via recipe:
include_recipe 'osl-repos::elrepo'
# or resource
osl_repos_elrepo 'default'
Configure the default suite of Alma repos:
# via recipe
include_recipe 'osl-repos::alma'
# or resource
osl_repos_alma 'default'
Disable or enable a specific repo on creation (In this case PowerTools):
osl_repos_alma 'default' do
powertools false
end
Disable or enable a specific repo after including the recipe or initializing the resource:
edit resource(:osl_repos_alma, 'default') do
powertools false
end
- Fork the repository on Github
- Create a named feature branch (like
username/add_component_x
) - Write tests for your change
- Write your change
- Run the tests, ensuring they all pass
- Submit a Pull Request using Github
- Author:: Oregon State University [email protected]
Copyright:: 2020, Oregon State University
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.