bp85 / puppet-mirror_repos Goto Github PK
View Code? Open in Web Editor NEWpuppet module to mirror remote repositories to local
puppet module to mirror remote repositories to local
I’m trying to mirror the gitlab repository but it is very big, i want to mirror only versions I intend to use in my infrastructure.
There is an option to exclude package from reposync
, just add exclude=GLOB
in the config file
class example {
$repo = {
'gitlab' => {
'el8' => {
'baseurl' => 'https://packages.gitlab.com/gitlab/gitlab-ce/el/8/x86_64/',
'gpgkey' => 'https://packages.gitlab.com/gpg.key',
'enabled' => 1,
'exclude' => [
'gitlab-ce-12*',
'gitlab-ce-13*',
'gitlab-ce-14*',
],
},
},
}
class { 'mirror_repos' :
repos => $repo,
[...]
}
}
I’ve made a branch with the fix on my fork:
https://github.com/teluq-pbrideau/puppet-mirror_repos/tree/feat-exclude
but it requires the template to be converted to epp
, so is dependent on other changes I made in PR #7
Once you decide if you want to integrate my changes, i’ll open PR with this change
Currently, the mirror does not delete what is absent in upstream repository.
I had a problem with synchronisation with upstream rocky9 repository
:~# yum update
[...]
===============================================================================================================================================================
Package Architecture Version Repository Size
===============================================================================================================================================================
[...]
Upgrading:
apache-commons-cli noarch 1.5.0-4.module+el9.1.0+13170+43ecddfd appstream 75 k
[...]
Transaction Summary
===============================================================================================================================================================
Install 3 Packages
Upgrade 12 Packages
Remove 3 Packages
Total size: 88 M
Is this ok [y/N]: y
Downloading Packages:
[...]
Running transaction check
No available modular metadata for modular package 'apache-commons-cli-1.5.0-4.module+el9.1.0+13170+43ecddfd.noarch', it cannot be installed on the system
[...]
I had to run manually reposync [...] --delete
, then rerun the createrepo
to fix the problem.
Sed seems to be missing the g on it. sed/-/_/. This fails for redhat since they tend to have multiple - in them.
It’s not that big of a deal, but the binary should be located in/usr/local/sbin
instead of /usr/sbin
. /usr/sbin
should be only used when installing stuff from a package.
Maybe if you do a new major version that require breaking changes, (like the change I suggested to the cronjob: #8), you could include this fix?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.