Git Product home page Git Product logo

goreplay-role's Introduction

Logo

Build Status Ansible Galaxy

GoReplay Ansible role

This ansible role installs and configure GoReplay. Supports debian stretch and buster.

Getting Started

These instructions will get you a copy of the role for your ansible playbook. Once launched, it will install the GoReplay utility as a service in your Debian system.

Prerequisities

Ansible 5.2.X version installed. Inventory destination should be a Debian environment.

For testing purposes, Molecule with Vagrant as driver (with landrush plugin) and VirtualBox as provider.

Installing

Create or add to your roles dependency file (e.g requirements.yml):

- src: idealista.goreplay_role
  version: 2.0.0
  name: goreplay

Install the role with ansible-galaxy command:

ansible-galaxy install -p roles -r requirements.yml -f

Usage

To enable GoReplay and replicate traffic on another host override the following variables

goreplay_input: '"--input-raw :80"'
goreplay_output: '"--output-http http://test01:80"'

To save it to a file

goreplay_input: '"--input-raw :80"'
goreplay_output: "--output-file={{ goreplay_output_dir }}/requests.gor"

!Stop GoReplay to retrieve the file, otherwise you could lost last requests https://github.com/buger/gor/wiki/Saving-and-Replaying-from-file#buffered-file-output

goreplay_service_state: stopped

Or stop the service manually

ssh user@host
sudo service goreplay stop

Or start the service with a low flush interval

goreplay_input: '"--input-raw :80"'
goreplay_output: "--output-file={{ goreplay_output_dir }}/requests.gor"
goreplay_options:
  - output-file-flush-interval 0m1s

Testing

molecule test

Built With

Ansible

Versioning

For the versions available, see the tags on this repository.

Additionaly you can see what change in each version in the CHANGELOG.md file.

Authors

See also the list of contributors who participated in this project.

License

Apache 2.0 License

This project is licensed under the Apache 2.0 license - see the LICENSE file for details.

Contributing

Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.

Acknowledgments

goreplay-role's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

goreplay-role's Issues

Use molecule 3 and goss in tests

Prerequisites

Description

The tests we are using here are outdated, they should support molecule 3 and goss instead of testinfra.

Steps to Reproduce

N/A

Expected behavior:
Tests with molecule 3 and goss

Actual behavior:
Tests with molecule and testinfra

Reproduces how often:
100%

Versions

All

Additional Information

None

[FEATURE] General role update

Description

This role has fall behind our other roles regarding versions, tests and such stuff we've been added over the time:

Why is this needed?

So we keep the role up to date.

Additional Information

See related issues in other roles:

idealista/prometheus_mysqld_exporter_role#25
idealista/mysql_role#70

test

Prerequisites

Description

[Description of the issue]

Steps to Reproduce

  1. [First Step]
  2. [Second Step]
  3. [and so on...]

Expected behavior: [What you expect to happen]

Actual behavior: [What actually happens]

Reproduces how often: [What percentage of the time does it reproduce?]

Versions

The version/s you notice the behavior.

Additional Information

Any additional information, configuration or data that might be necessary to reproduce the issue.

Playbook has url broken and does not work with new versions of ansible

Prerequisites

Description

Playbook has url broken and does not work with new versions of ansible
[Description of the issue]

Steps to Reproduce

N/A

Expected behavior: [What you expect to happen]
Playbook to work with new versions of ansible and not to have package url broken
Actual behavior: [What actually happens]
Playbook has url broken and does not work with new versions of ansible
Reproduces how often: [What percentage of the time does it reproduce?]

Versions

All

Additional Information

None

Add compatibility with Debian 9

Prerequisites

Description

Add compatibility with Debian 9. Our role needs libcap2-bin package to work, and it comes along with Debian 8 but not with Debian 9. Installing it will solve the problem.

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.