项目作者: ziozzang

项目描述 :
Python on CoreOS. works well with ansible.
高级语言: Shell
项目地址: git://github.com/ziozzang/python-on-coreos.git
创建时间: 2015-07-07T10:26:38Z
项目社区:https://github.com/ziozzang/python-on-coreos

开源协议:MIT License

下载


python-on-coreos

Python on CoreOS. works well with ansible.

this script install Active Python x86_64 binary to CoreOS.
this will works well with ansible, also any 3rd party software. because it hsa pip also. :)

INSTALL

just run the contents of shell-script.

  1. wget -qO- https://raw.githubusercontent.com/ziozzang/python-on-coreos/master/install-python-on-coreos.sh | bash

RUNNING

/opt/bin/python will works well. :)

if you want to run python in anywhere, just make ~/.bashrc file which contains this.

  1. export PATH=$PATH:/opt/bin

or just run this command

  1. cat > ~/.bashrc << EOF
  2. export PATH=\$PATH:/opt/bin
  3. EOF

WITH ANSIBLE

check sample-ansible-hosts file. there would be all you need to.

  1. ansible -m setup -i hosts core-01

this command works like charm.