这个项目已经废弃很久了,但依然是个不错的技术途径
Blueprint使用
介绍
blueprint用来将配置好的服务器架构逆向为代码
环境要求
Debian- or RPM-based Linux
Python >= 2.6
Git >= 1.7 (not just for installation from source)
安装
git clone https://github.com/devstructure/blueprint.git
cd blueprint
git clone https://github.com/rcrowley/mustache.sh.git
make && make install
创建blueprint
blueprint create name
# 创建好的文件在~/.blueprints.git
# 在其他系统上还原配置
blueprint apply name
其他
# 查看blueprint都记录了哪些变更
blueprint show name | less
# 查看安装了哪些包
blueprint show test | blueprint-show-packages
blueprint show-packages test
# 查看记录了哪些文件
blueprint show test | blueprint-show-files
blueprint show-files test
# 查看记录了哪些服务
blueprint show test | blueprint-show-services
blueprint show-services test