Git Product home page Git Product logo

puppet-yum_repo's Introduction

Yum Repo Manager

This module manages yum repositories.

Easily manage YUM repos

Module ensures that your machine only has the repos you want. Purges ones not explicitly defined.

##Example using Hiera

Hiera yaml

---
yum_repos:
  centos:
    descr: 'CentOS-$releasever - Base'
    enabled: '1'
    baseurl: 'http://%{mirror_server}/mirror/centos/$releasever/os/$basearch'
    priority: '3'
    gpgcheck: 0
  centos-updates:
    descr: 'CentOS-$releasever - Updates'
    enabled: '1'
    baseurl: 'http://%{mirror_server}/mirror/centos/$releasever/updates/$basearch'
    priority: '2'
    gpgcheck: 0
  centos-extras:
    descr: 'CentOS-$releasever - Extras'
    enabled: '1'
    baseurl: 'http://%{mirror_server}/mirror/centos/$releasever/extras/$basearch'
    priority: '2'
    gpgcheck: 0

Puppet node conf

node 'default' {
  $mirror_server = 'suse.lightedge.com'
  $yum_repos = hiera_hash('yum_repos', [])
  create_resources('yum_repo::repo',$yum_repos)
}

##Example of just Puppet node conf

node 'myserver' {
  repo::yumrepo {
    'dell-omsa-indep':
      descr => 'Dell OMSA repository - Hardware independent',
      enabled => 1,
      mirrorlist => 'http://linux.dell.com/repo/hardware/latest/mirrors.cgi?osname=el$releasever&basearch=$basearch&native=1&dellsysidpluginver=$dellsysidpluginver',
      gpgcheck => 1,
      gpgkey => "http://linux.dell.com/repo/hardware/latest/RPM-GPG-KEY-dell   http://linux.dell.com/repo/hardware/latest/RPM-GPG-KEY-libsmbios",
      priority => 10,
      proxy => 'http://mylocal_proxy.localdomain:3128',
      require => File['/usr/lib/yum-plugins/dellsysid.py','/etc/yum/pluginconf.d/dellsysid.conf'];
    'dell-omsa-specific':
      descr => 'Dell OMSA repository - Hardware specific',
      enabled => 1,
      mirrorlist => 'http://linux.dell.com/repo/hardware/latest/mirrors.cgi?osname=el$releasever&basearch=$basearch&native=1&sys_ven_id=$sys_ven_id&sys_dev_id=$sys_dev_id&dellsysidpluginver=$dellsysidpluginver',
      gpgcheck => 1,
      gpgkey => "http://linux.dell.com/repo/hardware/latest/RPM-GPG-KEY-dell   http://linux.dell.com/repo/hardware/latest/RPM-GPG-KEY-libsmbios",
      priority => 10,
      proxy => 'http://mylocal_proxy.localdomain:3128',
      require => File['/usr/lib/yum-plugins/dellsysid.py','/etc/yum/pluginconf.d/dellsysid.conf'];
  }
}

puppet-yum_repo's People

Contributors

elmerfud avatar

Watchers

 avatar  avatar

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.