fnichol / knife-server

A Chef Knife plugin to manage Chef Servers. Bootstrap a new Chef Server on Amazon's EC2, Digital Ocean, Linode, OpenStack or a standalone server. Backup and restore your Chef Server or Hosted Chef's node, role, data bag, and environment JSON data.
http://fnichol.github.com/knife-server
Apache License 2.0
158 stars 34 forks source link

--bootstrap-version is not considered? #23

Closed tknerr closed 11 years ago

tknerr commented 11 years ago

I was just trying to bootstrap an older version of chef server using this command:

knife server bootstrap standalone --ssh-user vagrant --ssh-password vagrant --node-name c16057-ihub.local --host 33.33.67.70 --bootstrap-version 10.16.2 --webui-password chefchef`

However, the --bootstrap-version seemed to have no effect and Chef Server 10.18.2 was installed instead.

In chef-server-debian.erb I noticed that the bootstrap version is not passed to apt-get install: https://github.com/fnichol/knife-server/blob/master/lib/chef/knife/bootstrap/chef-server-debian.erb#L85

Is it missing from here or is the chef version enforced by some other mechanism?

Cheers, Torben

tknerr commented 11 years ago

and similarly in the omnibus bootstrap template L#68 it should be

curl -L https://www.opscode.com/chef/install.sh | bash -s -- -v <bootstrap_version>

shouldn't it?

erikh commented 11 years ago

yep, fun fact, I found out the hard way last night when opscode released chef 11 and broke some zone auto-bootstrap stuff I was working against.

I can probably fix this tomorrow.

erikh commented 11 years ago

@fnichol don't release until I fix this, I don't think it'll be complicated and I'll figure out the other issue too.

erikh commented 11 years ago

turns out.. it's complicated. I'll explain more in #22 but I don't think we'll be able to fix this without some further discussion.

fnichol commented 11 years ago

There should be better support for the ---bootstrap-version flag now that 1.0.0 is out the door. There are now a few uses for this flag:

Unfortunately due to the way the Chef 10 server is delivered (by a solo chef run in RHEL and apt reposity in Debian/Ubuntu) it's very hard to specify the exact version of Chef Server v10.

Hopefully this closes out this issue. If I've misunderstood, please reopen, thanks!

tknerr commented 11 years ago

Thanks! Will give it a try and let you know. Cheers, Torben