Skip to content

r1cep/vagrant-dev-environment

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Vagrant Docker host server

Vagrantfile for construction of docker host server of CentOS 7.

Table of Contents

Getting Started

Ansible playbook

Create playbook.yml

$ cp playbook.yml.dist playbook.yml

ansible playbook setting

Open the copied playbook.yml in the editor and set it.

    hostname: <HOSTNAME>
    vim_version: <VIM_VERSION>
    docker_compose_version: <DOCKER_COMPOSE_VERSION>
    samba_user: <SAMBA_USER>
    samba_password: <SAMBA_PASSWORD>

Please set vagrant for working user name and group name.

  • e.g.
    hostname: docker-host
    vim_version: v8.1.1115
    docker_compose_version: 1.24.0
    samba_user: vagrant
    samba_password: vagrant

Vagrantfile

Create Vagrantfile

$ cp Vagrantfile.dist Vagrantfile

Vagrantfile setting

Open the copied Vagrantfile with an editor and set it.

  # config.vm.network "public_network"

Uncomment the above and assign an IP address.

  • e.g.
  config.vm.network "public_network", ip: "<IP_ADDRESS_HERE>"

Change Vagrantfile setting (Optional)

Changing this setting is optional.

Please change the setting value as needed.

  config.vm.provider "virtualbox" do |vb|
    vb.memory = "2048"
    vb.name = "docker-host"
  end
  • vb.memory: Set the memory allocated to VM
  • vb.name: Set the name of VM

Start Vagrant

$ vagrant up

The Ansible local provisioner is executed on the first start.

cf. Ansible local

Releases

No releases published

Packages

No packages published

Languages