Skip to content

Commit

Permalink
install v2 by default, documented the proxies directive
Browse files Browse the repository at this point in the history
  • Loading branch information
xavierlacot committed Jan 14, 2021
1 parent 4dddef6 commit 525a849
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 18 deletions.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright (c) 2018 redirection.io
Copyright (c) 2018-2021 redirection.io

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ You may also configure:
* `redirectionio_agent_datadir` (default `/var/lib/redirectionio`): where to store persisted rules
* `redirectionio_agent_cache` (default: `true`): use in-memory cache to speed-up agent matching
* `redirectionio_agent_log` (default: `{}`): log configuration directives - see the [configuration template](./templates/agent.yml.j2) for more details.
* `redirectionio_agent_proxies` (default: `{}`) - see the [configuration reference](https://redirection.io/documentation/developer-documentation/agent-configuration-reference#proxies) for more details.

## Example playbook

Expand Down
12 changes: 6 additions & 6 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,15 @@ redirectionio_agent_datadir: /var/lib/redirectionio
redirectionio_agent_cache: 10000

# Version management
# This allow to choose a specific version for your infrastructure
# Channel can be stable or beta, left empty to use legacy system
redirectionio_agent_channel: ""
# This allows to choose a specific release channel (stable or beta)
redirectionio_agent_channel: "stable"

# Main version of agent, this allow to upgrade safely your system without BC break with a new main version
# Main version of the agent
# This allows to upgrade safely your system without BC break with a new main version
redirectionio_agent_main_version: 2

# Specific version for your agent, use * to use the latest available version
# Version are of the form: [timestamp]:[version]-[build], if you want a specific version like 2.0.0 you should put *:2.0.0-*
# Specific version of the agent. Use * to use the latest available version
# Versions are of the form: [timestamp]:[version]-[build], if you want a specific version like 2.0.0, you should put *:2.0.0-*
redirectionio_agent_version: "*"

# Logging configuration options
Expand Down
12 changes: 5 additions & 7 deletions meta/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,28 +3,26 @@ galaxy_info:
role_name: 'agent'
author: 'redirection.io'
company: "redirection.io"
description: Install redirectionio-agent, a versatile http redirection agent designed to help your SEO
description: Install redirectionio-agent, a versatile http redirection agent and proxy designed to help your SEO
license: MIT
min_ansible_version: 1.6
platforms:
- name: Ubuntu
versions:
- trusty
- xenial
- artful
- bionic
- cuttlefish
- disco
- eoan
- focal
- name: Debian
versions:
- wheezy
- jessie
- stretch
- buster
- name: EL
versions:
- 7
- 6
- 5
- 8
galaxy_tags:
- http
- monitoring
Expand Down
4 changes: 2 additions & 2 deletions tasks/pkg-debian.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@
apt_repository:
repo: "deb https://packages.redirection.io/deb any main"
state: present
when: redirectionio_agent_channel|length == 0
when: redirectionio_agent_main_version == 1

- name: Install redirection.io repository
apt_repository:
repo: "deb https://packages.redirection.io/deb/{{ redirectionio_agent_channel }}/{{ redirectionio_agent_main_version }} any main"
state: present
when: redirectionio_agent_channel|length > 0
when: redirectionio_agent_main_version > 1

- name: Update apt cache
apt:
Expand Down
4 changes: 2 additions & 2 deletions tasks/pkg-redhat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
enabled: yes
gpgcheck: yes
state: present
when: redirectionio_agent_channel|length == 0
when: redirectionio_agent_main_version == 1

- name: Install redirection.io repository
yum_repository:
Expand All @@ -23,7 +23,7 @@
enabled: yes
gpgcheck: yes
state: present
when: redirectionio_agent_channel|length > 0
when: redirectionio_agent_main_version > 1

- name: Update yum cache
yum:
Expand Down

0 comments on commit 525a849

Please sign in to comment.