{"id":17403099,"url":"https://github.com/thlorenz/vagrant-arch","last_synced_at":"2025-03-29T20:13:44.403Z","repository":{"id":16684022,"uuid":"19440178","full_name":"thlorenz/vagrant-arch","owner":"thlorenz","description":null,"archived":false,"fork":false,"pushed_at":"2016-06-24T20:04:41.000Z","size":17,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-04T20:43:17.247Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://github.com/thlorenz/vagrant-arch","language":"Shell","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/thlorenz.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}},"created_at":"2014-05-05T01:15:01.000Z","updated_at":"2016-08-04T21:36:15.000Z","dependencies_parsed_at":"2022-09-24T09:13:27.728Z","dependency_job_id":null,"html_url":"https://github.com/thlorenz/vagrant-arch","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/thlorenz%2Fvagrant-arch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thlorenz%2Fvagrant-arch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thlorenz%2Fvagrant-arch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thlorenz%2Fvagrant-arch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thlorenz","download_url":"https://codeload.github.com/thlorenz/vagrant-arch/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246237436,"owners_count":20745348,"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-10-16T18:53:09.695Z","updated_at":"2025-03-29T20:13:44.380Z","avatar_url":"https://github.com/thlorenz.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# vagrant arch\n\nSets up arch inside a VirtualBox and applies my dotfiles, so if you want the exact same setup I'm using, do the below:\n\n- install [VirtualBox](https://www.virtualbox.org/wiki/Downloads)\n- install [vagrant](http://www.vagrantup.com/)\n- install [ansible](http://www.ansible.com/home) via `brew install ansible`\n\n```sh\ngit clone https://github.com/thlorenz/vagrant-arch \u0026\u0026 cd vagrant-arch\n./vagrant-up-all.sh\n```\n\nThings should set themselves up and when it's done you can:\n\n```sh\nvagrant ssh\n```\n\n# Compatability\n\nI needed to change a bunch of things when upgrading either of the above tools needed, therefore I'm listing the versions\nof each with which this worked the last time.\n\n```\n➝  vagrant --version\nVagrant 1.8.4\n\n➝  VBoxHeadless --version\nOracle VM VirtualBox Headless Interface 5.0.22\n(C) 2008-2016 Oracle Corporation\nAll rights reserved.\n\n5.0.22r108108\n\n➝  ansible --version\nansible 2.0.2.0\n  config file = /Volumes/d/dev/do/vagrant-arch/ansible.cfg\n    configured module search path = Default w/o overrides\n```\n\n# Problems\n\nIn some cases the `base-devel` package fails to install, not sure how to fix it (could be because of the prompt it gives\nyou or due to some `mount + umount` files present that it can't remove). I ignore this error but if you see red in the\noutput make sure to `pacman -S base-devel` the first time you log into the machine if you want that package. \n\n## Ansible\n\n### direct ansible access\n\nSetup access to the VM by first removing existing entries for the IP of the VM and then authorize our public key. The\npassword is `vagrant`.\n\n```sh\nssh-keygen -f ~/.ssh/known_hosts -R 192.168.50.51\nssh-copy-id -i ~/.ssh/id_rsa.pub vagrant@192.168.50.51\n```\n\nThis command should succeed and thus show that all `ansible` commands can be run manually against the VM.\n\n```sh\nansible arch -m ping -i ansible/hosts -u vagrant\n```\n\n#### ansible config\n\nIn order to not have to provide user and inventory file an `ansible.cfg` has been included which ansible will read\nautomatically.\n\nTherefore you can leave off the inventory and user parameters.\n\n```sh\nansible arch -m ping\n# or\nansible arch -a 'ls -la'\n```\n\n#### running playbook\n\n```sh\nansible-playbook ansible/arch.yml\n```\n\nor run the playbook with all features activated\n\n```\n./ansible-all.sh\n```\n\n## Note\n\nIt assumes you have a nice machine and therefore allocates **1/4 memory** and **all your CPUs** to the box in order to make it\nrun efficiently.\n\nIf that is a problem for you pleas edit the `Vagrantfile` and adapt the `config.vm.provider :virtualbox` section.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthlorenz%2Fvagrant-arch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthlorenz%2Fvagrant-arch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthlorenz%2Fvagrant-arch/lists"}