Skip to content
This repository was archived by the owner on Feb 13, 2023. It is now read-only.

Commit b8a4c8a

Browse files
committed
Update geerlingguy.varnish role to latest version to resolve Ansible 2.9 incompatibility.
1 parent 5095f80 commit b8a4c8a

File tree

11 files changed

+24
-24
lines changed

11 files changed

+24
-24
lines changed

provisioning/requirements.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,4 +78,4 @@
7878
- src: geerlingguy.solr
7979
version: 5.0.0
8080
- src: geerlingguy.varnish
81-
version: 3.0.0
81+
version: 3.0.1

provisioning/roles/geerlingguy.varnish/.travis.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ env:
1111
- MOLECULE_DISTRO: ubuntu1804
1212
- MOLECULE_DISTRO: ubuntu1604
1313
- MOLECULE_DISTRO: debian9
14-
- MOLECULE_DISTRO: debian8
1514

1615
- MOLECULE_DISTRO: centos7
1716
MOLECULE_PLAYBOOK: playbook-41.yml

provisioning/roles/geerlingguy.varnish/README.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,15 @@ Services that will be started at boot and should be running after this role is c
7373

7474
varnish_packagecloud_repo_yum_repository_priority: "1"
7575

76-
The `yum` priority for the Packagecloud repository used to install Varnish. Setting this explicitly forces yum to use the Packagecloud repositories to install Varnish even in environments (e.g. Amazon Linux) where other repositories may have higher priorities than the default.
76+
(RedHat/CentOS only) The `yum` priority for the Packagecloud repository used to install Varnish. Setting this explicitly forces yum to use the Packagecloud repositories to install Varnish even in environments (e.g. Amazon Linux) where other repositories may have higher priorities than the default.
77+
78+
varnish_apt_repo: deb https://packagecloud.io/varnishcache/{{ varnish_packagecloud_repo }}/{{ ansible_distribution | lower }}/ {{ ansible_distribution_release }} main
79+
80+
(Debian/Ubuntu only) The `repo` for the apt repository.
81+
82+
varnish_yum_repo_baseurl: https://packagecloud.io/varnishcache/{{ varnish_packagecloud_repo }}/el/{{ ansible_distribution_major_version|int }}/$basearch
83+
84+
(RedHat/CentOS only) The `baseurl` for the yum repository.
7785

7886
varnish_backends:
7987
apache:

provisioning/roles/geerlingguy.varnish/defaults/main.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,12 @@ varnish_enabled_services:
2727
# Make sure Packagecloud repo is used on RHEL/CentOS.
2828
varnish_packagecloud_repo_yum_repository_priority: "1"
2929

30+
# Only used on RedHat / CentOS.
31+
varnish_yum_repo_baseurl: https://packagecloud.io/varnishcache/{{ varnish_packagecloud_repo }}/el/{{ ansible_distribution_major_version|int }}/$basearch
32+
33+
# Only used on Debian / Ubuntu.
34+
varnish_apt_repo: deb https://packagecloud.io/varnishcache/{{ varnish_packagecloud_repo }}/{{ ansible_distribution | lower }}/ {{ ansible_distribution_release }} main
35+
3036
# Optionally define additional backends.
3137
# varnish_backends:
3238
# apache:

provisioning/roles/geerlingguy.varnish/meta/main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ galaxy_info:
66
description: Varnish for Linux.
77
company: "Midwestern Mac, LLC"
88
license: "license (BSD, MIT)"
9-
min_ansible_version: 2.4
9+
min_ansible_version: 2.5
1010
platforms:
1111
- name: EL
1212
versions:
@@ -26,7 +26,7 @@ galaxy_info:
2626
- varnish
2727
- cache
2828
- proxy
29-
- reverse-proxy
29+
- reverse
3030
- performance
3131
- loadbalancer
3232
- balancer

provisioning/roles/geerlingguy.varnish/molecule/default/tests/test_default.py

Lines changed: 0 additions & 14 deletions
This file was deleted.

provisioning/roles/geerlingguy.varnish/molecule/default/yaml-lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
extends: default
33
rules:
44
line-length:
5-
max: 160
5+
max: 180
66
level: warning

provisioning/roles/geerlingguy.varnish/tasks/setup-Debian.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
- name: Add packagecloud.io Varnish apt repository.
1313
apt_repository:
14-
repo: "deb https://packagecloud.io/varnishcache/{{ varnish_packagecloud_repo }}/{{ ansible_distribution | lower }}/ {{ ansible_distribution_release }} main"
14+
repo: "{{ varnish_apt_repo }}"
1515
state: present
1616

1717
- name: Ensure Varnish is installed.

provisioning/roles/geerlingguy.varnish/tasks/setup-RedHat.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
yum_repository:
1111
name: varnishcache_{{ varnish_packagecloud_repo }}
1212
description: Varnish Cache packagecloud.io repository.
13-
baseurl: https://packagecloud.io/varnishcache/{{ varnish_packagecloud_repo }}/el/{{ ansible_distribution_major_version|int }}/$basearch
13+
baseurl: "{{ varnish_yum_repo_baseurl }}"
1414
repo_gpgcheck: false
1515
gpgcheck: false
1616
enabled: true
@@ -25,6 +25,7 @@
2525
args:
2626
warn: false
2727
when: varnish_packagecloud_repo_addition.changed
28+
tags: ['skip_ansible_lint']
2829

2930
- name: Ensure Varnish is installed.
3031
yum:

provisioning/roles/geerlingguy.varnish/templates/default.vcl.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{% if varnish_version | version_compare('4.0', '>=') %}
1+
{% if varnish_version is version('4.0', '>=') %}
22
vcl 4.0;
33
{% endif %}
44

0 commit comments

Comments
 (0)