Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8235931
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T18:58:59+00:00 2026-06-07T18:58:59+00:00

Getting started with using Vagrant for some Rails development. Going one step at a

  • 0

Getting started with using Vagrant for some Rails development. Going one step at a time, so I’m first trying to install nginx via a Chef recipe in the vagrant file. However, while I set the nginx version in the Vagrantfile to 1.20.0, Vagrant does not seem to recognize it and keeps installing version 1.1.19.

I’m going to go through all my steps to make sure I’m not missing anything.

I’ve got a directory structure of:

--vagrant_boxes
  --cookbooks
  --vagrant_box1

I downloaded the nginx cookbook from opscode via knife.

knife cookbook site install nginx

This installed nginx and its dependencies into my cookbooks directory.

I then created a new box in vagrant_box1

vagrant init precise64

and edited the Vagrant file to read

config.vm.provision :chef_solo do |chef|
  chef.cookbooks_path = "../cookbooks"
  chef.add_recipe "nginx"
  chef.json = { :nginx => { :version => "1.2.0" } }
end

I ran vagrant up, and then vagrant ssh.

And in the Vagrant box, nginx -v gave me nginx version: nginx/1.1.19. Which is not what I want. I want to understand Vagrant and chef, so any assistance would be greatly appreciated!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T18:59:01+00:00Added an answer on June 7, 2026 at 6:59 pm

    IIRC the version attribute only applies to the nginx::source recipe. So instead of:

    chef.add_recipe "nginx"
    

    try:

    chef.add_recipe "nginx::source"
    

    Then the correct version should be installed

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm just getting started with Boost for the first time, details: I'm using Visual
I'm getting started in developing web services using JAX-WS. I'm trying to implement classes
I've only just started using Vagrant and Chef, but Im getting what I think
Im using the following guide for getting started with rails for ubuntu 9.10. http://guides.rails.info/getting_started.html
Getting started with python. I am trying to implement positional index using nested dictionary.
I am getting started with Entity Framework using POCO in a model-first configuration. I
just getting started with Rails, I would like to consume a webservice (using ActiveResource)
I'm just getting started using ADO.NET and DataSets and DataTables. One problem I'm having
I'm getting started with using python's mrjob to convert some of my long running
I'm using build 5.06 of the toolkit and I'm just getting started, trying to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.