Skip to content

visibilityspots/puppet-yum_repo_server

Repository files navigation

puppet-yum-repo-server module Build Status

A puppet-module which configures the yum-repo-server

The generated yum-repo-server directory needs to be packaged to an rpm package which has to be uploaded to an available repository so the puppet module can install it.

I used the puppet-jetty to configure a jetty server. The rpm of jetty can be found on my packagecloud.io as described beneath.

You could use for example my packagecloud.io repository which you can install on CentOS by:

$ curl https://packagecloud.io/install/repositories/visibilityspots/packages/script.rpm | sudo bash

Tested on a CentOS 6.5 machine using puppet 3.5.1, ruby 1.8.7 and jetty 9.1.3

Options (and their defaults)

  $pkg_name                             = 'yum-repo-server'
  $server_type                          = 'jetty'
  $db_host                              = 'localhost'
  $db_name                              = 'rpm_db'
  $db_user                              = undef
  $db_password                          = undef
  $db_port                              = '27017'
  $graphite_host                        = undef
  $graphite_port                        = '2003'
  $statsd_host                          = undef
  $statsd_port                          = '8125'
  $type                                 = undef
  $scheduler_poolSize                   = '10'
  $metadata_tmp_dir                     = undef
  $metadata_outdated_survival_time      = '5'
  $scheduler_delay                      = '10'
  $scheduler_delete_files_delay_minutes = '10'
  $scheduler_delete_files_cron          = '*/15 * * * * *'
  $pam_service_name                     = 'password-auth'
  $whitelist                            = 'localhost'
  $security_loadbalancer_ips            = undef
  $protected_repos                      = undef
  $protected_repos_whitelist            = undef

Example

implementation using the defaults or with hiera support:

  node 'yum-repo-server' {
    include yum_repo_server
  }

implementation with custom values without hiera support:

  node 'yum-repo-server' {
    class {
      'yum_repo_server':
        pkg_name => 'yum-repo-server',
        db_host  => 'localhost',
    }
  }

About

A puppet module which manages the installation and configuration of a yum-repo-cservice

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published