Created
September 14, 2011 23:21
-
-
Save jtimberman/1218092 to your computer and use it in GitHub Desktop.
Super Simple Chef Solo - non-root rvm install w/ ruby 1.9.2, chef 0.10.4 on CentOS 6.0.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[jtimberman@centos6 ~]$ git clone git://github.com/opscode/chef-repo.git | |
Initialized empty Git repository in /home/jtimberman/chef-repo/.git/ | |
remote: Counting objects: 199, done. | |
remote: Compressing objects: 100% (118/118), done. | |
remote: Total 199 (delta 72), reused 161 (delta 48) | |
Receiving objects: 100% (199/199), 30.19 KiB, done. | |
Resolving deltas: 100% (72/72), done. | |
[jtimberman@centos6 ~]$ cd chef-repo | |
[jtimberman@centos6 chef-repo]$ mkdir cookbooks/example/recipes | |
[jtimberman@centos6 chef-repo]$ echo '{"run_list": ["recipe[example]"]}' >> solo.json | |
[jtimberman@centos6 chef-repo]$ echo -ne "file_cache_path '$HOME/.chef/cache'\nbackup_path '$HOME/.chef/backup'\nchecksum_path '$HOME/.chef/checksums'\ncookbook_path '$HOME/chef-repo/cookbooks'\n" > solo.rb | |
[jtimberman@centos6 chef-repo]$ cat solo.rbfile_cache_path '/home/jtimberman/.chef/cache' | |
backup_path '/home/jtimberman/.chef/backup' | |
checksum_path '/home/jtimberman/.chef/checksums' | |
cookbook_path '/home/jtimberman/chef-repo/cookbooks' | |
[jtimberman@centos6 chef-repo]$ vi cookbooks/example/recipes/default.rb | |
[jtimberman@centos6 chef-repo]$ cat cookbooks/example/recipes/default.rb | |
file "/tmp/Hello_World" do | |
content "Hello, world!" | |
end | |
[jtimberman@centos6 chef-repo]$ chef-solo -c solo.rb -j solo.json | |
[Mon, 12 Sep 2011 17:06:01 -0600] INFO: *** Chef 0.10.4 *** | |
[Mon, 12 Sep 2011 17:06:01 -0600] INFO: Setting the run_list to ["recipe[example]"] from JSON | |
[Mon, 12 Sep 2011 17:06:01 -0600] INFO: Run List is [recipe[example]] | |
[Mon, 12 Sep 2011 17:06:01 -0600] INFO: Run List expands to [example] | |
[Mon, 12 Sep 2011 17:06:01 -0600] INFO: Starting Chef Run for localhost | |
[Mon, 12 Sep 2011 17:06:01 -0600] INFO: Processing file[/tmp/Hello_World] action create (example::default line 1) | |
[Mon, 12 Sep 2011 17:06:01 -0600] INFO: file[/tmp/foo] created file /tmp/Hello_World | |
[Mon, 12 Sep 2011 17:06:01 -0600] INFO: Chef Run complete in 0.004812239 seconds | |
[Mon, 12 Sep 2011 17:06:01 -0600] INFO: Running report handlers | |
[Mon, 12 Sep 2011 17:06:01 -0600] INFO: Report handlers complete |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment