-
-
Notifications
You must be signed in to change notification settings - Fork 881
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
Fix for apt-transport-https #1014
Changes from 1 commit
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 |
---|---|---|
|
@@ -14,12 +14,12 @@ | |
# | ||
# This class file is not called directly | ||
class nginx::package::debian ( | ||
$manage_repo = true, | ||
$package_name = 'nginx', | ||
$package_source = 'nginx', | ||
$package_ensure = 'present', | ||
$passenger_package_ensure = 'present' | ||
) { | ||
$manage_repo = true, | ||
$package_name = 'nginx', | ||
$package_source = 'nginx', | ||
$package_ensure = 'present', | ||
$passenger_package_ensure = 'present' | ||
) { | ||
|
||
$distro = downcase($::operatingsystem) | ||
|
||
|
@@ -32,6 +32,10 @@ | |
include '::apt' | ||
Exec['apt_update'] -> Package['nginx'] | ||
|
||
ensure_packages([ 'apt-transport-https', 'ca-certificates' ]) | ||
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. Maybe should only ensure it when I've been meaning to rework package management in general, as described in #938 (or possibly a replacement for it) but not sure when I'll have the time. I got some helpful input from @hunner but somehow the notes didn't seem to make it into the PR comments. 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. And yes, you're right, I didn't catch that this was inside
already, so this should be fine... it just wasn't clear from context.
and in the section starting at line 155, an equivalent test for its presence. |
||
|
||
Package['apt-transport-https','ca-certificates'] -> Apt::Source['nginx'] | ||
|
||
case $package_source { | ||
'nginx', 'nginx-stable': { | ||
apt::source { 'nginx': | ||
|
@@ -54,10 +58,6 @@ | |
key => '16378A33A6EF16762922526E561F9B9CAC40B2F7', | ||
} | ||
|
||
ensure_packages([ 'apt-transport-https', 'ca-certificates' ]) | ||
|
||
Package['apt-transport-https','ca-certificates'] -> Apt::Source['nginx'] | ||
|
||
package { 'passenger': | ||
ensure => $passenger_package_ensure, | ||
require => Exec['apt_update'], | ||
|
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.
I don't think this is right -- it's fine to switch things to the new convention in how we're calling classes, but if I'm not mistaken, I think this is just hard-coding everything. So I think it either needs to be passed in from https://github.com/voxpupuli/puppet-nginx/blob/master/manifests/package.pp or else using
nginx::foo
directly. https://github.com/voxpupuli/puppet-nginx/blob/master/manifests/config.pp I think kind of shows how I've been doing that in newer stuff.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.
You're right, I misread this one, it's just indentation, so just fix that back to the original indentation and squash the commit.