Skip to content

rafaelmendonca/apt_repository

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

# == Class: apt_repository
#
#  A simple module to manage repository of Debian (APT/APTITUDE - /etc/apt/source.list.d).
#  A Debian repository is a set of Debian packages organized in a special 
# directory tree which also contains a few additional files containing indexes and checksums of the packages.
# If a user adds a repository to his /etc/apt/sources.list file, he can easily view and install all the packages available in it just like the packages contained in Debian
#
# === Variables
# [sections] 
#   Which sessions to update to repository. Example: 
#   .........................................
#   sections => ['main', 'contrib'],
#   .........................................
#  *** Default is ['main', 'contrib', 'non-free'],
#   
# [codename] 
#  The codename of distribution. Example (Debian): 
#   .........................................
#   codename => ['wheezy'],
#   .........................................
#  *** Default is value of facter "lsbdistcodename".
# 
# [os] 
#  What system operating ? . Example (Debian): 
#   .........................................
#   os => 'debian',
#   .........................................
#  *** Default is 'debian'
#
# [url_repo] 
#  Is the url of repository ? . Example (Debian): 
#   .........................................
#   url_repo => ['ftp.debian.org'],
#   .........................................
#  *** Default is null.
#
#
# === Examples
#
# How to use a apt_repository.
# 
# class apt_repository {
#        case $::operatingsystem {
#                debian: {
#	  		apt_repository::mirror {'Debian Repository':
#				url_repo => ['ftp.debian.org'],
#       	                        os => 'debian',
#				codename => ['wheezy','wheezy-backports'],
#			}	
#	  		apt_repository::mirror {'Debian Repository':
#				url_repo => ['ftp.br.debian.org'],
#       	                        os => 'debian',
#				codename => ['wheezy'],
#			}	
#
#                }
#                ubuntu: {
#	  		apt_repository::mirror {'Ubuntu Repository':
#				url_repo => ['br.archive.ubuntu.com'],
#       	                        os => 'ubuntu',
#				codename => ['precise','precise-updates'],
#				sections => ['main','contrib'],
#			}	
#
#                }
#        }
#
# === Authors
#
# Rafael Mendonca <rafaelmendonca3f@gmail.com>
# http:/rafaelmendonca.tk
#
# === Copyright
#
# Copyright 2013 Rafael Mendonca.
#

About

Puppet - A simple module to manage repository of Debian (APT/APTITUDE - /etc/apt/source.list).

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors