{"id":16615594,"url":"https://github.com/pschmitt/clouds-yaml-generator","last_synced_at":"2025-10-19T10:11:34.672Z","repository":{"id":141968366,"uuid":"504578166","full_name":"pschmitt/clouds-yaml-generator","owner":"pschmitt","description":"Generate an OpenStack clouds.yaml","archived":false,"fork":false,"pushed_at":"2025-10-16T10:15:04.000Z","size":35,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-17T12:47:31.003Z","etag":null,"topics":["clouds-yaml","openstack"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pschmitt.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"github":["pschmitt"],"custom":["https://www.paypal.com/paypalme/pppschmitt"]}},"created_at":"2022-06-17T15:08:17.000Z","updated_at":"2025-10-16T10:15:08.000Z","dependencies_parsed_at":"2024-03-29T09:50:01.424Z","dependency_job_id":null,"html_url":"https://github.com/pschmitt/clouds-yaml-generator","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/pschmitt/clouds-yaml-generator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pschmitt%2Fclouds-yaml-generator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pschmitt%2Fclouds-yaml-generator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pschmitt%2Fclouds-yaml-generator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pschmitt%2Fclouds-yaml-generator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pschmitt","download_url":"https://codeload.github.com/pschmitt/clouds-yaml-generator/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pschmitt%2Fclouds-yaml-generator/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279778378,"owners_count":26225475,"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","status":"online","status_checked_at":"2025-10-19T02:00:07.647Z","response_time":64,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["clouds-yaml","openstack"],"created_at":"2024-10-12T02:09:56.267Z","updated_at":"2025-10-19T10:11:34.667Z","avatar_url":"https://github.com/pschmitt.png","language":"Shell","funding_links":["https://github.com/sponsors/pschmitt","https://www.paypal.com/paypalme/pppschmitt"],"categories":[],"sub_categories":[],"readme":"# clouds-yaml-gen\n\nGenerate a clouds.yaml file for all projects you have access to.\n\nThis tool can work in two modes:\n\n1. **Legacy mode**: Connects to OpenStack using provided credentials and generates clouds for all accessible projects\n2. **Multi-file mode**: Processes multiple existing clouds.yaml files and extracts connection info to generate project-specific clouds\n\n## Requirements\n\n- [openstack-cli](https://github.com/openstack/python-openstackclient)\n- [yq](https://github.com/mikefarah/yq/)\n\n## Usage\n\n### Legacy Mode (Single Cloud)\n\n```bash\n./clouds-yaml-gen.sh --help\n./clouds-yaml-gen.sh -a https://identity.example.com/v3 -u username -p password\n```\n\n### Multi-File Mode\n\n#### Using credentials from input files (default behavior)\n```bash\n# Outputs to stdout with credentials included by default\n./clouds-yaml-gen.sh clouds1.yaml clouds2.yaml\n\n# Save to specific file\n./clouds-yaml-gen.sh --output /tmp/combined-clouds.yaml clouds1.yaml clouds2.yaml\n\n# Save to default location (~/.config/openstack/clouds.yaml)\n./clouds-yaml-gen.sh --inplace clouds1.yaml clouds2.yaml\n\n# Exclude credentials for security\n./clouds-yaml-gen.sh --no-credentials clouds1.yaml clouds2.yaml\n```\n\n#### Using CLI credentials for multiple files\n```bash\n# Different credentials for each file (in order)\n./clouds-yaml-gen.sh \\\n  --username user1 --password pass1 \\\n  --username user2 --password pass2 \\\n  clouds1.yaml clouds2.yaml\n\n# Custom cloud name prefixes\n./clouds-yaml-gen.sh \\\n  --name production --name staging \\\n  clouds1.yaml clouds2.yaml\n# Result: production_project1, production_project2, staging_project1, staging_project2\n\n# Combined: custom names + credentials\n./clouds-yaml-gen.sh \\\n  --name prod --username admin1 --password secret1 \\\n  --name staging --username admin2 --password secret2 \\\n  clouds1.yaml clouds2.yaml\n\n# Reuse last credential pair for extra files\n./clouds-yaml-gen.sh \\\n  --username user1 --password pass1 \\\n  clouds1.yaml clouds2.yaml clouds3.yaml  # clouds2.yaml and clouds3.yaml both use user1/pass1\n```\n\n#### Override auth URL for all files\n```bash\n./clouds-yaml-gen.sh \\\n  --auth-url https://identity.example.com/v3 \\\n  --username myuser --password mypass \\\n  cloud1.yaml cloud2.yaml\n```\n\n## How It Works\n\n- **Legacy mode**: When no input files are provided, the tool works as before - connecting to a single OpenStack installation and generating entries for all accessible projects.\n\n- **Multi-file mode**: When input files are provided:\n  - Each file's connection information (region, interface, etc.) is extracted\n  - If CLI credentials are provided (`--username`, `--password`, `--auth-url`), they are used for all input files\n  - If no CLI credentials are provided, credentials from each input file are used\n  - Project names are prefixed with the input filename to avoid conflicts (e.g., `cloud1_project1`, `cloud2_project1`)\n  - All configurations are merged into a single output file\n\n## Examples\n\n### Generate from existing clouds.yaml files\n```bash\n# Use credentials from each file\n./clouds-yaml-gen.sh prod-cloud.yaml staging-cloud.yaml\n\n# Override credentials for all files\n./clouds-yaml-gen.sh --username admin --password secret123 \\\n  --auth-url https://keystone.example.com/v3 \\\n  prod-cloud.yaml staging-cloud.yaml\n```\n\n### Legacy single-cloud mode\n```bash\n# Connect directly to OpenStack (outputs to stdout by default)\n./clouds-yaml-gen.sh -a https://identity.mycloud.com/v3 -u john -p passw0rd\n\n# Save to default location\n./clouds-yaml-gen.sh --inplace -a https://identity.mycloud.com/v3 -u john -p passw0rd\n\n# Save to custom location\n./clouds-yaml-gen.sh --output /tmp/mycloud.yaml -a https://identity.mycloud.com/v3 -u john -p passw0rd\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpschmitt%2Fclouds-yaml-generator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpschmitt%2Fclouds-yaml-generator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpschmitt%2Fclouds-yaml-generator/lists"}