feat: initial commit
This commit is contained in:
commit
38f495e3f4
457 changed files with 40577 additions and 0 deletions
7
environments/production/thirdparty/apt/examples/backports.pp
vendored
Normal file
7
environments/production/thirdparty/apt/examples/backports.pp
vendored
Normal file
|
@ -0,0 +1,7 @@
|
|||
# Set up a backport for Linux Mint qiana
|
||||
class { 'apt': }
|
||||
class { 'apt::backports':
|
||||
location => 'http://us.archive.ubuntu.com/ubuntu',
|
||||
release => 'trusty-backports',
|
||||
repos => 'main universe multiverse restricted',
|
||||
}
|
3
environments/production/thirdparty/apt/examples/builddep.pp
vendored
Normal file
3
environments/production/thirdparty/apt/examples/builddep.pp
vendored
Normal file
|
@ -0,0 +1,3 @@
|
|||
package { 'glusterfs-server':
|
||||
install_options => 'build-dep',
|
||||
}
|
18
environments/production/thirdparty/apt/examples/debian_testing.pp
vendored
Normal file
18
environments/production/thirdparty/apt/examples/debian_testing.pp
vendored
Normal file
|
@ -0,0 +1,18 @@
|
|||
package { 'debian-keyring':
|
||||
ensure => present,
|
||||
}
|
||||
|
||||
package { 'debian-archive-keyring':
|
||||
ensure => present,
|
||||
}
|
||||
|
||||
apt::source { 'debian_testing':
|
||||
location => 'http://debian.mirror.iweb.ca/debian/',
|
||||
release => 'testing',
|
||||
repos => 'main contrib non-free',
|
||||
pin => '-10',
|
||||
key => {
|
||||
id => 'A1BD8E9D78F7FE5C3E65D8AF8B48AD6246925553',
|
||||
server => 'subkeys.pgp.net',
|
||||
},
|
||||
}
|
18
environments/production/thirdparty/apt/examples/debian_unstable.pp
vendored
Normal file
18
environments/production/thirdparty/apt/examples/debian_unstable.pp
vendored
Normal file
|
@ -0,0 +1,18 @@
|
|||
package { 'debian-keyring':
|
||||
ensure => present,
|
||||
}
|
||||
|
||||
package { 'debian-archive-keyring':
|
||||
ensure => present,
|
||||
}
|
||||
|
||||
apt::source { 'debian_unstable':
|
||||
location => 'http://debian.mirror.iweb.ca/debian/',
|
||||
release => 'unstable',
|
||||
repos => 'main contrib non-free',
|
||||
pin => '-10',
|
||||
key => {
|
||||
id => 'A1BD8E9D78F7FE5C3E65D8AF8B48AD6246925553',
|
||||
server => 'subkeys.pgp.net',
|
||||
},
|
||||
}
|
5
environments/production/thirdparty/apt/examples/disable_keys.pp
vendored
Normal file
5
environments/production/thirdparty/apt/examples/disable_keys.pp
vendored
Normal file
|
@ -0,0 +1,5 @@
|
|||
#Note: This is generally a bad idea. You should not disable verifying repository signatures.
|
||||
apt::conf { 'unauth':
|
||||
priority => 99,
|
||||
content => 'APT::Get::AllowUnauthenticated 1;',
|
||||
}
|
4
environments/production/thirdparty/apt/examples/fancy_progress.pp
vendored
Normal file
4
environments/production/thirdparty/apt/examples/fancy_progress.pp
vendored
Normal file
|
@ -0,0 +1,4 @@
|
|||
apt::conf { 'progressbar':
|
||||
priority => 99,
|
||||
content => 'Dpkg::Progress-Fancy "1";',
|
||||
}
|
28
environments/production/thirdparty/apt/examples/force.pp
vendored
Normal file
28
environments/production/thirdparty/apt/examples/force.pp
vendored
Normal file
|
@ -0,0 +1,28 @@
|
|||
#if you need to specify a release
|
||||
$rel_string = '-t <release>'
|
||||
#else
|
||||
$rel_string = ''
|
||||
|
||||
#if you need to specify a version
|
||||
$ensure = '<version>'
|
||||
#else
|
||||
$ensure = installed
|
||||
|
||||
#if overwrite existing cfg files
|
||||
$config_files = '-o Dpkg::Options::="--force-confnew"'
|
||||
#elsif force use of old files
|
||||
$config_files = '-o Dpkg::Options::="--force-confold"'
|
||||
#elsif update only unchanged files
|
||||
$config_files = '-o Dpkg::Options::="--force-confdef"'
|
||||
#else
|
||||
$config_files = ''
|
||||
|
||||
#if install missing configuration files for the package
|
||||
$config_missing = '-o Dpkg::Options::="--force-confmiss"'
|
||||
#else
|
||||
$config_missing = ''
|
||||
|
||||
package { '<package>':
|
||||
ensure => $ensure,
|
||||
install_options => "${config_files} ${config_missing} ${rel_string}",
|
||||
}
|
5
environments/production/thirdparty/apt/examples/hold.pp
vendored
Normal file
5
environments/production/thirdparty/apt/examples/hold.pp
vendored
Normal file
|
@ -0,0 +1,5 @@
|
|||
apt::pin { 'hold-vim':
|
||||
packages => 'vim',
|
||||
version => '2:7.4.488-5',
|
||||
priority => 1001,
|
||||
}
|
6
environments/production/thirdparty/apt/examples/key.pp
vendored
Normal file
6
environments/production/thirdparty/apt/examples/key.pp
vendored
Normal file
|
@ -0,0 +1,6 @@
|
|||
# Declare Apt key for apt.puppetlabs.com source
|
||||
apt::key { 'puppetlabs':
|
||||
id => 'D6811ED3ADEEB8441AF5AA8F4528B6CD9E61EF26',
|
||||
server => 'keyserver.ubuntu.com',
|
||||
options => 'http-proxy="http://proxyuser:proxypass@example.org:3128"',
|
||||
}
|
3
environments/production/thirdparty/apt/examples/mark.pp
vendored
Normal file
3
environments/production/thirdparty/apt/examples/mark.pp
vendored
Normal file
|
@ -0,0 +1,3 @@
|
|||
apt::mark { 'vim':
|
||||
setting => 'auto',
|
||||
}
|
5
environments/production/thirdparty/apt/examples/pin.pp
vendored
Normal file
5
environments/production/thirdparty/apt/examples/pin.pp
vendored
Normal file
|
@ -0,0 +1,5 @@
|
|||
# pin a release in apt, useful for unstable repositories
|
||||
apt::pin { 'foo':
|
||||
packages => '*',
|
||||
priority => 0,
|
||||
}
|
4
environments/production/thirdparty/apt/examples/ppa.pp
vendored
Normal file
4
environments/production/thirdparty/apt/examples/ppa.pp
vendored
Normal file
|
@ -0,0 +1,4 @@
|
|||
class { 'apt': }
|
||||
|
||||
# Example declaration of an Apt PPA
|
||||
apt::ppa { 'ppa:ubuntuhandbook1/apps': }
|
4
environments/production/thirdparty/apt/examples/release.pp
vendored
Normal file
4
environments/production/thirdparty/apt/examples/release.pp
vendored
Normal file
|
@ -0,0 +1,4 @@
|
|||
apt::conf { 'release':
|
||||
content => 'APT::Default-Release "karmic";',
|
||||
priority => '01',
|
||||
}
|
35
environments/production/thirdparty/apt/examples/source.pp
vendored
Normal file
35
environments/production/thirdparty/apt/examples/source.pp
vendored
Normal file
|
@ -0,0 +1,35 @@
|
|||
# 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 facts.
|
||||
apt::source { 'puppetlabs':
|
||||
location => 'http://apt.puppetlabs.com',
|
||||
repos => 'main',
|
||||
key => {
|
||||
id => '6F6B15509CF8E59E6E469F327F438280EF8D349F',
|
||||
server => 'keyserver.ubuntu.com',
|
||||
},
|
||||
}
|
||||
|
||||
# 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 non-free-firmware',
|
||||
key => {
|
||||
id => 'A1BD8E9D78F7FE5C3E65D8AF8B48AD6246925553',
|
||||
server => 'keyserver.ubuntu.com',
|
||||
},
|
||||
pin => '-10',
|
||||
}
|
||||
apt::source { 'debian_unstable':
|
||||
location => 'http://debian.mirror.iweb.ca/debian/',
|
||||
release => 'unstable',
|
||||
repos => 'main contrib non-free non-free-firmware',
|
||||
key => {
|
||||
id => 'A1BD8E9D78F7FE5C3E65D8AF8B48AD6246925553',
|
||||
server => 'keyserver.ubuntu.com',
|
||||
},
|
||||
pin => '-10',
|
||||
}
|
1
environments/production/thirdparty/apt/examples/unattended_upgrades.pp
vendored
Normal file
1
environments/production/thirdparty/apt/examples/unattended_upgrades.pp
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
# TODO
|
Loading…
Add table
Add a link
Reference in a new issue