[chef] chef solo launch without sudo reports config file missing - then runs it


Chronological Thread 
  • From: Hedge Hog < >
  • To:
  • Subject: [chef] chef solo launch without sudo reports config file missing - then runs it
  • Date: Tue, 28 Jun 2011 08:53:16 +1000
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type :content-transfer-encoding; b=bHc8/eX/o6SzT9TK1+UZ/o5B7oU4bCoLpfqJt2d37exq9TNF4WvOa6JhXRY466AK4i GoPO/DFkNolrC6X1bTZxFcx5eRMoIo6h74DjeuJp7eOghvp84Ms94yhnZXvaZ5pAd7ws Zk5pSuAvNnMRJVUKFC6JxPUEhYRcNgBIHyXO0=

Hi,
When you run `chef-solo -c solo.rb` as an ordinary user, Chef finds
and processes the config file, but claims it cannot even find the
file.

[Mon, 27 Jun 2011 22:29:45 +0000] WARN:
*****************************************
[Mon, 27 Jun 2011 22:29:45 +0000] WARN: Can not find config file:
chef-solo.rb, using defaults.
[Mon, 27 Jun 2011 22:29:45 +0000] WARN: Permission denied -
/var/log/chef-solo/chef-solo.log
[Mon, 27 Jun 2011 22:29:45 +0000] WARN:
*****************************************
[Mon, 27 Jun 2011 22:29:45 +0000] INFO: *** Chef 0.10.0 ***

Of course later the Chef run fails _if_ it needs sudo permissions, but
not before.
To be clear, I'm not suggesting an early exit is the desired behavior,
rather the false-error report is the issue.
Chef processing the solo.rb file is what I desire, I want to test that
what is contained in the solo.rb file is executed without the whole
Chef run being done.
Nonetheless, the file not found error report is a bug.

HTH

-- 
πόλλ' οἶδ ἀλώπηξ, ἀλλ' ἐχῖνος ἓν μέγα
[The fox knows many things, but the hedgehog knows one big thing.]
  Archilochus, Greek poet (c. 680 BC – c. 645 BC)
http://hedgehogshiatus.com


  • [chef] chef solo launch without sudo reports config file missing - then runs it, Hedge Hog, 06/27/2011

Archive powered by MHonArc 2.6.16.

§