Giter Club home page Giter Club logo

Comments (9)

jfryman avatar jfryman commented on June 27, 2024

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.

drdla avatar drdla commented on June 27, 2024

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.

  1. 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
  2. OS must be downcased (downcase ($::operatingsystem))
  3. 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.

jfryman avatar jfryman commented on June 27, 2024

@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.

jfryman avatar jfryman commented on June 27, 2024

@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.

drdla avatar drdla commented on June 27, 2024

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.

drdla avatar drdla commented on June 27, 2024

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.

jfryman avatar jfryman commented on June 27, 2024

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.

drdla avatar drdla commented on June 27, 2024

It´s working now!
Thanks a lot.

from puppet-nginx.

jfryman avatar jfryman commented on June 27, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.