{"id":21721472,"url":"https://github.com/informaticsmatters/ansible-role-infrastructure-data","last_synced_at":"2026-04-18T13:38:28.281Z","repository":{"id":46814809,"uuid":"234515177","full_name":"InformaticsMatters/ansible-role-infrastructure-data","owner":"InformaticsMatters","description":"An Ansible Role to configure the infrastructure database","archived":false,"fork":false,"pushed_at":"2023-01-24T23:28:12.000Z","size":30,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-25T18:43:24.559Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/InformaticsMatters.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2020-01-17T09:26:21.000Z","updated_at":"2021-01-11T20:51:16.000Z","dependencies_parsed_at":"2023-02-14T02:31:12.896Z","dependency_job_id":null,"html_url":"https://github.com/InformaticsMatters/ansible-role-infrastructure-data","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/InformaticsMatters%2Fansible-role-infrastructure-data","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/InformaticsMatters%2Fansible-role-infrastructure-data/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/InformaticsMatters%2Fansible-role-infrastructure-data/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/InformaticsMatters%2Fansible-role-infrastructure-data/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/InformaticsMatters","download_url":"https://codeload.github.com/InformaticsMatters/ansible-role-infrastructure-data/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244693924,"owners_count":20494533,"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":[],"created_at":"2024-11-26T02:17:01.763Z","updated_at":"2026-04-18T13:38:28.249Z","avatar_url":"https://github.com/InformaticsMatters.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"Ansible Role - informaticsmatters.infrastructure_data\n=====================================================\n\n![lint](https://github.com/InformaticsMatters/ansible-role-infrastructure-data/workflows/lint/badge.svg)\n\n![GitHub release (latest by date)](https://img.shields.io/github/v/release/informaticsmatters/ansible-role-infrastructure-data)\n![Ansible Role](https://img.shields.io/ansible/role/45912)\n\n[![CodeFactor](https://www.codefactor.io/repository/github/informaticsmatters/ansible-role-infrastructure-data/badge)](https://www.codefactor.io/repository/github/informaticsmatters/ansible-role-infrastructure-data)\n\nA Kubernetes-based Role for the configuration of a pre-deployed infrastructure.\nThis role provides actions to add, remove and alter PostgreSQL databases\nin the infrastructure deployment.\ncluster.\n\nRequirements\n------------\n\n-   Kubernetes\n\nRole Variables\n--------------\n\n    # An infrastructure configuration action (an action on the database).\n    # One of: -\n    #\n    # - 'create' To create a database and owner\n    # - 'delete' To delete a database and owner\n    # - 'alter' To alter a database owners's password\n    #\n    # The infrastructure must be deployed before this role is executed.\n    # The user must also have a destination namespace, where secrets\n    # will be deployed by this role.\n    id_action: create\n    \n    # The namespace of the deployed infrastructure,\n    # where the database can be expected to be found, along with\n    # its secrets.\n    # (required for all actions)\n    id_infra_namespace: ''\n    \n    # Variables to control the chosen action: -\n    #\n    # The database name\n    # (required for all actions)\n    id_db: ''\n    \n    # The user's namespace and service account\n    # (required for 'create' and 'alter')\n    #\n    # A secret called 'database-secrets-\u003cid_db\u003e' will be deposited\n    # in the user's namespace and it will contain the following fields: -\n    #\n    # - database_name\n    # - database_user\n    # - database_user_password\n    id_db_user_namespace: ''\n    \n    # The user's namespace service account\n    # (required for all actions)\n    # The config Jobs run in the user's namespace with this service account.\n    id_db_user_namespace_sa: ''\n    \n    # The database user (owner)\n    # (required for 'create' and 'alter')\n    # Randomly generated if not defined\n    id_db_user: \"{{ lookup('password', '/dev/null length=8 chars=ascii_letters') }}\"\n    \n    # The database user password\n    # (required for 'create' and 'alter')\n    # Randomly generated if not defined\n    id_db_user_password: \"{{ lookup('password', '/dev/null length=12 chars=ascii_letters,digits') }}\"\n\n    # On removal the secrets (in the user namespace)\n    # are normally expected to exist. If they do not\n    # (i.e. you've deleted them by accident) then\n    # set the following to 'no' to skip the built-in assertion.\n    id_check_user_secrets_on_delete: yes\n    \nDependencies\n------------\n\n-   (none)\n\nExample Playbook\n----------------\n\n**NOTE** The example below assumes that you have a running Kubernetes\ncluster.\n\n    - hosts: servers\n      tasks:\n      - include_role:\n          name: informaticsmatters.infrastructure_data\n        vars:\n          id_action: create\n          id_db: blob\n          id_db_user: alan\n          id_db_user_password: blob1234\n          id_db_user_namespace: example\n          id_db_user_namespace_sa: blob\n          id_infra_namespace: im-infra\n\nLicense\n-------\n\nApache 2.0 License\n\nAuthor Information\n------------------\n\nalanbchristie\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finformaticsmatters%2Fansible-role-infrastructure-data","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finformaticsmatters%2Fansible-role-infrastructure-data","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finformaticsmatters%2Fansible-role-infrastructure-data/lists"}