{"id":16880212,"url":"https://github.com/jalseth/ansible-nocloud-metadata-server","last_synced_at":"2025-03-20T02:33:15.825Z","repository":{"id":234988959,"uuid":"615816420","full_name":"jalseth/ansible-nocloud-metadata-server","owner":"jalseth","description":"Ansible role for https://github.com/jalseth/nocloud-metadata-server","archived":false,"fork":false,"pushed_at":"2023-04-11T18:18:38.000Z","size":8,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-11T08:52:53.206Z","etag":null,"topics":["cloud-init","nocloud"],"latest_commit_sha":null,"homepage":"","language":"Jinja","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/jalseth.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}},"created_at":"2023-03-18T19:00:31.000Z","updated_at":"2024-08-23T15:10:50.000Z","dependencies_parsed_at":"2024-04-24T00:45:07.619Z","dependency_job_id":null,"html_url":"https://github.com/jalseth/ansible-nocloud-metadata-server","commit_stats":null,"previous_names":["jalseth/ansible-nocloud-metadata-server"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jalseth%2Fansible-nocloud-metadata-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jalseth%2Fansible-nocloud-metadata-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jalseth%2Fansible-nocloud-metadata-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jalseth%2Fansible-nocloud-metadata-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jalseth","download_url":"https://codeload.github.com/jalseth/ansible-nocloud-metadata-server/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244538749,"owners_count":20468779,"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":["cloud-init","nocloud"],"created_at":"2024-10-13T15:57:53.368Z","updated_at":"2025-03-20T02:33:15.771Z","avatar_url":"https://github.com/jalseth.png","language":"Jinja","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ansible-nocloud-metadata-server\n\nInstalls and configures an instance of the\n[NoCloud Metadata Server](https://github.com/jalseth/nocloud-metadata-server).\n\n## Installation\n\n```sh\nansible-galaxy install jalseth.nocloud_metadata_server\n```\n\n### Python dependencies\n\n- `jmespath` for JSON parsing\n\n\n```sh\npip install --user jmespath\n```\n\n## Usage\n\nYou may wish to configure a server with multiple instances of the NoCloud\nMetadata server, such as separating instances per VLAN that serve different\nserver types. The example below demonstrates such a configuration.\n\n```yaml\nname: Configure NoCloud Metadata Server\nhosts: your.host.name\nbecome: true\ntasks:\n- name: Install NMS server binary\n  include_role:\n    name: jalseth.nocloud_metadata_server\n  vars:\n    nocloud_metadata_server_enable_systemd: false\n    nocloud_metadata_server_config: {}\n\n- name: Configure NMS instances\n  include_role:\n    name: jalseth.nocloud_metadata_server\n  vars:\n    nocloud_metadata_server_systemd_service_name: \"nocloud-metadata-server-{{ nms.name }}\"\n    nocloud_metadata_server_systemd_service_file_path: \"/lib/systemd/system/nocloud-metadata-server-{{ nms.name}}.service\"\n    nocloud_metadata_server_config_file_path: \"/etc/nocloud-metadata-server-{{ nms.name }}.yaml\"\n    nocloud_metadata_server_config: \"{{ nms.config }}\"\n  with_items:\n  - name: vlan123\n    config:\n      listenAddress: \"10.10.123.2\"\n      matchPatterns: [\"123\"]\n      instanceConfig:\n        hostname: onetwothree\n        enableInstanceIDSuffix: true\n        enableHostnameSuffix: true\n  - name: vlan234\n    config:\n      listenAddress: \"10.10.234.2\"\n      matchPatterns: [\"234\"]\n      instanceConfig:\n        hostname: twothreefour\n        enableInstanceIDSuffix: true\n        enableHostnameSuffix: true\n  loop_control:\n    loop_var: nms\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjalseth%2Fansible-nocloud-metadata-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjalseth%2Fansible-nocloud-metadata-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjalseth%2Fansible-nocloud-metadata-server/lists"}