Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Vagrant development environment + Puppet provisioning
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  13 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
deizel  
View profile  
 More options Apr 22 2012, 1:34 pm
From: deizel <w...@deizel.co.uk>
Date: Sun, 22 Apr 2012 10:34:09 -0700 (PDT)
Local: Sun, Apr 22 2012 1:34 pm
Subject: Vagrant development environment + Puppet provisioning

Hi all,

My colleague (@mmoscosa) and I attended the recent Whisky Web conference
where we got a chance to play with Puppet during the hackathon.

Puppet is an infrastructure management tool that can, among other things,
automatically install the necessary packages needed by different servers.

@JayTaph was kind enough to talk us through some presentation slides he had
on the subject, giving us a good overview before we got to work.

As there were a few other groups hacking on the joind.in project, we
figured if we could apply our newly found knowledge it might help other
developers contribute to the project in the future.

In short, the idea is to be able to download the joindin project, type
`vagrant up`, (stuff happens), and you can start developing on
http://dev.joind.in:8080 in just a few minutes.

Quite a number of things actually happen in the background when you do
this, so I will quickly mention them:

- A base virtual machine with Puppet installed is downloaded (if it doesn't
exist)
- An instance of this virtual machine boots in the background using
VirtualBox
- The joindin source code get mounted inside the virtual machine (at
`/vagrant`)
- Apache, PHP 5.3 and MySQL are installed and configured (with PHP errors
enabled, etc.)
- Creates the database, database user, imports database schema and imports
generated seed data.
- Forwards the web server running on port 80 in the virtual machine to port
8080 on your localhost.

If any of you could be so kind as to check if this works on your local
machines (it does for me) it would be much appreciated.

Detailed instructions can be found in the README on my fork:
https://github.com/deizel/joind.in/blob/master/README#L10

Cheers,

Chris (and Martin).


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
lornajane  
View profile  
 More options Apr 23 2012, 4:27 pm
From: lornajane <lorna.mitch...@gmail.com>
Date: Mon, 23 Apr 2012 13:27:29 -0700 (PDT)
Local: Mon, Apr 23 2012 4:27 pm
Subject: Re: Vagrant development environment + Puppet provisioning
I am blown away.

So here I am, thinking I know about virtual machines, checking this
out because I'm an open source project lead and that's what you do
with contributions even if you have no clue what they are about ... I
stand entirely corrected!  It turns out this is pretty special :)

I would like a few more people to take a look at Chris' changes (he's
also hanging out with us on IRC if you have any questions) before we
merge them into the main project but personally I like this feature a
lot!  It uses some git submodules to pull in code that is maintained
elsewhere, and then it's one command to bring up the VM, but ...

**keep reading**

... the VM mounts your files, so you just keep on editing the files on
your disk, and the virtual machine just serves them, in an environment
that's clean and ready-configured.

Who else has an opinion?  Or should I just merge?

Lorna

On Apr 22, 6:34 pm, deizel <w...@deizel.co.uk> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Bradley Holt  
View profile  
 More options Apr 23 2012, 4:44 pm
From: Bradley Holt <bradley.h...@gmail.com>
Date: Mon, 23 Apr 2012 16:44:08 -0400
Local: Mon, Apr 23 2012 4:44 pm
Subject: Re: [joindin-developers] Re: Vagrant development environment + Puppet provisioning
Just a quick note that might save someone hours of frustration. The
way that Vagrant mounts your /vagrant directory can cause some bizarre
issues with Apache (basically, Apache may not see changed files as
changed) in some operating systems (OS 10.5 was the OS I experienced
this problem with). You'll want to set EnableMMAP and EnableSendfile
to "off" to alleviate this problem. For reference, here's a change I
made to fix this issue in one of my projects that's using Vagrant and
Puppet:

https://github.com/foundline/vtcodecamp.org/commit/ca4aebff91d392c539...

Hopefully this saves someone hours of troubleshooting :-)

--
http://bradley-holt.com/

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Bradley Holt  
View profile  
 More options Apr 23 2012, 4:49 pm
From: Bradley Holt <bradley.h...@gmail.com>
Date: Mon, 23 Apr 2012 16:49:03 -0400
Local: Mon, Apr 23 2012 4:49 pm
Subject: Re: [joindin-developers] Re: Vagrant development environment + Puppet provisioning
Oops, that wasn't the right commit that I referenced (but it should
still communicate what I meant).

--
http://bradley-holt.com/

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Casey Wilson  
View profile  
 More options Apr 23 2012, 4:57 pm
From: Casey Wilson <ap0s...@gmail.com>
Date: Mon, 23 Apr 2012 16:57:52 -0400
Local: Mon, Apr 23 2012 4:57 pm
Subject: Re: [joindin-developers] Re: Vagrant development environment + Puppet provisioning

This is a great addition.

I'd vote to merge it.

-Casey


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Rob Allen  
View profile  
 More options Apr 24 2012, 3:39 am
From: Rob Allen <r...@akrabat.com>
Date: Tue, 24 Apr 2012 08:39:24 +0100
Local: Tues, Apr 24 2012 3:39 am
Subject: Re: [joindin-developers] Vagrant development environment + Puppet provisioning

When I go through the instructions in the README, I get this far:

http://akrabat.com/caps/94a68234.png

(incidentally, adding config.vm.boot_mode = :gui to the Vagrantfile is helpful for working out what's happening!)

Anyone have any ideas on what to do about this kernel panic?

Regards,

Rob…

On 22 Apr 2012, at 18:34, deizel wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Martin Moscosa  
View profile  
 More options Apr 24 2012, 6:31 am
From: Martin Moscosa <mmosc...@gmail.com>
Date: Tue, 24 Apr 2012 11:31:39 +0100
Local: Tues, Apr 24 2012 6:31 am
Subject: Re: [joindin-developers] Vagrant development environment + Puppet provisioning

It might be a VM issue,

Have you tried running the VM using Virtualbox GUI Mode?!

Just an idea,

Martin Moscosa
----------------------------------
mmosc...@gmail.com
http://mmoscosa.com


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Martin Moscosa  
View profile  
 More options Apr 24 2012, 10:12 am
From: Martin Moscosa <mmosc...@gmail.com>
Date: Tue, 24 Apr 2012 15:12:08 +0100
Local: Tues, Apr 24 2012 10:12 am
Subject: Re: [joindin-developers] Vagrant development environment + Puppet provisioning

Hi Rob,

I hastily answered your question and didn't notice it was the actual GUI.

We have replicated the same error on Windows XP and got the same output.

There also seem to be others with the same issue https://www.virtualbox
.org/ticket/10427

Martin Moscosa
----------------------------------
mmosc...@gmail.com
http://mmoscosa.com


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
deizel  
View profile  
 More options Apr 24 2012, 11:38 am
From: deizel <w...@deizel.co.uk>
Date: Tue, 24 Apr 2012 08:38:27 -0700 (PDT)
Local: Tues, Apr 24 2012 11:38 am
Subject: Re: [joindin-developers] Vagrant development environment + Puppet provisioning

Hi Rob,

We seem to have resolved this on our Windows box by switching the box's
emulated chipset from PIIX3 to ICH9.

Can you try adding the following to your Vagrantfile and let us know your
results?

  config.vm.customize [
    'modifyvm', :id, '--chipset', 'ich9',
    # '--uartmode1', 'file', 'C:\\base6-console.log' # uncomment to change
log location on Windows
  ]

Cheers,

Chris.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Rob Allen  
View profile  
 More options Apr 25 2012, 5:44 am
From: Rob Allen <r...@akrabat.com>
Date: Wed, 25 Apr 2012 10:44:11 +0100
Local: Wed, Apr 25 2012 5:44 am
Subject: Re: [joindin-developers] Vagrant development environment + Puppet provisioning

To follow up,

The latest update to diezel's branch has solved the problem. Thanks!

Regards,

Rob..

On 24 Apr 2012, at 08:39, Rob Allen wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
lornajane  
View profile  
 More options Apr 29 2012, 11:43 am
From: lornajane <lorna.mitch...@gmail.com>
Date: Sun, 29 Apr 2012 08:43:23 -0700 (PDT)
Local: Sun, Apr 29 2012 11:43 am
Subject: Re: [joindin-developers] Vagrant development environment + Puppet provisioning
Still playing with this, in fact I haven't bothered to set up a
"normal" dev environment on my machine.

I did add some bits and pieces to make the API available on
http://api.dev.joind.in:8080 as well though, you can see them in my
branch: https://github.com/lornajane/joind.in/tree/vagrant  Maybe we
can include these when we merge this feature into the main project?

Lorna


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
lornajane  
View profile  
 More options May 5 2012, 3:23 pm
From: lornajane <lorna.mitch...@gmail.com>
Date: Sat, 5 May 2012 12:23:28 -0700 (PDT)
Local: Sat, May 5 2012 3:23 pm
Subject: Re: Vagrant development environment + Puppet provisioning
Update: I merged Chris' changes plus my API additions into the master
branch today.  It isn't perfect but it seems like at least half of us
felt it was worth using so it's now in master and we can iterate upon
it as we wish!

Does anyone know if it will pick up changes to config.php.dist?  I see
another copy of the contents of that file in one of the .erb files.
Do we need to propogate the changes?  I have NO idea how this magic
works, so any input is appreciated :)

Lorna

PS  Thanks to Chris and Martin for taking the time to create this, you
guys rock!!

On Apr 29, 4:43 pm, lornajane <lorna.mitch...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Joshua Thijssen  
View profile  
 More options May 5 2012, 6:40 pm
From: Joshua Thijssen <joshua.thijs...@gmail.com>
Date: Sun, 06 May 2012 00:40:46 +0200
Local: Sat, May 5 2012 6:40 pm
Subject: Re: [joindin-developers] Re: Vagrant development environment + Puppet provisioning
Nice job! I will do make some modifications to the manifests in order to
clean some stuff up, but I think we are making good progress!

I *STILL* haven't looked at it, but if we don't need any templating in
the config.ini.dist, we might as well do a copy of the original
config.ini.dist (with a replace=>false, so it doesn't get copied if it's
already there).. if there is some substitution present we might need to
sync config.php.dist and the erb file (or, maybe delete the
config.php.dist in the long run and make sure everybody provisions
through puppet, but I would not recommend that).  I might be able to get
to do some of the work tomorrow (sunday).


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »