Comments (5)
I would recommend controlling that action (adding to the AD) with an attribute instead of checking what type of Chef you're running. Then override that attribute in the Vagrantfile
from chef-zero.
@JCosta how are you using Chef Zero? It functions as a full Chef Server, so you shouldn't need these types of conditionals.
from chef-zero.
If you need to check, you can look at Chef::Config[:chef_server_url] and see if it contains 127.0.0.1, or you can connect and look at the Server header (which has chef-zero in it).
But right now, chef isn't actually IN a different "mode." For all it knows, it's talking to a full Chef server. And there shouldn't ever be any functional way to tell the difference.
from chef-zero.
My base role is joining my VM to the domain, since I'm doing vagrant
destroy/up/provision a billion times a day, I end up with a gazillion
machines in AD.
I would like to avoid running a set of recipes by validating if this
particular chef-run is a chef-zero run.
Currently I am adding json attributes to my vagrantfile, and checking for
those "chef-zero" values inside my recipes.
On 15 July 2013 17:41, Seth Vargo [email protected] wrote:
@JCosta https://github.com/jcosta how are you using Chef Zero? It
functions as a full Chef Server, so you shouldn't need these types of
conditionals.—
Reply to this email directly or view it on GitHubhttps://github.com//issues/28#issuecomment-20982570
.
from chef-zero.
Checking the chef_server_url is likely to be enough.
Thanks
On 15 July 2013 18:15, John Keiser [email protected] wrote:
If you need to check, you can look at Chef::Config[:chef_server_url] and
see if it contains 127.0.0.1, or you can connect and look at the Server
header (which has chef-zero in it).But right now, chef isn't actually IN a different "mode." For all it
knows, it's talking to a full Chef server. And there shouldn't ever be any
functional way to tell the difference.—
Reply to this email directly or view it on GitHubhttps://github.com//issues/28#issuecomment-20984838
.
from chef-zero.
Related Issues (20)
- kitchen and chef-zero 404ing on data bag HOT 3
- check if a data_bag exists HOT 1
- chef-zero should make data available on save HOT 4
- Exception when file has #2 at the end of name HOT 1
- Chef zero outputs too much information for info log level HOT 3
- Chef encountered an error attempting to load the node data HOT 2
- Should do a release HOT 7
- Uploading cookbooks to chef-zero using berks often crashes when Request timeout is 300 HOT 3
- Improper require of Hashie causing error (NameError: uninitialized constant Hashie::Extensions::Array) HOT 5
- Unable to connect to chef-zero HOT 1
- Chef 13 vs Chef 12 ip address resolution HOT 1
- Completely arbitrary ruby version requirement HOT 2
- Need a mode of operation where chef-zero runs in-memory but populates from the disk cache
- Do not format the node definition JSON file after converging HOT 1
- Could chef-zero please support fetching inspec profiles?
- Re-raising exception: URI::InvalidURIError - bad URI(is not URI?)
- missing webrick makes chef-zero fail
- Add unique email contraint while creating user
- Configuring the chef-zero-automate reporter for the compliance phase 404s in TK against chef-zero
- Policy Groups in the policy file details (chef-zero) HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from chef-zero.