Added modules

This commit is contained in:
Ciaby 2014-07-11 13:30:23 -05:00
parent c53c931217
commit 59ec520742
646 changed files with 35182 additions and 0 deletions

View file

@ -0,0 +1,2 @@
class { 'apt': }
apt::builddep{ 'glusterfs-server': }

View file

@ -0,0 +1,2 @@
class { 'apt': }
class { 'apt::debian::testing': }

View file

@ -0,0 +1,2 @@
class { 'apt': }
class { 'apt::debian::unstable': }

View file

@ -0,0 +1,17 @@
# force.pp
# force a package from a specific release
apt::force { 'package1':
release => 'backports',
}
# force a package to be a specific version
apt::force { 'package2':
version => '1.0.0-1',
}
# force a package from a specific release to be a specific version
apt::force { 'package3':
release => 'sid',
version => '2.0.0-1',
}

View file

@ -0,0 +1 @@
class { 'apt': }

6
modules/apt/tests/key.pp Normal file
View file

@ -0,0 +1,6 @@
# Declare Apt key for apt.puppetlabs.com source
apt::key { 'puppetlabs':
key => '4BD6EC30',
key_server => 'pgp.mit.edu',
key_options => 'http-proxy="http://proxyuser:proxypass@example.org:3128"',
}

View file

@ -0,0 +1 @@
include apt::params

5
modules/apt/tests/pin.pp Normal file
View file

@ -0,0 +1,5 @@
# pin a release in apt, useful for unstable repositories
apt::pin { 'foo':
packages => '*',
priority => 0,
}

4
modules/apt/tests/ppa.pp Normal file
View file

@ -0,0 +1,4 @@
class { 'apt': }
# Example declaration of an Apt PPA
apt::ppa{ 'ppa:openstack-ppa/bleeding-edge': }

View file

@ -0,0 +1,4 @@
class { 'apt': }
class { 'apt::release':
release_id => 'karmic'
}

View file

@ -0,0 +1,29 @@
# Declare the apt class to manage /etc/apt/sources.list and /etc/sources.list.d
class { 'apt': }
# Install the puppetlabs apt source
# Release is automatically obtained from lsbdistcodename fact if available.
apt::source { 'puppetlabs':
location => 'http://apt.puppetlabs.com',
repos => 'main',
key => '4BD6EC30',
key_server => 'pgp.mit.edu',
}
# test two sources with the same key
apt::source { 'debian_testing':
location => 'http://debian.mirror.iweb.ca/debian/',
release => 'testing',
repos => 'main contrib non-free',
key => '46925553',
key_server => 'subkeys.pgp.net',
pin => '-10',
}
apt::source { 'debian_unstable':
location => 'http://debian.mirror.iweb.ca/debian/',
release => 'unstable',
repos => 'main contrib non-free',
key => '46925553',
key_server => 'subkeys.pgp.net',
pin => '-10',
}

View file

@ -0,0 +1 @@
include apt::unattended_upgrades