Skip to content

This Vagrant file will download a centos 7 box and enable root ssh access

Notifications You must be signed in to change notification settings

johnbayo/Vagrant_centos7

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

Vagrant box Centos 7 with root ssh access

This Vagrant file will deploy a centos 7 operating system, assign a private ip and also enable ssh access.
examples integrating ansible with vagrant is also shown in the Vagrant file

Requirements
vagrant installation
ssh config for root access
ansible installation (optional)

Host appserver
        User root
        Hostname 192.168.10.2

comment out the lines below to integrate your ansible plays and rename "test.yml" to your play.
#        appserver.vm.provision "ansible" do |ansible|
#               ansible.playbook = "#{Dir.home}//ansible/playbooks/test.yml"
#        end

Usage:
vagrant up
ssh appserver

N.B: would enable ssh access on Ubuntu based boxes as well

About

This Vagrant file will download a centos 7 box and enable root ssh access

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published