{"id":28109097,"url":"https://github.com/workleap/ansible-role-eventstore","last_synced_at":"2026-02-13T17:33:02.370Z","repository":{"id":46277874,"uuid":"246637489","full_name":"workleap/ansible-role-eventstore","owner":"workleap","description":"Ansible role to install and configure EventStore on Linux.","archived":false,"fork":false,"pushed_at":"2025-02-17T16:20:02.000Z","size":24,"stargazers_count":0,"open_issues_count":2,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-31T23:54:43.717Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/workleap.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2020-03-11T17:31:46.000Z","updated_at":"2021-11-04T13:46:50.000Z","dependencies_parsed_at":"2025-05-14T03:11:26.600Z","dependency_job_id":"1070bc43-eb38-4e76-a3ae-e6622ab65ac3","html_url":"https://github.com/workleap/ansible-role-eventstore","commit_stats":null,"previous_names":["gsoft-inc/ansible-role-eventstore"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/workleap/ansible-role-eventstore","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/workleap%2Fansible-role-eventstore","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/workleap%2Fansible-role-eventstore/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/workleap%2Fansible-role-eventstore/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/workleap%2Fansible-role-eventstore/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/workleap","download_url":"https://codeload.github.com/workleap/ansible-role-eventstore/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/workleap%2Fansible-role-eventstore/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29413406,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-13T06:24:03.484Z","status":"ssl_error","status_checked_at":"2026-02-13T06:23:12.830Z","response_time":78,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":[],"created_at":"2025-05-14T02:31:37.346Z","updated_at":"2026-02-13T17:33:02.365Z","avatar_url":"https://github.com/workleap.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Ansible EventStoreDB Role\n\nAn Ansible role that installs and configures a Linux machine to be used as an [EventStoreDB server](https://eventstore.com).\n\n[See usage examples here.](https://github.com/gsoft-inc/ansible-role-eventstore-example)\n\n## Requirements\n\nUbuntu 14.04 (Trusty) LTS and up.\n\n## Role Variables\n\nAvailable variables are listed below, along with default values (see `defaults/main.yml`):\n\n```yaml\neventstore_version: 20.10.4\neventstore_admin_password: changeit\neventstore_admin_new_password: null\neventstore_config_file: \"{{ role_path }}/templates/eventstore.conf.j2\"\neventstore_wait_for_http: true\neventstore_wait_for_http_timeout: 30\neventstore_generate_node_certitificate: false\neventstore_certificate_path: /etc/eventstore/certs\neventstore_ca_key_path: ./ca/ca.key\neventstore_ca_cert_path: ./ca/ca.crt\neventstore_node_cert_days: 365\neventstore_node_cert_out: ./node\neventstore_node_cert_ip_addresses:\n  - 127.0.0.1\n  - \"{{ ansible_default_ipv4.address }}\"\neventstore_node_cert_dns_names:\n  - localhost\n  - \"{{ inventory_hostname }}\"\n```\n\n## Configuration\n\nBy default, the configuration file (_eventstore.conf_) is barebone as follows:\n```yaml\n---\nClusterSize: 1\n```\n\n## Security\n\nUnlike previous versions, EventStoreDB v20+ is secure by default. It means that you have to supply valid certificates and configuration for the database node to work.\n\n**This role assumes the CA certificate is already present our your machine.**  [See this repo for examples](https://github.com/gsoft-inc/ansible-role-eventstore-example) on how you could provision your certs before executing this role.\n\n### Node certificates\n\nIf you wish to generate the node certificates with the role, set `eventstore_generate_node_certitificate: true`.\nCertificate generation will follow the default values as follows (overridable):\n```yaml\neventstore_certificate_path: /etc/eventstore/certs\neventstore_ca_key_path: ./ca/ca.key\neventstore_ca_cert_path: ./ca/ca.crt\neventstore_node_cert_days: 365\neventstore_node_cert_out: ./node\neventstore_node_cert_ip_addresses:\n  - 127.0.0.1\n  - \"{{ ansible_default_ipv4.address }}\"\neventstore_node_cert_dns_names:\n  - localhost\n  - \"{{ inventory_hostname }}\"\n```\nThis will in turn generate the following files:\n```\n/etc/eventstore/certs/node/node.key\n/etc/eventstore/certs/node/node.crt\n```\nwith SANs matching loopback IP address/DNS, default IP address (eth0 interface) and hostname DNS.\n\n## Example Playbook\n\nModifying the configuration is as easy as creating your own YAML file and specifying the path with the `eventstore_config_file` variable. For example:\n\nExample folder structure:\n\n```\n- playbook.yml\n- files/eventstore.conf.j2\n```\n\nExample contents for `eventstore.conf.j2`:\n\n** See [the official configuration documentation](https://developers.eventstore.com/server/v20.10/introduction/#getting-started) for all the possible options. **\n\n```yaml\n# Certificates configuration\nCertificateFile: /etc/eventstore/certs/node/node.crt\nCertificatePrivateKeyFile: /etc/eventstore/certs/node/node.key\nTrustedRootCertificatesPath: /etc/eventstore/certs/ca\n\n# Network configuration\nIntIp: {{ ansible_default_ipv4.address }}\nExtIp: {{ ansible_default_ipv4.address }}\nEnableExternalTcp: true\nEnableAtomPubOverHTTP: true\n\n# Cluster gossip\nClusterSize: 3\nDiscoverViaDns: true\nClusterDns: eventstore.dns\n\n# Projections configuration\nRunProjections: All\n```\n\nExample playbook.yml\n\n```yaml\n- hosts: all\n  roles:\n    - eventstore\n\n  vars:\n    eventstore_generate_node_certitificate: true\n    eventstore_config_file: ./files/eventstore.conf.j2\n    eventstore_ca_key: \"{{ lookup('file', 'ca/ca.key') }}\"\n    eventstore_ca_cert: \"{{ lookup('file', 'ca/ca.crt') }}\"\n    eventstore_node_cert_ip_addresses:\n      - 127.0.0.1\n      - \"{{ ansible_default_ipv4.address }}\"\n    eventstore_node_cert_dns:\n      - localhost\n      - \"{{ inventory_hostname }}\"\n      - eventstore.dns\n  pre_tasks:\n    - name: Ensure eventstore group exists\n      ansible.builtin.group:\n        name: eventstore\n        state: present\n\n    - name: Ensure eventstore user exists\n      ansible.builtin.user:\n        name: eventstore\n        state: present\n\n    - name: Create eventstore ca cert folder\n      ansible.builtin.file:\n        path: /etc/eventstore/certs/ca\n        state: directory\n\n    - name: Add eventstore ca cert files\n      ansible.builtin.copy:\n        content: \"{{ item.content }}\"\n        dest: \"{{ item.dest }}\"\n        owner: eventstore\n        group: eventstore\n        mode: '0600'\n      no_log: true\n      loop:\n        - { content: \"{{ eventstore_ca_key }}\", dest: /etc/eventstore/certs/ca/ca.key }\n        - { content: \"{{ eventstore_ca_cert }}\", dest: /etc/eventstore/certs/ca/ca.crt }\n\n    - name: Trust eventstore ca cert\n      ansible.builtin.copy:\n        content: \"{{ eventstore_ca_cert }}\"\n        dest: /usr/local/share/ca-certificates/eventstore-ca.crt\n        mode: '0644'\n      notify:\n        - update trusted ca\n\n  handlers:\n    - name: update trusted ca\n      shell: /usr/sbin/update-ca-certificates\n```\n\n## License\n\nCopyright © 2021, GSoft inc. This code is licensed under the Apache License, Version 2.0. You may obtain a copy of this license at https://github.com/gsoft-inc/gsoft-license/blob/master/LICENSE.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fworkleap%2Fansible-role-eventstore","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fworkleap%2Fansible-role-eventstore","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fworkleap%2Fansible-role-eventstore/lists"}