Skip to content

2 How to Build

Thomas Li edited this page Jul 13, 2018 · 4 revisions

Environment

OS: Ubuntu 16.04 Desktop 64bit
User Account: luhya

因为权限问题,请安装好Ubuntu操作系统后,缺省的账号名设置为luhya 后续的所有操作都是在账号luhya下执行。否则可能出现访问权限的问题。 同时,/etc/sudoers 文件的最后一行添加

luhya ALL=(ALL) NOPASSWD: ALL

使得在执行sudo的时候不需要输入密码。

Pre-installed software

login with account "luhya"

sudo apt-get install python-pip cdbs quilt libzmq3-dev ansible sshfs sshpass python-yaml 
sudo pip install pyinstaller pexpect pyzmq

Build

PromAnsible配套有ansible安装脚本promansible-install和ansible扩展脚本sample-ansible-script-for-promansible

PromAnsible编译出来的deb包,通过make publish命令拷贝到这两个脚本的目录中,以便后续的使用。

具体细节,参考各自的repository的README.md文件

mkdir ~/src && cd ~/src
git clone https://github.com/cloudfirst/PromAnsible.git
git clone https://github.com/cloudfirst/promansible-Install.git
git clone https://github.com/cloudfirst/sample-ansible-script-for-promansible.git
cd PromAnsible/
dpkg-buildpackage
make publish
Clone this wiki locally