- From: Adam Jacob <
>
- To:
- Subject: [chef] Re: Re: Re: Re: Re: Setting up a node from command line?
- Date: Mon, 14 Dec 2009 11:27:51 -0800
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Will Sargent wrote:
>
Well, the docs say "The JSON attributes file can be used to add
>
specific Roles </display/chef/Roles> or Recipes
>
</display/chef/Recipes> to a node during chef-client/chef-solo run
>
time." Not adding nodes themselves. So if they can do that, it's
>
undocumented.
Thanks for the note - yeah, we should make it clear that nodes get
created when the clients are run.
>
So if I'm reading this right, I need to run
>
>
sudo chef-client -j nothing.json -t "token"
>
>
where nothing.json contains { "run_list": [ ] }
>
>
And that will automatically create a node on the system, with nothing
>
added to it?
Yes.
Adam
- --
Opscode, Inc.
Adam Jacob, CTO
T: (206) 508-7449 E:
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (Darwin)
Comment: Using GnuPG with Mozilla -
http://enigmail.mozdev.org/
iQEcBAEBAgAGBQJLJpG3AAoJEK+ksDjf4JoCykEH/i5Q7/DFTffZW7cn7FwCNea2
7glTQ2eTzYOS++d/RPdtwVzJa6LRj0qaXqK13zl079dP6Nh0Rz8wur4xmbKtyLAa
4Ny9iZUh6KbE6rM7FV4Jw9ZekSgyOxutlDZfAhFHj2+48Ol1YBOkJxTFfvemBojo
uCGiqoMXifsl87a8DhzevODORqZ/3okUUC/W8DRxbYE6qr9HKxOr/3D+RrBTEDSY
JEvCMeDtHWhqkzz5wJh9VhAd8cL9Fk4Qtahpj4ipLc5ElM5k6zgqkl9MCslojIpS
kXDf97Py65Dt4k0FGTBI2AdxKaCoaeiD0yjAaRT3L5XYayXYWnfNrQOi39wxu24=
=qFR0
-----END PGP SIGNATURE-----
Archive powered by MHonArc 2.6.16.