GithubHelp home page GithubHelp logo

Comments (11)

geerlingguy avatar geerlingguy commented on June 2, 2024

It looks like it's not yet in the repos (only available from source builds):

from ansible-role-varnish.

geerlingguy avatar geerlingguy commented on June 2, 2024

See: varnishcache/pkg-varnish-cache#45

from ansible-role-varnish.

geerlingguy avatar geerlingguy commented on June 2, 2024

Apparently for 5.x, there's a new directory structure: https://repo.varnish-cache.org/pkg/5.0.0/

from ansible-role-varnish.

geerlingguy avatar geerlingguy commented on June 2, 2024

Got it working on CentOS 6/7:

$ sudo docker exec --tty "$(cat ${container_id})" env TERM=xterm varnishd -V
varnishd (varnish-5.0.0 revision 99d036f)
Copyright (c) 2006 Verdens Gang AS
Copyright (c) 2006-2015 Varnish Software AS

from ansible-role-varnish.

geerlingguy avatar geerlingguy commented on June 2, 2024

And on Ubuntu 16/14:

$ sudo docker exec --tty "$(cat ${container_id})" env TERM=xterm varnishd -V
varnishd (varnish-5.0.0 revision 99d036f)
Copyright (c) 2006 Verdens Gang AS
Copyright (c) 2006-2015 Varnish Software AS

And Debian 8:

0.09s$ sudo docker exec --tty "$(cat ${container_id})" env TERM=xterm varnishd -V
varnishd (varnish-5.0.0 revision 99d036f)
Copyright (c) 2006 Verdens Gang AS
Copyright (c) 2006-2015 Varnish Software AS

from ansible-role-varnish.

geerlingguy avatar geerlingguy commented on June 2, 2024

Now, the trick is to be able to support both 4.x and 5.x at the same time. I'll have to have two sets of install tasks for both RedHat and Debian unless and until Varnish adds back in normal yum/apt repos...

from ansible-role-varnish.

geerlingguy avatar geerlingguy commented on June 2, 2024

Looks like there is a repo now... https://packagecloud.io/varnishcache/varnish5#readme-scrollto

from ansible-role-varnish.

mathieumd avatar mathieumd commented on June 2, 2024

It seems that starting with 5.0, the official repo is now at packagecloud.io, for both Debian and RHEL.

Something like that should do it for the bare installation on Debian:

- name: Add packagecloud.io apt key.
  apt_key:
    url: https://packagecloud.io/varnishcache/varnish5/gpgkey
    state: present
  when: ansible_distribution_release != "xenial" and varnish_version|int >= 5

- name: Add Varnish apt repository.
  apt_repository:
    repo: "deb https://repo.varnish-cache.org/{{ ansible_distribution | lower }}/ {{ ansible_distribution_release }} varnish-{{ varnish_version }}"
    state: present
  when: ansible_distribution_release != "xenial" and varnish_version|int < 5

- name: Add Varnish 5+ apt repository.
  apt_repository:
    repo: "deb https://packagecloud.io/varnishcache/varnish5/{{ ansible_distribution | lower }}/ {{ ansible_distribution_release }} main"
    state: present
  when: ansible_distribution_release != "xenial" and varnish_version|int >= 5

Tested and validated for debian8 with your (very nice) test.sh.

from ansible-role-varnish.

geerlingguy avatar geerlingguy commented on June 2, 2024

Ugh, still bumping into annoying issues, now with Debian 9: varnishcache/pkg-varnish-cache#78

from ansible-role-varnish.

geerlingguy avatar geerlingguy commented on June 2, 2024

I'm just about ready to push up a branch based off @mathieumd's earlier work, that allows any version to be set for either RHEL, Ubuntu, or Debian. However, I won't be able to add Debian 9 support until the issue above is fixed :(

from ansible-role-varnish.

geerlingguy avatar geerlingguy commented on June 2, 2024

See: #59

from ansible-role-varnish.

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.