summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorAdam Jacob <adam@hjksolutions.com>2008-04-27 22:44:28 -0700
committerAdam Jacob <adam@hjksolutions.com>2008-04-27 22:44:28 -0700
commitbab9b3459fe41849970e50cb9b96ea62370fbad0 (patch)
treec685354e2798bf08905dca308f9c58a52b94e33a /bin
parent39c0a0994cb5af59e4fbb9fefbc487f6bc21d2fb (diff)
downloadchef-bab9b3459fe41849970e50cb9b96ea62370fbad0.tar.gz
chef compiles
Diffstat (limited to 'bin')
-rwxr-xr-xbin/chef-solo13
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