Hi Jesse,On Nov 30, 2010, at 10:02 PM, Jesse Callaway wrote: I'm using the client_service recipe suggested, and it does install the chef-client as a daemon. HOWEVER, it will rewrite your /etc/chef/client.rb file periodically (as advertised). I like to give my nodes UUID's for their node name, however the template which comes with the chef cookbook does not supply a node_name.
I've looked at the recipe and it seems that it only changes /etc/chef/client.rb in case you're using init as init_style. When using runit I can't find somewhere where it overwrites chef's conf file. Am I wrong?
Bye
I tried adding this to the template, but the property comes up blank when the erb is interpreted. node_name "<%= node[:name] %>" Am I looking for the correct property/symbol? Using `knife node show NODE -a name` shows me that I'm barking up the wrong tree. { "name": null } However, the full output of `knife node show NODE` contains this - { "normal": { "tags": [ ] }, { "normal": { "tags": [ ] }, "name": "8C770152-9F3A-400B-8C57-9646FE7ED28C", "override": { }, ... } Here is how I called bootstrap in this "instance" - knife bootstrap ec2-xyz.amazonaws.com --node-name `uuidgen` --log_level info --ssh-user root --run-list "role[mta]" -jesse On Nov 30, 2010, at 12:44 PM, Haim Ashkenazi wrote: -----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi
Thanks, I'll try to run chef::client_service after install and see if it works.
Bye
On Nov 30, 2010, at 5:40 PM, Joshua Timberman wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hello!
On Nov 30, 2010, at 5:09 AM, Seth Chisamore wrote:
The knife bootstrap subcommand does not enable any sort of init
script. If you would like this behavior please add the
chef::bootstrap_client recipe to your nodes run list (preferably in
some sort of base role).
I recently updated the Chef cookbook (version 0.22.0) to have a new recipe called 'client_service' that will only set up the desired service style - init_style (runit, init script, daemontools, or bluepill). The bootstrap_client also drops off the config file /etc/chef/client.rb, but when using the bootstrap subcommand for knife, or ec2 server create, it will already have the config file set up.
Cheers!
- --
Opscode, Inc
Joshua Timberman, Technical Evangelist
IRC, Skype, Twitter, Github: jtimberman
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (Darwin)
iEYEARECAAYFAkz1GugACgkQO97WSdVpzT2L9QCeOJC1/jNnmUpnQxORmWV+sCQf
1yAAn03nO+I06jpyZVfBiaR1BuDLDUz6
=RoNt
-----END PGP SIGNATURE-----
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Darwin)
iEYEARECAAYFAkz1N/cACgkQhwMtGgRKzT16tgCcDzxZiov0RsMILnRFso2mUJ6a
7NIAniI/jUK91IerqxzdX9R9e48N4ziD
=GrBy
-----END PGP SIGNATURE-----
|