Getting Started With setuptools and setup.py — an_example_pypi_project v0.0.5 documentation

egg_info create a distribution’s .egg-info directory

via Getting Started With setuptools and setup.py — an_example_pypi_project v0.0.5 documentation.

Advertisements

How to execute task on subset of hosts – Ansible

Host file

[root@tiber ~]# cat hosts.yml
[nodes]
tiber
po
docker

I want to run task on 2ND & 3RD HOSTS only.

[root@tiber ~]# cat play.yml
– hosts: all
tasks:
– shell: “hostname”
when: inventory_hostname != play_hosts[0]
[root@tiber ~]# ansible-playbook -i hosts.yml play.yml
[WARNING]: The version of gmp you have installed has a known issue regarding
timing vulnerabilities when used with pycrypto. If possible, you should update
it (ie. yum update gmp).

PLAY [all] ********************************************************************

GATHERING FACTS ***************************************************************
ok: [docker]
ok: [tiber]
ok: [po]

TASK: [shell hostname] ********************************************************
skipping: [tiber]
changed: [docker]
changed: [po]

PLAY RECAP ********************************************************************
docker : ok=2 changed=1 unreachable=0 failed=0
po : ok=2 changed=1 unreachable=0 failed=0
tiber : ok=1 changed=0 unreachable=0 failed=0

OpenStack and Docker

Tropical Devel

Introduction

I recently tried to set up OpenStack with docker as the hypervisor on a single node and I ran into mountains of trouble.  I tried with DevStack and entirely failed using both the master branch and stable/havana.  After much work I was able to launch container but the network was not right.  Ultimately I found a path that worked.  This post explains how I did this.

Create the base image

CentOS 6.5

The first step is to have a VM that can support this.  Because I was using RDO this needed to be a Red Hat derivative.  I originally chose a stock vagrant CentOS 6.5 VM.  I got everything set up and then ran out of disk space (many bad words were said).  Thus I used packer and the templates here to create a CentOS VM with 40GB of disk space.  I had to change the “disk_size” value under

View original post 733 more words