- From: Darron Froese <
>
- To:
- Subject: [chef] Hosted chef not honoring passed environment?
- Date: Thu, 10 Jan 2013 14:25:57 -0700
Using chef 10.16.4.
I have an environment called 'lucid' for my current infrastructure:
[master]
/Dropbox/src/chef-repo:
knife environment list
_default
lucid
We're using hosted Chef and this next bit shows all of my cookbook
versions for that environment:
https://gist.github.com/4505868
I'm adding a new server using that environment - tried passing
environment along 2 different ways:
bundle exec knife rackspace server create -E lucid -S server2013 -f 4
-N server2013 --image 112 -r
'role[setup],role[mysql_server],role[web_server],recipe[backup]'
--distro ubuntu10.04-ruby193
OR
bundle exec knife rackspace server create -S server2013 -f 4 -N
server2013 --image 112 -r
'role[setup],role[mysql_server],role[web_server],recipe[backup]'
--distro ubuntu10.04-ruby193 --environment lucid
Neither seems to work as I expect.
The server gets created, but at the end of the run, it says:
Name: server2013
Flavor: 2GB server
Image: Ubuntu 10.04 LTS
Metadata: {}
Environment: lucid
Run List: role[setup], role[mysql_server], role[web_server], recipe[backup]
But:
1. It uses the 2.0.4 sudo cookbook that I uploaded yesterday - which
is not part of the lucid environment.
2. In the Opscode management interface it shows up as _default:
http://d.pr/i/UoZz
Any ideas what I'm missing?
- [chef] Hosted chef not honoring passed environment?, Darron Froese, 01/10/2013
Archive powered by MHonArc 2.6.16.