-
-
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
No allowance for custom nginx source? #962
Comments
@CameronMcAuley: I don't know how we'd explicitly allow a custom source easily, but, we do have a proposed PR to rework some of this logic in this. One proposal did include setting an option to not manage the package at all (at which point you could manage it in your site-specific code). That said, if you disable managing the repo and configure a repo with the appropriate source, and set the right nginx version in Does that help answer your question? You're also, of course, welcome to submit a PR that implements the behavior you're describing. |
ps - The proposed PR would be getting rid of |
@wyardley Thanks for the reply! So, am I understanding you correctly - if manage_repo is set to false, the module will search for a package named 'nginx' in a local apt repository (For example - http://askubuntu.com/questions/170348/how-to-create-a-local-apt-repository) configured on my system, and it will install it given that I set the correct version in package_ensure? EDIT: I have created a local apt repository using the guide I linked above, and added a deb named 'nginx.deb' to this repo. When I test this on my vagrant box with apt-get update and apt-get install nginx, it successfully installs from my local repo. I've now changed my puppet code to change manage_repo to false and package_source to 'nginx'. When I reload my vagrant box with the --provision tag to install my nginx module, I get the following error:
What is wrong here? |
As things are now, setting As far as the authentication problem, it looks like a signing problem, but are you sure you're getting the expected nginx version from the repo you configured? You may need to handle importing the repo's GPG key (or disabling gpg checks); the module only configures the repo's gpg key when it's managing the repos. I haven't been using Debian derived distros for a long time, but I think maybe you'll find some helpful troubleshooting info in this comment: Specifically, you may want to take a look at the output of Note also that, barring some apt plugins that pin the package source to a particular repo, you might need to specify the package version explicitly in |
You may have more luck getting help on the Puppet community slack and / or on IRC; as best I can see, the module works as currently intended, though again, we are considering re-working the default package source and some other stuff, you can follow discussion in #938 if you're interested. |
What is the reason for not allowing a custom source for nginx?
I need to use nginx compiled with extra modules (ModSecurity for example), but this doesn't seem to be possible with this module - for example, debian.pp can only use ‘nginx’, 'nginx-stable’, ‘passenger’ or ‘nginx-mainline’ and $manage_repo doesn't appear to do anything if set to false.
Would it be possible to include an option to install from a custom .deb on a repo, say, on an AWS S3 bucket or something similar?
The text was updated successfully, but these errors were encountered: