Thursday, March 12, 2015

Vagrant, Proxy issue, centos local repo and ad-hoc testing

Vagrant is a good VM automation tool for both developers and devops, here are some basic tips that I found useful

Proxy
   if you are stand behind a proxy, you can install one vagran proxy module. the module will setup the proxy on guest machines, like yum.conf, http_proxy variable etc.
here is the plugin https://github.com/tmatilai/vagrant-proxyconf

image

 

when you boot up the vm, you can see the proxy setting applied depends on your OS type

image

Yum Repo.
   you might have one local repo in the company, you can either build all boxes internally which already assign the repo url to local. or just copy one repo to override the system one by using the provisioning scripts.

image

image

and in your local file, change the ip to internal one

image

Provision scripts to check whether package installed or not. using rpm to query package or use command to determine whether a command exists

image

No comments:

 
Locations of visitors to this page