diff options
author | Adam Jacob <adam@hjksolutions.com> | 2008-04-27 22:44:28 -0700 |
---|---|---|
committer | Adam Jacob <adam@hjksolutions.com> | 2008-04-27 22:44:28 -0700 |
commit | bab9b3459fe41849970e50cb9b96ea62370fbad0 (patch) | |
tree | c685354e2798bf08905dca308f9c58a52b94e33a /bin/chef-solo | |
parent | 39c0a0994cb5af59e4fbb9fefbc487f6bc21d2fb (diff) | |
download | chef-bab9b3459fe41849970e50cb9b96ea62370fbad0.tar.gz |
chef compiles
Diffstat (limited to 'bin/chef-solo')
-rwxr-xr-x | bin/chef-solo | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/bin/chef-solo b/bin/chef-solo index 0d49414f5a..747c672b32 100755 --- a/bin/chef-solo +++ b/bin/chef-solo @@ -60,6 +60,9 @@ end # Load our config file Chef::Config.from_file(config[:config_file]) +if config[:log_level] + Chef::Log.level(config[:log_level].to_sym) +end # Find out our own hostname. node_name = Facter["fqdn"].value @@ -73,13 +76,7 @@ compile.load_node(node_name) Facter.each do |field, value| compile.node[field.to_sym] = value end - -puts compile.node.to_yaml - compile.load_definitions -puts compile.definitions.to_yaml - compile.load_recipes -puts compile.resource_collection.to_yaml - -puts compile.to_yaml +cr = Chef::Runner.new(compile.node, compile.collection) +cr.converge
\ No newline at end of file |