A vagrant template to create CentOS VM for development environment
- Using CentOS 7.2
- Auto install php-fpm v5.6
- Auto install NGINX v1.10
- Auto install Apache (httpd) v2.4
- Auto install MariaDB v10.0
- Auto install PostgreSQL v9.5
- Auto install Redis v2.8
- Auto install NodeJS v4.x
- Auto install JDK v8
- May be customize configuration
- Protected web by basic authentication
- Vagrant 1.8+
- Virtual Box 5.0+
-
Download latest version in here
-
Edit your settings in
Vagrantfile
filemy = { # basic configuration :cf_hostname => "my-centos-env.dev" , :cf_private_ip => "10.10.10.10" , :cf_timezone => "UTC" , :cf_private_key_path => "./key/id_rsa" , :cf_public_key_path => "./key/id_rsa.pub" , :cf_app_source_path => "../source" , :cf_selinux_enabled => false , # configuration for nginx or httpd service :cf_http_port => 80 , :cf_http_user => "apache" , :cf_http_group => "apache" , :cf_https_enabled => false , :cf_https_port => 443 , # configuration for basic authentication :cf_basic_auth_enabled => true , :cf_basic_auth_user => "dev" , :cf_basic_auth_password => "devpass" , # configuration for php-fpm service :cf_php_fpm_listen => "127.0.0.1:9000" , # configuration for mysqld service :cf_mariadb_root_password => "rootpass" , :cf_mariadb_port => 3306 , :cf_mariadb_remote_access => true , # configuration for postgresql service :cf_postgresql_port => 5432 , :cf_postgresql_remote_access => true , # configuration for redis-server service :cf_redis_port => 6379 , :cf_redis_remote_access => false , #:cf_redis_password => false , # configuration for forwarded_port :cf_host_port_ssh => 20022 , :cf_host_port_http => 20080 , :cf_host_port_https => 20443 , :cf_host_port_mariadb => 23306 , :cf_host_port_postgresql => 25432 , :cf_host_port_redis => 26379 , }
-
Run
vagrant up
and waiting
-
Remote access by
vagrant ssh
$ vagrant ssh
All code contributions must go through a pull request and approved by a core developer before being merged. This is to ensure proper review of all the code.
Fork the project, create a feature branch, and send a pull request.
If you would like to help take a look at the list of issues.
This project is released under the MIT License.
Copyright © 2016 Oanh Nguyen