Skip to content

Latest commit

 

History

History
133 lines (85 loc) · 3.05 KB

README.md

File metadata and controls

133 lines (85 loc) · 3.05 KB

vagrantfiles

Vagrant files to build some service boxes

All Vagrant Files are configured to use https://atlas.hashicorp.com/icalvete/boxes/ubuntu-16.04-64-puppet as box. Feel free to customize files

Box version (config.vm.box_version) must be <= 0.0.1

Requires:

Installation:

[Common]

[*NIX]

  • Install git

[Windows]

Reboot if don't did it after Virtual Box and Vagrant

[Common]

Add boxes:

  • Download boxes

Choose the right backend (In this case, virtualbox) See the example at the end of the seccion.

$ vagrant box add icalvete/ubuntu-12.04-64-puppet
$ vagrant box add icalvete/ubuntu-14.04-64-puppet 
$ vagrant box add icalvete/ubuntu-16.04-64-puppet 

Chossing the right backend (virtualbox)

$ vagrant box add https://vagrantcloud.com/puppetlabs/boxes/centos-7.0-64-puppet
==> box: Loading metadata for box 'https://vagrantcloud.com/puppetlabs/boxes/centos-7.0-64-puppet'
This box can work with multiple providers! The providers that it
can work with are listed below. Please review the list and choose
the provider you will be working with.

1) virtualbox
2) vmware_desktop
3) vmware_fusion

Enter your choice: 1
==> box: Adding box 'puppetlabs/centos-7.0-64-puppet' (v1.0.0) for provider: virtualbox
    box: Downloading: https://vagrantcloud.com/puppetlabs/boxes/centos-7.0-64-puppet/versions/1.0.0/providers/virtualbox.box
    box:

Setting up the environment

[Common]

  • Download this project:
$ git clone https://github.com/icalvete/vagrantfiles.git 
  • Download common manifest

(Be aware. There is a final dot at the end of git clone !!!!)

$ cd  vagrantfiles
$ rm puppet/modules_sp/.gitkeep
$ cd puppet/modules_sp/
$ git clone https://github.com/smartpurposes/puppet-modules.git .
$ git submodule init
$ git submodule update
  • Download any manifest you need

(Be aware. There is a final dot at the end of git clone !!!!)

$ cd ..
$ rm modules/.gitkeep
$ cd modules
$ git clone  https://< what ever you need >.git .

Using it:

  • Run any service box (kyototycoon for example)
$ cd  vagrantfiles/kyototycoon
$ vagrant up
  • Connecting to service box:
$ vagrant ssh

Extend this service boxes:

  • Create < where ever >vagrantfiles/puppet/modules and put your own puppet manifests here.
  • Change any < where ever >/vagrantfiles/< service box >/puppet/manifests/site.pp to extend it.

Hiera:

Some service box (mysql, rabbitmq...) are using manifest who needs hiera.

Put your hiera file in < where ever >/vagrantfiles/puppet/hiera/common.yaml

hiera example

Authors:

Israel Calvete Talavera [email protected]