{"id":19566158,"url":"https://github.com/deveryware/ansible-haproxy","last_synced_at":"2025-04-27T01:31:16.431Z","repository":{"id":34539548,"uuid":"148487834","full_name":"Deveryware/ansible-haproxy","owner":"Deveryware","description":"Installs and configures HAProxy","archived":false,"fork":false,"pushed_at":"2024-09-27T15:38:21.000Z","size":219,"stargazers_count":18,"open_issues_count":4,"forks_count":11,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-04-04T19:23:49.972Z","etag":null,"topics":["ansible","ansible-role","centos","debian","haproxy","ubuntu"],"latest_commit_sha":null,"homepage":"","language":"Jinja","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"devops-coop/ansible-haproxy","license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Deveryware.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-09-12T13:49:39.000Z","updated_at":"2024-09-27T15:38:26.000Z","dependencies_parsed_at":"2023-01-15T07:45:53.149Z","dependency_job_id":null,"html_url":"https://github.com/Deveryware/ansible-haproxy","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Deveryware%2Fansible-haproxy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Deveryware%2Fansible-haproxy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Deveryware%2Fansible-haproxy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Deveryware%2Fansible-haproxy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Deveryware","download_url":"https://codeload.github.com/Deveryware/ansible-haproxy/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251076864,"owners_count":21532592,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ansible","ansible-role","centos","debian","haproxy","ubuntu"],"created_at":"2024-11-11T05:29:54.404Z","updated_at":"2025-04-27T01:31:11.414Z","avatar_url":"https://github.com/Deveryware.png","language":"Jinja","funding_links":[],"categories":[],"sub_categories":[],"readme":"haproxy\n========\n\nInstalls and configures [HAProxy](http://www.haproxy.org/).\n\nVersions\n--------\n\nThe **current** release is [1.5.0](https://github.com/deveryware/ansible-haproxy/tree/v1.4.0).\n\nThe  **next** release is in development (Cf. [the projects tab](https://github.com/Deveryware/ansible-haproxy/projects)).\n\nFeatures\n--------\n\n* Supports CentOS and Debian (Ubuntu should work)\n* Installs HAProxy from official repositories on Debian.\n* Installs HAProxy from EPEL repository on CentOS.\n* Tests via Molecule and Docker\n\nRequirements\n------------\n\nThe python library `jmespath` is required on the control node.\n\nRole Variables\n--------------\n\n* `haproxy_global`\n\n    Global HAProxy settings.\n* `haproxy_defaults`\n\n    Default settings for frontends, backends, and listen proxies.\n* `haproxy_resolvers`\n\n    A list of HAProxy resolvers.\n* `haproxy_backends`\n\n    A list of HAProxy backends.\n* `haproxy_frontends`\n\n    A list of HAProxy frontends.\n* `haproxy_listen`\n\n    A list of listen proxies.\n* `haproxy_logforward`\n\n    A list of log-forward proxies (Only for HAProxy version 2.3 and above).\n* `haproxy_peers`\n\n    A list of peers.\n\nSee [`vars/main.yml`](vars/main.yml) for a complete list of configurable .\n\nSee [the wiki](https://github.com/Deveryware/ansible-haproxy/wiki) for more details.\n\nExample\n-------\n\n```yaml\n- hosts: loadbalancers\n  roles:\n     - role: haproxy\n       haproxy_frontends:\n       - name: 'fe-mysupersite'\n         ip: '123.123.123.120'\n         port: '80'\n         maxconn: '1000'\n         default_backend: 'be-mysupersite'\n       haproxy_backends:\n       - name: 'be-mysupersite'\n         description: 'mysupersite is really cool'\n         servers:\n           - name: 'be-mysupersite-01'\n             ip: '192.168.1.100'\n       log-forward:\n          - name: 'my-syslog-lb'\n            dgrambind:\n              - '127.0.0.1:514' # Listen on UDP IPv4\n            log:\n              - ip: '192.168.1.101'\n                port: 5514\n                sample_range: \"1:2\"\n                facility: \"local0 info\"\n              - ip: '192.168.1.102'\n                port: 5514\n                sample_range: \"3:4\"\n                facility: \"local0 info\"\n```\n\nTesting\n-------\n\nTo test the role you first need to install Molecule with :\n\n```\n$ pip install molecule docker\n```\n\nIf you encounter a problem while installing with pip, install [python-dev](https://stackoverflow.com/a/21530768)\n\nTo run the tests, execute :\n\n```\n$ molecule test\n```\n\nLicense\n------\n\nApache v2\n\nAuthor Information\n------------------\n\nThis role was created in 2014 by Pheromone - Pierre Paul Lefebvre (lefebvre@pheromone.ca).\n\nThis role was forked in 2019 by Deveryware.\n\n[The contributors list](https://github.com/Deveryware/ansible-haproxy/blob/master/AUTHORS)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeveryware%2Fansible-haproxy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdeveryware%2Fansible-haproxy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeveryware%2Fansible-haproxy/lists"}