{"id":20811292,"url":"https://github.com/express42/packer-builder-selectel","last_synced_at":"2025-03-12T04:43:25.066Z","repository":{"id":66323619,"uuid":"96767155","full_name":"express42/packer-builder-selectel","owner":"express42","description":null,"archived":false,"fork":false,"pushed_at":"2017-07-21T08:50:31.000Z","size":38,"stargazers_count":3,"open_issues_count":4,"forks_count":1,"subscribers_count":21,"default_branch":"master","last_synced_at":"2025-01-18T14:46:25.858Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","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/express42.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}},"created_at":"2017-07-10T10:53:12.000Z","updated_at":"2019-04-28T13:49:08.000Z","dependencies_parsed_at":null,"dependency_job_id":"67313943-02df-46e6-8cee-9834076ec611","html_url":"https://github.com/express42/packer-builder-selectel","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/express42%2Fpacker-builder-selectel","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/express42%2Fpacker-builder-selectel/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/express42%2Fpacker-builder-selectel/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/express42%2Fpacker-builder-selectel/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/express42","download_url":"https://codeload.github.com/express42/packer-builder-selectel/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243158972,"owners_count":20245669,"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-17T20:39:53.219Z","updated_at":"2025-03-12T04:43:25.044Z","avatar_url":"https://github.com/express42.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# packer-builder-selectel\nThis plugin is packer builder for Selectel Cloud. It was forked from packer-builder-openstack.\n\n## How to build\n1. Clone repo.\n```\ngit clone git@github.com:express42/packer-builder-selectel.git\ncd packer-builder-selectel\n```\n1. Prepare your Go workspace and get dependencies.\n```\nexport GOPATH=$HOME/go\ngo get\n```\n1. Workaround for https://github.com/hashicorp/packer/pull/3176\n```\nrm -rf $GOPATH/src/github.com/hashicorp/packer/vendor\ngo get\n```\n1. Run build\n```\ngo build\n```\n1. Or run build with output into packer plugins directory.\n```\ngo build -o  ~/.packer.d/plugins/packer-builder-selectel\n```\n\n## How to install\nPlace `packer-builder-selectel` executable into `~/.packer.d/plugins/` directory or run build with `-o` flag.\n```\ngo build -o  ~/.packer.d/plugins/packer-builder-selectel\n```\n\n## How to use\n### Prepare your environment\n1. Log into your VPC control panel `https://\u003c%NNNNN%\u003e.selvpc.ru/auth/`, where \u003c%NNNNN%\u003e is numeric ID of your VPC, e.g. 12345, 54321, etc.\n1. Select `Access` tab `https://\u003c%NNNNN%\u003e.selvpc.ru/access/`.\n1. Click `Download RC-file for user \u003c%username%\u003e`, where \u003c%username%\u003e is your username.\n1. Run command and enter your password for selectel's vpc.\n```\nsource ~/Downloads/rc.sh\n```\n1. Now you can use Selectel API and run `packer` or `openstack` commands.\n\n### Packer builder configuration\n1. See documentation for [packer-builder-openstack](https://www.packer.io/docs/builders/openstack.html). But you should use `\"type\": \"selectel\"`.\n1. See [examples](./examples).\n\n## How to debug\n### General\n1. Run `packer` with env var `PACKER_LOG=1`.\n```\nPACKER_LOG=1 packer build examples/ubuntu.json\n```\n1. You will see debug info inside your console.\n\n### API calls\n1. Run [mitmproxy](https://mitmproxy.org/).\n```\ndocker run -t -i -p 8080:8080 mitmproxy/mitmproxy\n```\n1. Copy mitmproxy CA cert from container to your local computer.\n```\ndocker cp $(docker ps --filter='expose=8080/tcp' -q):/home/mitmproxy/.mitmproxy/mitmproxy-ca-cert.cer ./\n```\n1. Install `mitmproxy-ca-cert.cer` as trusted CA cerificate into your OS.\n1. Run `packer` with env vars `HTTP_PROXY` and `HTTPS_PROXY`.\n```\nHTTP_PROXY=http://127.0.0.1:8080/ HTTPS_PROXY=$http_proxy packer build examples/ubuntu.json\n```\n1. You will see requests to api in your container's shell.\n\n## How to contribute\n1. Look for issue you want to fix in [bug tracker](https://github.com/express42/packer-builder-selectel/issues).\n1. Fork repo.\n1. Fix code.\n1. Make Pull Request.\n1. Mention fixed issues.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fexpress42%2Fpacker-builder-selectel","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fexpress42%2Fpacker-builder-selectel","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fexpress42%2Fpacker-builder-selectel/lists"}