![]() => default: Checking if box 'ubuntu/hirsute64' version '20210820.0.0' is up to date. => default: Matching MAC address for NAT networking. => default: Importing base box 'ubuntu/hirsute64'. ![]() Bringing machine 'default' up with 'virtualbox' provider. This command will download the ubuntu/hirsuite64 image from the Vagrant registry. You can also run vagrant init ubuntu/hirsute64, and it will generate a new Vagrantfile for you. In this new folder, create a new file named Vagrantfile with these contents: nfigure("2") do |config| No more "…but it works fine on my machine!" Getting startedįirst, install Vagrant on your system and then create a new folder to experiment in. And you can commit your Vagrantfile to Git to ensure your team is testing the exact same environment (because they'll be using the exact same test box). You can repeat this process as many times as you want until you're confident your scripts work under all conditions. You can then delete the box, re-provision it, and re-run your scripts to verify it. You can use it to bring up a virtual machine, provision it using your scripts, and prove that everything works as expected. Launching new cloud servers for testing can be time-consuming and expensive. You can't do it on your own system because you might not be running the operating system you want to test, or you may not have all of the dependencies for what you want to do. ![]() Let's say you want to write Ansible or shell scripts to install Nginx on a new server. Free online course: RHEL technical overview.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |