cleberjsantos.varnish_vmods

varnish_vmods

Build Status Ansible Galaxy Tag

Varnish VMOD checkout from git repository and compile it.

Requirements

  • This role requires Ansible 1.2 or higher.

Role Variables

Available variables are listed below, along with default values (see defaults/main.yml).

# The version to checkout
version: HEAD

# Array of dicts to clone
repos: []

# Destination path to clone
temp_clone: /tmp

# Varnish VMODs destination path installation
VMODDIR: /usr/lib/varnish/vmods

# Varnish source directory (Used with Varnish 3.x)
VARNISHSRC: 

# Do you want to build this repo? 
build: true

# The build configuration command
configure_cmd: "./configure"

# The make build command
make_cmd: make

# The installation command
makeinstall_cmd: make install

Repository variables for checkout and run

# VMOD name
vmod: "libvmod-header"

# If there's autogen.sh script and then want to run
autogen: True # False if there's no autogen.sh script

# Where to clone from?
clone_url: "https://github.com/varnish/libvmod-header.git"

Example Playbook

Example of usage:

- hosts: servers
  roles:
    - { role: cleberjsantos.varnish_vmods, vmod: "libvmod-cookie", autogen: True, clone_url: "https://github.com/lkarsten/libvmod-cookie.git", version: "4.1", tags: [vmod, varnish] }

Custom variables sample:

Eg. you can add custom variables in the group_vars or host_vars.

---
# file: /etc/ansible/group_vars/all

repos:
  - {vmod: "libvmod-cookie", autogen: True, clone_url: "https://github.com/lkarsten/libvmod-cookie.git", version: "4.1" }
  - {vmod: "libvmod-header", autogen: True, clone_url: "https://github.com/varnish/libvmod-header.git", version: "4.1" }

License

GPLv2

Author Information

Cleber J Santos

About

VMOD checkout from git repository and compile it

Install
ansible-galaxy install cleberjsantos.varnish_vmods
GitHub repository
License
gpl-2.0
Downloads
138
Owner
I'm a Full Stack Developer with a solid experience in SysAdmin/DevOps, hands-on experience with Python development, websites and API-driven web apps.