Giter VIP home page Giter VIP logo

puppet-mirror_repos's People

Contributors

bp85 avatar loooooom avatar spakka avatar

Stargazers

 avatar

Watchers

 avatar

puppet-mirror_repos's Issues

Add exclude option to repo

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

Delete old files from the repository

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.

binary in `/usr/sbin`

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?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.