Live data from Hacker News

Automating Development Environments with Vagrant and Puppet

blog.kloudless.com

11–20 of 36 posts

Re: Automating Development Environments with Vagrant and Puppet

#12
post #11

This could have been 1/10th the content https://puphpet.com/

Oh yeah, that is true, but the point is to learn how to do it by hand so you can do more than just bring up a php app (like develop django or rails or anything else).

Re: Automating Development Environments with Vagrant and Puppet

#14

This is a very nice write up. If anyone is interested, I've put several screencasts together about Vagrant [1], creating a Vagrant box with Veewee [2], and Learning Puppet with Vagrant. [1] http://sysadmincasts.com/episodes/4-vagrant [2] http://sysadmincasts.com/episodes/5-create-a-vagrant-box-wit... [3] http://sysadmincasts.com/episodes/8-learning-puppet-with-vag...

Thanks! I just got started with Vagrant and figured I should share my experience!

Thanks analogAndroid - I'm just getting started with Puppet and Vagrant too. Great article, hoping to learn more from you!

Re: Automating Development Environments with Vagrant and Puppet

#15

If you're just getting started with Vagrant and find yourself stuck, try a different provisioner. I had a lot of trouble wrapping my head around Puppet, but was up and running with Ansible very quickly. Puppet, Chef and Ansible can all be used to build out your Vagrant VM's environment.

I just read about Vagrant, and Ansible last week -- I would love to read the ansible playbooks of folks to see what they are doing with them, and to learn more about how its done.

Ideally, I'd love to find some vagrant scripts and ansible playbooks to bring Amazon ec2 instances up and down and configure them with a standard set of packages.

Re: Automating Development Environments with Vagrant and Puppet

#16
If you're interested in getting up and running with a full development environment, I created a minimal LAMP stack utilizing the deliciousness of Vagrant and Chef. It's available on GitHub https://github.com/MiniCodeMonkey/Vagrant-LAMP-Stack

There has been a lot of discussions about which provisioner to use, but at the end of the day they all achieve the same goal. I would personally just use one that you feel comfortable with, in the sense of configuration system and structure.

Re: Automating Development Environments with Vagrant and Puppet

#17

This is a very nice write up. If anyone is interested, I've put several screencasts together about Vagrant [1], creating a Vagrant box with Veewee [2], and Learning Puppet with Vagrant. [1] http://sysadmincasts.com/episodes/4-vagrant [2] http://sysadmincasts.com/episodes/5-create-a-vagrant-box-wit... [3] http://sysadmincasts.com/episodes/8-learning-puppet-with-vag...

Isn't Veewee being somewhat superseeded by mitchellh's http://packer.io? Admittedly, packer.io has only recently been released.

Re: Automating Development Environments with Vagrant and Puppet

#18
post #11

This could have been 1/10th the content https://puphpet.com/

Oh yeah, that is true, but the point is to learn how to do it by hand so you can do more than just bring up a php app (like develop django or rails or anything else).

Other languages are on my to-do list for PuPHPet!

Re: Automating Development Environments with Vagrant and Puppet

#19

This is a very nice write up. If anyone is interested, I've put several screencasts together about Vagrant [1], creating a Vagrant box with Veewee [2], and Learning Puppet with Vagrant. [1] http://sysadmincasts.com/episodes/4-vagrant [2] http://sysadmincasts.com/episodes/5-create-a-vagrant-box-wit... [3] http://sysadmincasts.com/episodes/8-learning-puppet-with-vag...

Isn't Veewee being somewhat superseeded by mitchellh's http://packer.io ? Admittedly, packer.io has only recently been released.

This was my impression as well, There's a veewee-to-packer converter that I've had some success with:

https://github.com/mitchellh/veewee-to-packer

Re: Automating Development Environments with Vagrant and Puppet

#20

If you're just getting started with Vagrant and find yourself stuck, try a different provisioner. I had a lot of trouble wrapping my head around Puppet, but was up and running with Ansible very quickly. Puppet, Chef and Ansible can all be used to build out your Vagrant VM's environment.

What I like about Vagrant is that while a provisioner can help, it's not mandatory. If you're stuck with a legacy "enterprise! It sings, it dances, it crashes if you look at it funny!" application with a lot of special requirements, you can get up and running pretty quickly with a little bash and perl. I whipped up a Vagrant script for our app which is capital-F Finicky.

If you're curious, here's the vagrantfile and bootstrap script:

https://github.com/opentusk/Opentusk/blob/master/Vagrantfile

https://github.com/opentusk/Opentusk/blob/master/install/vag...

Post reply on HN