Ansible和Vagrant构建的多应用虚拟机示例集
ansible-vagrant-examples是一个开源项目,提供使用Vagrant创建并通过Ansible自动化配置的虚拟机示例集。涵盖Docker、Drupal、GitLab、Jenkins等多种流行应用,展示了基础设施即代码的实践。项目旨在展现Ansible的简便性和灵活性,适用于快速搭建开发环境或学习Ansible。开发者和系统管理员只需安装Vagrant、VirtualBox和Ansible,即可轻松启动并配置这些预设的虚拟机环境,体验自动化部署的便捷。
This repository contains a collection of example virtual machines running various applications. The VMs are created via Vagrant and provisioned via Ansible.
You can cd
into any of the included directories and run vagrant up
, and a generic Linux VM will be booted and configured in a few minutes. You just need to install Vagrant, VirtualBox, and Ansible. View the included README.md file in any of the subdirectories to find out more about the particular VM.
All of these examples use a combination of roles I've added to Ansible Galaxy, and were created to help demonstrate Ansible's simplicity and flexibility.
Read more about Ansible and how I use it to manage infrastructure in Ansible for DevOps, a book I've written.
docker
- Docker container building and management (builds a simple LAMP stack).drupal
- LAMP/LEMP-based Content Management System)elk
- This example has been moved to the Ansible for DevOps repository)gitlab
- Ruby-based GitHub-like Git web interface)gogs
- Go-based GitHub-like Git web interface)jenkins
- Java-based Continuous Integration server)lamp
- Linux, Apache, MySQL, and PHP)lemp
- Linux Nginx, MySQL, and PHP-fpm)munin
- Munin and munin-node monitoring server)nodejs
- Node.js-based API app using restify)phergie
- PHP IRC Bot)rails
- Ruby on Rails demo app running on Passenger/Nginx)solr
- Java-based text search service)sonarqube
- Java-based code quality analysis and review tool)svn
- An SVN server using Apache for a web interface)svn2git
- A VM which includes KDE's Svn2Git for repository conversions)MIT license.
Created in 2014 by Jeff Geerling, author of Ansible for DevOps.