{"id":20645490,"url":"https://github.com/leboncoin/ansible-role-harbor-api","last_synced_at":"2025-10-10T12:12:45.623Z","repository":{"id":88452082,"uuid":"126957220","full_name":"leboncoin/ansible-role-harbor-api","owner":"leboncoin","description":"An Ansible Role to manage Vmware Harbor API","archived":false,"fork":false,"pushed_at":"2018-03-27T09:32:01.000Z","size":5,"stargazers_count":6,"open_issues_count":0,"forks_count":3,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-03-29T04:03:12.568Z","etag":null,"topics":["ansible","ansible-role","harbor","vmware"],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/leboncoin.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-03-27T08:51:08.000Z","updated_at":"2023-06-21T08:27:15.000Z","dependencies_parsed_at":null,"dependency_job_id":"b91fb906-c750-42e9-94fa-43920ee0c455","html_url":"https://github.com/leboncoin/ansible-role-harbor-api","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leboncoin%2Fansible-role-harbor-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leboncoin%2Fansible-role-harbor-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leboncoin%2Fansible-role-harbor-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leboncoin%2Fansible-role-harbor-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/leboncoin","download_url":"https://codeload.github.com/leboncoin/ansible-role-harbor-api/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249183106,"owners_count":21226142,"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","harbor","vmware"],"created_at":"2024-11-16T16:20:03.422Z","updated_at":"2025-10-10T12:12:45.515Z","avatar_url":"https://github.com/leboncoin.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# [WIP] Ansible Role: Harbor API Codifying\n\n[![License:MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](LICENSE)\n\nAn Ansible Role to manage Harbor API\n\n\n\u003c!-- TOC --\u003e\n\n- [Ansible Role: Harbor API condifying](#wip-ansible-role-harbor-api-condifying)\n- [Requirements](#requirements)\n- [Role Variables](#role-variable)\n- [Usage](#usage)\n    - [Roles](#roles)\n    - [Projects](#projects)\n- [Dependencies](#dependencies)\n- [Example Playbook](#example-playbook)\n- [Contributing](#contributing)\n- [License](#license)\n\u003c!-- /TOC --\u003e\n\n# Requirements\n\nHave one or more [Harbor](https://github.com/vmware/harbor) instances\n\n# Installation\n\nHarbor-API  is an Ansible role distributed globally using [Ansible Galaxy](https://galaxy.ansible.com/). In order to install Harbor-API role you can use the following command.\n\n```\n$ ansible-galaxy install leboncoin.harbor-api\n```\n\n# Role Variables\n\nAvailable variables are listed below, along with default values (see defaults/main.yml):\n\n    harbor_directory_api: \"{{ role_path }}/files/config/\"\n    harbor_directory_api_projects: \"{{ role_path }}/files/config/projects/\"\n\nAnother variables can be used from [harbor.cfg](https://github.com/vmware/harbor/blob/master/make/harbor.cfg), prefixed by *harbor_*\n\n    harbor_auth_mode: ldap_auth\n    harbor_harbor_admin_password: Harbor12345\n\n# Usage\n\nYou can create json files to configure your harbor, based on swagger implementation ([swagger editor]( https://editor.swagger.io/?url=https://raw.githubusercontent.com/vmware/harbor/master/docs/swagger.yaml ))\n\n\n### Sysadmins\n\nResources:\n- Put (/users/{user_id}/sysadmin)\n\n_admins_removed is required because \"harbor api\" doesn't implement the research of admin [#PR4388](https://github.com/vmware/harbor/pull/4388)_\n\nfiles/config/roles.json\n\n    {\n        \"admins\":[\n            \"sysadmin@mycompany.com\"\n        ],\n        \"admins_removed\":[\n            \"oldsysadmin@mycompany.com\"\n        ]\n    }\n\n### Projects\n\nResources:\n- Add (/projects)\n- Put (/projects/{project_id})\n\nfiles/config/projects/myproject.json\n\n    {\n        \"name\": \"myproject\",\n        \"metadatas\": {\n            \"public\": false\n        },\n        \"members\" [\n            developer@mycompany.com\n        ],\n        \"admins\": [\n            sysadmin@mycompany.com\n        ]\n    }\n\n\n# Dependencies\n\nNone.\n\n# Example Playbook\n\nIncluding an example of how to use your role (for instance, with variables passed in as parameters) is always nice for users too:\n\n    - hosts: harbor\n      roles:\n         - { role: leboncoin.harbor } # install harbor instance\n         - { role: leboncoin.harbor-api } # populate api\n\n# Contributing\n\nPlease, see [TODO.md](TODO.md) to get ideas to contribute or implement your own things.\n\n# License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleboncoin%2Fansible-role-harbor-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fleboncoin%2Fansible-role-harbor-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleboncoin%2Fansible-role-harbor-api/lists"}