Comments (9)
Take a look at the latest push. RHEL based distros now include a Yumrepo resource that will ensure the latests version is being pulled from NGINX proper. Let me know if this works for you.
from puppet-nginx.
Yes and no :-)
It WOULD solve the problem, if the variables would be interpolated properly. If I knew how to do the things listed below in Puppet, I would supply a patch, but I failed and don´t want to spend days on that.
- The variables OS and OSRELEASE in the baseurl 'http://nginx.org/packages/OS/OSRELEASE/$basearch/' are not interpreted at all; it´s just plain text
- OS must be downcased (downcase ($::operatingsystem))
- OSRELEASE must be the major version, so .split('.')[0].strip needs to be performed on $::operatingsystemrelease (see https://github.com/stahnma/puppet-module-epel/blob/master/lib/facter/os_maj_version.rb)
I have hardcoded those values to fix the issue for me, but obviously this is a bad hack.
from puppet-nginx.
@drdla Ah, okay. This is easily fixable. Give commit 721fb2f a shot, and let me know how that works. I'm not able to test, but this logic should do it.
from puppet-nginx.
@drdla also, there are several facter variables that prefix with 'lsb' that solve some of these issues that you've worked around to make it easier to manage.
from puppet-nginx.
Still struggling with it.
Baseurl is not interpolated properly. I enclosed the output.
When using double quotes:
notice: /Stage[main]/Nginx::Package::Redhat/Yumrepo[nginx-release]/baseurl: baseurl changed 'http://nginx.org/packages/centos/6/$basearch/' to 'http://nginx.org/packages/centos///'
When using single quotes:
notice: /Stage[main]/Nginx::Package::Redhat/Yumrepo[nginx-release]/baseurl: baseurl changed 'http://nginx.org/packages/centos///' to 'http://nginx.org/packages/${os_type}/${::lsbmajdistrelease}/$basearch/'
from puppet-nginx.
I just figured I didn´t have lsb installed.
Nevertheless, the baseurl now gets output as
http://nginx.org/packages/%24%7Bos_type%7D/%24%7B%3A%3Alsbmajdistrelease%7D/x86_64/repodata/repomd.xml: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404"
from puppet-nginx.
I didn't properly escape the $ in the package. I've done that in a new commit.
Is that output below form the single quote (non-interpolated?) version?
from puppet-nginx.
It´s working now!
Thanks a lot.
from puppet-nginx.
Glad to hear. Sorry it took so many iterations... usually I can test and work out these bugs before release. :)
Cheers!
On Aug 28, 2012, at 3:30 PM, drdla [email protected] wrote:
It´s working now!
Thanks a lot.—
Reply to this email directly or view it on GitHub.
from puppet-nginx.
Related Issues (20)
- documenting the email reverse proxy configuration
- Default package_ensure value is not compatible with current stdlib default for ensure_packages() HOT 3
- stream logging is broken by default HOT 2
- Unable to set valid Unix socket as upstream server
- REFERENCE's internal links are broken HOT 3
- access log inside rewrite_www_to_non_www and rewrite_non_www_to_www HOT 3
- custom stream_log not properly defined HOT 1
- Allow puppetlabs-concat 8 HOT 2
- Good SSL configuration by default HOT 3
- Allow multiple parameters for gzip_proxied
- limit_zone should take Array in addition to String and Undef HOT 1
- proxy_cache_path should allow different values for its settings when an hash is used.
- Documentation of "proxy_set_header Proxy" field
- Remove deprecated `ssl` directive HOT 5
- [DOC] add examples for `limit_conn` and `limit_req`
- Support ssl_reject_handshake and ssl_early_data
- FeatureRequest: AmazonLinux support
- [warn] the "listen ... http2" directive is deprecated, use the "http2" directive instead in [from nginx 1.25.1 onwards] HOT 8
- add `host_core` fixture for acceptance tests
- `nginx::string_mappings` in last tag v6.0.0 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from puppet-nginx.