ansible with docker dynamic inventory

2017-01-09 2 min read bash Fedora Vurtualization
So, I have a few dockers. Every now and then I want to run some command on all of them. Doing ‘docker exec’ is tiresome. I found this neat solution with ansible that I thought I should share with you. To get started, you need to have the “” script. This script will be used as python script inventory for ansible. So, use the following command and get the script: Continue reading

Sandbox apache (httpd) for better security.

2014-03-26 1 min read Fedora
Apache/httpd is something which you would like to have contained. And now fedora provides a native way/mechanism to to so with virt-sandbox-service. With this, you can create a virtualized sanbox service and then connect/list/manage such with virsh. We will be using LXC. Basically its couple of commands and you have a contained service running. # List all the containers virsh -c lxc:/// list # Create the sandbox, all default parameters. Will take dhcp address. Continue reading