{"id":20645065,"url":"https://github.com/romanow/ansible-box-packer","last_synced_at":"2025-07-04T01:04:43.546Z","repository":{"id":146004867,"uuid":"229559851","full_name":"Romanow/ansible-box-packer","owner":"Romanow","description":"Virtual box image for local usage with ansible","archived":false,"fork":false,"pushed_at":"2022-11-27T20:36:19.000Z","size":24,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-09T15:54:41.875Z","etag":null,"topics":["packer","ubuntu","vagrant","virtualbox"],"latest_commit_sha":null,"homepage":"","language":"HCL","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/Romanow.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":"2019-12-22T11:51:07.000Z","updated_at":"2022-12-01T14:22:19.000Z","dependencies_parsed_at":null,"dependency_job_id":"f99e86d7-9410-4ee2-8c32-da292ef5458c","html_url":"https://github.com/Romanow/ansible-box-packer","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Romanow/ansible-box-packer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Romanow%2Fansible-box-packer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Romanow%2Fansible-box-packer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Romanow%2Fansible-box-packer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Romanow%2Fansible-box-packer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Romanow","download_url":"https://codeload.github.com/Romanow/ansible-box-packer/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Romanow%2Fansible-box-packer/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263427300,"owners_count":23464840,"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":["packer","ubuntu","vagrant","virtualbox"],"created_at":"2024-11-16T16:18:35.814Z","updated_at":"2025-07-04T01:04:43.479Z","avatar_url":"https://github.com/Romanow.png","language":"HCL","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Vagrant box\n\n[![Build project](https://github.com/Romanow/ansible-box-packer/actions/workflows/build.yml/badge.svg)](https://github.com/Romanow/ansible-box-packer/actions/workflows/build.yml)\n\nСоздание образа Ubuntu 22.04 LTS для `Virtualbox`. Образ содержит:\n\n* пользователь `ansible`/`root` без запроса пароля для sudo;\n* предустановленные пакеты:\n    * openssh-server\n    * wget\n    * fish\n    * python3-pip\n    * virtualbox-guest-utils\n    * software-properties-common\n\n## Сборка\n\nДля сборки требуется token доступа для публикации в [Vagrant Cloud](https://app.vagrantup.com/) -\u003e `Profile`\n-\u003e `Security`.\n\n```shell\n$ echo 'cloud_token = \"\u003cvagrant cloud token\u003e\"' \u003e vars.pkrvars.hcl\n\n$ packer build -var-file=vars.pkrvars.hcl template.pkr.hcl\n```\n\nСобранный образ находится в папке `builds/`, и опубликуется в\nрепозиторий [ansible-box](https://app.vagrantup.com/romanow/boxes/ansible-box).\n\n## Проверка\n\nДля проверки можно запустить [vagrant](vagrant/Vagrantfile):\n\n```shell\n$ vagrant up\n\nBringing machine 'virtualbox' up with 'virtualbox' provider...\n==\u003e virtualbox: Box 'file://../builds/ansible-box-ubuntu-2204.box' could not be found. Attempting to find and install...\n    virtualbox: Box Provider: virtualbox\n    virtualbox: Box Version: \u003e= 0\n==\u003e virtualbox: Box file was not detected as metadata. Adding it directly...\n==\u003e virtualbox: Adding box 'file://../builds/ansible-box-ubuntu-2204.box' (v0) for provider: virtualbox\n    virtualbox: Unpacking necessary files from: file:///Users/aromanov/Develop/packer/ansible-box-packer/builds/ansible-box-ubuntu-2204.box\n==\u003e virtualbox: Successfully added box 'file://../builds/ansible-box-ubuntu-2204.box' (v0) for 'virtualbox'!\n==\u003e virtualbox: Importing base box 'file://../builds/ansible-box-ubuntu-2204.box'...\n==\u003e virtualbox: Matching MAC address for NAT networking...\n==\u003e virtualbox: Setting the name of the VM: vagrant_virtualbox_1667651821168_95104\n==\u003e virtualbox: Clearing any previously set network interfaces...\n==\u003e virtualbox: Preparing network interfaces based on configuration...\n    virtualbox: Adapter 1: nat\n    virtualbox: Adapter 2: hostonly\n==\u003e virtualbox: Forwarding ports...\n    virtualbox: 22 (guest) =\u003e 2222 (host) (adapter 1)\n==\u003e virtualbox: Running 'pre-boot' VM customizations...\n==\u003e virtualbox: Booting VM...\n==\u003e virtualbox: Waiting for machine to boot. This may take a few minutes...\n    virtualbox: SSH address: 127.0.0.1:2222\n    virtualbox: SSH username: ansible\n    virtualbox: SSH auth method: password\n    virtualbox:\n    virtualbox: Inserting generated public key within guest...\n    virtualbox: Removing insecure key from the guest if it's present...\n    virtualbox: Key inserted! Disconnecting and reconnecting using new SSH key...\n==\u003e virtualbox: Machine booted and ready!\n==\u003e virtualbox: Checking for guest additions in VM...\n==\u003e virtualbox: Setting hostname...\n==\u003e virtualbox: Configuring and enabling network interfaces...\n==\u003e virtualbox: Mounting shared folders...\n    virtualbox: /vagrant =\u003e /Users/aromanov/Develop/packer/ansible-box-packer/vagrant\n==\u003e virtualbox: Running provisioner: shell...\n    virtualbox: Running: inline script\n    virtualbox: Hello, World\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fromanow%2Fansible-box-packer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fromanow%2Fansible-box-packer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fromanow%2Fansible-box-packer/lists"}