-
Notifications
You must be signed in to change notification settings - Fork 463
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add missing examples for 'removed' functionality #483
Changes from 6 commits
79890bc
556c1ad
411679c
895ecb5
1b4d8ba
073e8f1
0f26779
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,32 @@ | ||
# TODO | ||
$location = $::apt::distcodename ? { | ||
'squeeze' => 'http://backports.debian.org/debian-backports', | ||
'wheezy' => 'http://ftp.debian.org/debian/', | ||
default => 'http://us.archive.ubuntu.com/ubuntu', | ||
} | ||
|
||
if $::apt::distid == 'debian' { | ||
$repos = 'main contrib non-free' | ||
$key = 'A1BD8E9D78F7FE5C3E65D8AF8B48AD6246925553' | ||
$release = $::apt::distcodename | ||
} else { | ||
$repos = 'main universe multiverse restricted' | ||
$key = '630239CC130E1A7FD81A27B140976EAF437D05B5' | ||
$release = $::apt::distcodename | ||
} | ||
|
||
# set up the actual backports | ||
apt::pin { 'backports': | ||
before => Apt::Source['backports'], | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is not needed. The default should more likely be something like: Apt::Setting <||> -> Package <||>
Apt::Key <||> -> Package <||>
We need to put something about this in the docs, that people need to make sure to have There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm almost starting to consider pulling backports back in, just not providing a pin facility and letting people always manage that separately. What do you think? Maybe have a There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. As an aside, pin's are immediately reflected in apt, they do not require an There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. erm, I mean, I think the reason we pulled this out in the first place is it's really just wrapping an |
||
release => "${release}-backports", | ||
priority => 200, | ||
} | ||
|
||
apt::source { 'backports': | ||
location => $location, | ||
release => "${release}-backports", | ||
repos => $repos, | ||
key => { | ||
id => $key, | ||
server => 'pgp.mit.edu', | ||
}, | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#Note: This is generally a bad idea. You should not disable keys. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Not disabling keys, disabling verifying repository signatures / allowing installation of packages from unsigned / unverified sources. |
||
apt::conf { 'unauth': | ||
priority => 99, | ||
content => 'APT::Get::AllowUnauthenticated 1;' | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
apt::conf { 'progressbar': | ||
priority => 99, | ||
content => 'Dpkg::Progress-Fancy "1";', | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,28 @@ | ||
# force.pp | ||
# TODO: Update | ||
#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} ${release_string}", | ||
} |
This file was deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use
archive.ubuntu.com
, without theus.
prefix. That should give people a geographically more desirable mirror.