Comments (11)
It looks like it's not yet in the repos (only available from source builds):
- https://repo.varnish-cache.org/redhat/ — no 5.x package available yet.
- http://repo.varnish-cache.org/ubuntu/dists/trusty/InRelease - no 5.x package available yet.
from ansible-role-varnish.
See: varnishcache/pkg-varnish-cache#45
from ansible-role-varnish.
Apparently for 5.x, there's a new directory structure: https://repo.varnish-cache.org/pkg/5.0.0/
from ansible-role-varnish.
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.
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.
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.
Looks like there is a repo now... https://packagecloud.io/varnishcache/varnish5#readme-scrollto
from ansible-role-varnish.
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.
Ugh, still bumping into annoying issues, now with Debian 9: varnishcache/pkg-varnish-cache#78
from ansible-role-varnish.
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.
See: #59
from ansible-role-varnish.
Related Issues (20)
- Use 'latest' as package state HOT 2
- Systemd configuration overwritten on update HOT 2
- Use variables for all templated files HOT 3
- Complete listening support (-a) HOT 2
- Varnish 6.6 has a package for Ubuntu 20.04 Focal Fossa HOT 1
- Debian 10/11: varnish.service file defaults used instead of /etc/defaults/varnish HOT 3
- Ubuntu: install from the default repo instead of packagecloud
- systemd unit file in wrong location leads to problems after package updates
- Role doesn't support installation of additional Varnish packages
- Rocky Linux CI currently failing with 'All matches were filtered out by modular filtering' HOT 4
- Ubuntu 22 Jammy; packagecloud does not have release file HOT 1
- /usr/sbin/varnishreload: No such file or directory HOT 2
- "Ensure Varnish VMODs are installed" emits deprecation notice HOT 3
- "Master" released as a version HOT 1
- task "Ensure Varnish services are started and enabled on startup." is skipped on Ubuntu Bionic HOT 1
- Fix bare variable warning in 'Ensure Varnish services are started' task
- Varnish doesn't have package for Ubuntu 20.04 Focal Fossa HOT 16
- Add support for Debian 10 Buster
- Fix role installing Varnish 6.0.x from AppStream on CentOS 8 HOT 4
- Listen protocol not configurable HOT 3
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 ansible-role-varnish.