config.vm.box = "centos/7"
config.vm.box_version = "1708.01"
config.ssh.insert_key = false
- elsif distro == 'opensuse'
- config.vm.box = "opensuse/openSUSE-42.3-x86_64"
- config.vm.box_version = "1.0.4.20170726"
else
config.vm.box = "puppetlabs/ubuntu-16.04-64-nocm"
config.vm.network "private_network", type: "dhcp"
end
- # use http proxy if avaiable
+ # use http proxy if available
if ENV['http_proxy'] && Vagrant.has_plugin?("vagrant-proxyconf")
config.proxy.http = ENV['http_proxy']
config.proxy.https = ENV['https_proxy']
Once you're satisfied with your *Vagrantfile*, boot the box with:
-.. code-block:: console
+.. code-block:: shell
$ vagrant up
To poweroff your VM, type:
- .. code-block:: console
+ .. code-block:: shell
$ vagrant halt <id>
To resume your VM, type:
- .. code-block:: console
+ .. code-block:: shell
$ vagrant resume <id>
To destroy your VM, type:
- .. code-block:: console
+ .. code-block:: shell
$ vagrant destroy <id>
- Note that "destroying" a VM does not erase the box, but rather destroys all resources allocated for that VM. For other Vagrant commands, such as destroying a box, refer to the `Vagrant CLI Page <https://www.vagrantup.com/docs/cli/>`_.
\ No newline at end of file
+ Note that "destroying" a VM does not erase the box, but rather destroys all resources allocated for that VM. For other Vagrant commands, such as destroying a box, refer to the `Vagrant CLI Page <https://www.vagrantup.com/docs/cli/>`_.