rmm-chef 0.10.0.rc.0
Sign up to get free protection for your applications and to get access to all the features.
- data/LICENSE +201 -0
- data/README.rdoc +171 -0
- data/bin/chef-client +26 -0
- data/bin/chef-solo +25 -0
- data/bin/knife +26 -0
- data/bin/shef +34 -0
- data/distro/README +2 -0
- data/distro/arch/etc/conf.d/chef-client.conf +5 -0
- data/distro/arch/etc/conf.d/chef-expander.conf +8 -0
- data/distro/arch/etc/conf.d/chef-server-webui.conf +10 -0
- data/distro/arch/etc/conf.d/chef-server.conf +10 -0
- data/distro/arch/etc/conf.d/chef-solr.conf +8 -0
- data/distro/arch/etc/rc.d/chef-client +76 -0
- data/distro/arch/etc/rc.d/chef-expander +78 -0
- data/distro/arch/etc/rc.d/chef-server +78 -0
- data/distro/arch/etc/rc.d/chef-server-webui +78 -0
- data/distro/arch/etc/rc.d/chef-solr +78 -0
- data/distro/common/html/chef-client.8.html +141 -0
- data/distro/common/html/chef-expander-cluster.8.html +164 -0
- data/distro/common/html/chef-expanderctl.8.html +146 -0
- data/distro/common/html/chef-server-webui.8.html +185 -0
- data/distro/common/html/chef-server.8.html +182 -0
- data/distro/common/html/chef-solo.8.html +191 -0
- data/distro/common/html/chef-solr.8.html +163 -0
- data/distro/common/html/knife-bootstrap.1.html +241 -0
- data/distro/common/html/knife-client.1.html +219 -0
- data/distro/common/html/knife-configure.1.html +170 -0
- data/distro/common/html/knife-cookbook-site.1.html +239 -0
- data/distro/common/html/knife-cookbook.1.html +373 -0
- data/distro/common/html/knife-data-bag.1.html +234 -0
- data/distro/common/html/knife-environment.1.html +267 -0
- data/distro/common/html/knife-exec.1.html +134 -0
- data/distro/common/html/knife-index.1.html +125 -0
- data/distro/common/html/knife-node.1.html +270 -0
- data/distro/common/html/knife-recipe.1.html +92 -0
- data/distro/common/html/knife-role.1.html +200 -0
- data/distro/common/html/knife-search.1.html +143 -0
- data/distro/common/html/knife-ssh.1.html +156 -0
- data/distro/common/html/knife-status.1.html +128 -0
- data/distro/common/html/knife-tag.1.html +137 -0
- data/distro/common/html/knife.1.html +295 -0
- data/distro/common/html/shef.1.html +283 -0
- data/distro/common/man/man1/knife-bootstrap.1 +189 -0
- data/distro/common/man/man1/knife-client.1 +99 -0
- data/distro/common/man/man1/knife-configure.1 +88 -0
- data/distro/common/man/man1/knife-cookbook-site.1 +137 -0
- data/distro/common/man/man1/knife-cookbook.1 +320 -0
- data/distro/common/man/man1/knife-data-bag.1 +130 -0
- data/distro/common/man/man1/knife-environment.1 +178 -0
- data/distro/common/man/man1/knife-exec.1 +46 -0
- data/distro/common/man/man1/knife-index.1 +29 -0
- data/distro/common/man/man1/knife-node.1 +154 -0
- data/distro/common/man/man1/knife-role.1 +88 -0
- data/distro/common/man/man1/knife-search.1 +61 -0
- data/distro/common/man/man1/knife-ssh.1 +74 -0
- data/distro/common/man/man1/knife-status.1 +29 -0
- data/distro/common/man/man1/knife-tag.1 +43 -0
- data/distro/common/man/man1/knife.1 +251 -0
- data/distro/common/man/man1/shef.1 +256 -0
- data/distro/common/man/man8/chef-client.8 +84 -0
- data/distro/common/man/man8/chef-expander-cluster.8 +97 -0
- data/distro/common/man/man8/chef-expanderctl.8 +62 -0
- data/distro/common/man/man8/chef-server-webui.8 +155 -0
- data/distro/common/man/man8/chef-server.8 +147 -0
- data/distro/common/man/man8/chef-solo.8 +158 -0
- data/distro/common/man/man8/chef-solr.8 +114 -0
- data/distro/common/markdown/README +3 -0
- data/distro/common/markdown/man1/knife-bootstrap.mkd +138 -0
- data/distro/common/markdown/man1/knife-client.mkd +103 -0
- data/distro/common/markdown/man1/knife-configure.mkd +70 -0
- data/distro/common/markdown/man1/knife-cookbook-site.mkd +119 -0
- data/distro/common/markdown/man1/knife-cookbook.mkd +253 -0
- data/distro/common/markdown/man1/knife-data-bag.mkd +117 -0
- data/distro/common/markdown/man1/knife-environment.mkd +151 -0
- data/distro/common/markdown/man1/knife-exec.mkd +37 -0
- data/distro/common/markdown/man1/knife-index.mkd +30 -0
- data/distro/common/markdown/man1/knife-node.mkd +147 -0
- data/distro/common/markdown/man1/knife-role.mkd +85 -0
- data/distro/common/markdown/man1/knife-search.mkd +55 -0
- data/distro/common/markdown/man1/knife-ssh.mkd +62 -0
- data/distro/common/markdown/man1/knife-status.mkd +36 -0
- data/distro/common/markdown/man1/knife-tag.mkd +39 -0
- data/distro/common/markdown/man1/knife.mkd +189 -0
- data/distro/common/markdown/man1/shef.mkd +189 -0
- data/distro/common/markdown/man8/chef-client.mkd +65 -0
- data/distro/common/markdown/man8/chef-expander-cluster.mkd +82 -0
- data/distro/common/markdown/man8/chef-expanderctl.mkd +58 -0
- data/distro/common/markdown/man8/chef-server-webui.mkd +121 -0
- data/distro/common/markdown/man8/chef-server.mkd +121 -0
- data/distro/common/markdown/man8/chef-solo.mkd +107 -0
- data/distro/common/markdown/man8/chef-solr.mkd +85 -0
- data/distro/debian/etc/default/chef-client +4 -0
- data/distro/debian/etc/default/chef-expander +8 -0
- data/distro/debian/etc/default/chef-server +9 -0
- data/distro/debian/etc/default/chef-server-webui +9 -0
- data/distro/debian/etc/default/chef-solr +8 -0
- data/distro/debian/etc/init.d/chef-client +175 -0
- data/distro/debian/etc/init.d/chef-expander +176 -0
- data/distro/debian/etc/init.d/chef-server +122 -0
- data/distro/debian/etc/init.d/chef-server-webui +123 -0
- data/distro/debian/etc/init.d/chef-solr +176 -0
- data/distro/debian/etc/init/chef-client.conf +17 -0
- data/distro/debian/etc/init/chef-expander.conf +17 -0
- data/distro/debian/etc/init/chef-server-webui.conf +17 -0
- data/distro/debian/etc/init/chef-server.conf +17 -0
- data/distro/debian/etc/init/chef-solr.conf +17 -0
- data/distro/redhat/etc/init.d/chef-client +106 -0
- data/distro/redhat/etc/init.d/chef-expander +104 -0
- data/distro/redhat/etc/init.d/chef-server +112 -0
- data/distro/redhat/etc/init.d/chef-server-webui +112 -0
- data/distro/redhat/etc/init.d/chef-solr +104 -0
- data/distro/redhat/etc/logrotate.d/chef-client +8 -0
- data/distro/redhat/etc/logrotate.d/chef-expander +8 -0
- data/distro/redhat/etc/logrotate.d/chef-server +8 -0
- data/distro/redhat/etc/logrotate.d/chef-server-webui +8 -0
- data/distro/redhat/etc/logrotate.d/chef-solr +8 -0
- data/distro/redhat/etc/sysconfig/chef-client +15 -0
- data/distro/redhat/etc/sysconfig/chef-expander +7 -0
- data/distro/redhat/etc/sysconfig/chef-server +14 -0
- data/distro/redhat/etc/sysconfig/chef-server-webui +14 -0
- data/distro/redhat/etc/sysconfig/chef-solr +8 -0
- data/lib/chef.rb +40 -0
- data/lib/chef/api_client.rb +265 -0
- data/lib/chef/application.rb +152 -0
- data/lib/chef/application/agent.rb +18 -0
- data/lib/chef/application/client.rb +280 -0
- data/lib/chef/application/knife.rb +188 -0
- data/lib/chef/application/solo.rb +218 -0
- data/lib/chef/applications.rb +4 -0
- data/lib/chef/certificate.rb +194 -0
- data/lib/chef/checksum.rb +182 -0
- data/lib/chef/checksum_cache.rb +189 -0
- data/lib/chef/client.rb +366 -0
- data/lib/chef/config.rb +244 -0
- data/lib/chef/cookbook/chefignore.rb +66 -0
- data/lib/chef/cookbook/cookbook_collection.rb +45 -0
- data/lib/chef/cookbook/cookbook_version_loader.rb +173 -0
- data/lib/chef/cookbook/file_system_file_vendor.rb +56 -0
- data/lib/chef/cookbook/file_vendor.rb +48 -0
- data/lib/chef/cookbook/metadata.rb +629 -0
- data/lib/chef/cookbook/remote_file_vendor.rb +87 -0
- data/lib/chef/cookbook/syntax_check.rb +136 -0
- data/lib/chef/cookbook_loader.rb +103 -0
- data/lib/chef/cookbook_site_streaming_uploader.rb +244 -0
- data/lib/chef/cookbook_uploader.rb +151 -0
- data/lib/chef/cookbook_version.rb +1071 -0
- data/lib/chef/cookbook_version_selector.rb +168 -0
- data/lib/chef/couchdb.rb +246 -0
- data/lib/chef/daemon.rb +172 -0
- data/lib/chef/data_bag.rb +223 -0
- data/lib/chef/data_bag_item.rb +267 -0
- data/lib/chef/encrypted_data_bag_item.rb +126 -0
- data/lib/chef/environment.rb +449 -0
- data/lib/chef/exceptions.rb +153 -0
- data/lib/chef/file_access_control.rb +144 -0
- data/lib/chef/file_cache.rb +218 -0
- data/lib/chef/handler.rb +206 -0
- data/lib/chef/handler/error_report.rb +40 -0
- data/lib/chef/handler/json_file.rb +58 -0
- data/lib/chef/index_queue.rb +29 -0
- data/lib/chef/index_queue/amqp_client.rb +116 -0
- data/lib/chef/index_queue/consumer.rb +76 -0
- data/lib/chef/index_queue/indexable.rb +109 -0
- data/lib/chef/json_compat.rb +52 -0
- data/lib/chef/knife.rb +548 -0
- data/lib/chef/knife/bootstrap.rb +228 -0
- data/lib/chef/knife/bootstrap/archlinux-gems.erb +48 -0
- data/lib/chef/knife/bootstrap/centos5-gems.erb +50 -0
- data/lib/chef/knife/bootstrap/fedora13-gems.erb +39 -0
- data/lib/chef/knife/bootstrap/ubuntu10.04-apt.erb +32 -0
- data/lib/chef/knife/bootstrap/ubuntu10.04-gems.erb +48 -0
- data/lib/chef/knife/client_bulk_delete.rb +43 -0
- data/lib/chef/knife/client_create.rb +73 -0
- data/lib/chef/knife/client_delete.rb +48 -0
- data/lib/chef/knife/client_edit.rb +48 -0
- data/lib/chef/knife/client_list.rb +43 -0
- data/lib/chef/knife/client_reregister.rb +59 -0
- data/lib/chef/knife/client_show.rb +53 -0
- data/lib/chef/knife/configure.rb +149 -0
- data/lib/chef/knife/configure_client.rb +52 -0
- data/lib/chef/knife/cookbook_bulk_delete.rb +72 -0
- data/lib/chef/knife/cookbook_create.rb +274 -0
- data/lib/chef/knife/cookbook_delete.rb +149 -0
- data/lib/chef/knife/cookbook_download.rb +134 -0
- data/lib/chef/knife/cookbook_list.rb +53 -0
- data/lib/chef/knife/cookbook_metadata.rb +107 -0
- data/lib/chef/knife/cookbook_metadata_from_file.rb +44 -0
- data/lib/chef/knife/cookbook_show.rb +102 -0
- data/lib/chef/knife/cookbook_site_download.rb +70 -0
- data/lib/chef/knife/cookbook_site_install.rb +148 -0
- data/lib/chef/knife/cookbook_site_list.rb +60 -0
- data/lib/chef/knife/cookbook_site_search.rb +51 -0
- data/lib/chef/knife/cookbook_site_share.rb +114 -0
- data/lib/chef/knife/cookbook_site_show.rb +57 -0
- data/lib/chef/knife/cookbook_site_unshare.rb +56 -0
- data/lib/chef/knife/cookbook_site_vendor.rb +46 -0
- data/lib/chef/knife/cookbook_test.rb +93 -0
- data/lib/chef/knife/cookbook_upload.rb +169 -0
- data/lib/chef/knife/core/cookbook_scm_repo.rb +149 -0
- data/lib/chef/knife/core/generic_presenter.rb +184 -0
- data/lib/chef/knife/core/node_editor.rb +127 -0
- data/lib/chef/knife/core/node_presenter.rb +103 -0
- data/lib/chef/knife/core/object_loader.rb +75 -0
- data/lib/chef/knife/core/subcommand_loader.rb +112 -0
- data/lib/chef/knife/core/text_formatter.rb +100 -0
- data/lib/chef/knife/core/ui.rb +211 -0
- data/lib/chef/knife/data_bag_create.rb +95 -0
- data/lib/chef/knife/data_bag_delete.rb +51 -0
- data/lib/chef/knife/data_bag_edit.rb +94 -0
- data/lib/chef/knife/data_bag_from_file.rb +91 -0
- data/lib/chef/knife/data_bag_list.rb +46 -0
- data/lib/chef/knife/data_bag_show.rb +81 -0
- data/lib/chef/knife/environment_create.rb +53 -0
- data/lib/chef/knife/environment_delete.rb +45 -0
- data/lib/chef/knife/environment_edit.rb +45 -0
- data/lib/chef/knife/environment_from_file.rb +50 -0
- data/lib/chef/knife/environment_list.rb +42 -0
- data/lib/chef/knife/environment_show.rb +46 -0
- data/lib/chef/knife/exec.rb +51 -0
- data/lib/chef/knife/help.rb +102 -0
- data/lib/chef/knife/index_rebuild.rb +50 -0
- data/lib/chef/knife/node_bulk_delete.rb +80 -0
- data/lib/chef/knife/node_create.rb +50 -0
- data/lib/chef/knife/node_delete.rb +47 -0
- data/lib/chef/knife/node_edit.rb +72 -0
- data/lib/chef/knife/node_from_file.rb +50 -0
- data/lib/chef/knife/node_list.rb +46 -0
- data/lib/chef/knife/node_run_list_add.rb +67 -0
- data/lib/chef/knife/node_run_list_remove.rb +48 -0
- data/lib/chef/knife/node_show.rb +68 -0
- data/lib/chef/knife/recipe_list.rb +32 -0
- data/lib/chef/knife/role_bulk_delete.rb +70 -0
- data/lib/chef/knife/role_create.rb +55 -0
- data/lib/chef/knife/role_delete.rb +47 -0
- data/lib/chef/knife/role_edit.rb +48 -0
- data/lib/chef/knife/role_from_file.rb +54 -0
- data/lib/chef/knife/role_list.rb +43 -0
- data/lib/chef/knife/role_show.rb +54 -0
- data/lib/chef/knife/search.rb +138 -0
- data/lib/chef/knife/ssh.rb +329 -0
- data/lib/chef/knife/status.rb +104 -0
- data/lib/chef/knife/tag_create.rb +52 -0
- data/lib/chef/knife/tag_delete.rb +60 -0
- data/lib/chef/knife/tag_list.rb +47 -0
- data/lib/chef/log.rb +39 -0
- data/lib/chef/mash.rb +211 -0
- data/lib/chef/mixin/check_helper.rb +31 -0
- data/lib/chef/mixin/checksum.rb +32 -0
- data/lib/chef/mixin/command.rb +221 -0
- data/lib/chef/mixin/command/unix.rb +215 -0
- data/lib/chef/mixin/command/windows.rb +76 -0
- data/lib/chef/mixin/convert_to_class_name.rb +63 -0
- data/lib/chef/mixin/create_path.rb +56 -0
- data/lib/chef/mixin/deep_merge.rb +225 -0
- data/lib/chef/mixin/deprecation.rb +65 -0
- data/lib/chef/mixin/from_file.rb +50 -0
- data/lib/chef/mixin/language.rb +165 -0
- data/lib/chef/mixin/language_include_attribute.rb +61 -0
- data/lib/chef/mixin/language_include_recipe.rb +52 -0
- data/lib/chef/mixin/params_validate.rb +225 -0
- data/lib/chef/mixin/recipe_definition_dsl_core.rb +78 -0
- data/lib/chef/mixin/shell_out.rb +41 -0
- data/lib/chef/mixin/template.rb +95 -0
- data/lib/chef/mixin/xml_escape.rb +140 -0
- data/lib/chef/mixins.rb +15 -0
- data/lib/chef/monkey_patches/dir.rb +36 -0
- data/lib/chef/monkey_patches/numeric.rb +7 -0
- data/lib/chef/monkey_patches/object.rb +9 -0
- data/lib/chef/monkey_patches/regexp.rb +34 -0
- data/lib/chef/monkey_patches/string.rb +28 -0
- data/lib/chef/monkey_patches/tempfile.rb +64 -0
- data/lib/chef/nil_argument.rb +3 -0
- data/lib/chef/node.rb +677 -0
- data/lib/chef/node/attribute.rb +487 -0
- data/lib/chef/openid_registration.rb +187 -0
- data/lib/chef/platform.rb +409 -0
- data/lib/chef/provider.rb +124 -0
- data/lib/chef/provider/breakpoint.rb +36 -0
- data/lib/chef/provider/cookbook_file.rb +100 -0
- data/lib/chef/provider/cron.rb +186 -0
- data/lib/chef/provider/cron/solaris.rb +195 -0
- data/lib/chef/provider/deploy.rb +343 -0
- data/lib/chef/provider/deploy/revision.rb +80 -0
- data/lib/chef/provider/deploy/timestamped.rb +33 -0
- data/lib/chef/provider/directory.rb +72 -0
- data/lib/chef/provider/env.rb +152 -0
- data/lib/chef/provider/env/windows.rb +75 -0
- data/lib/chef/provider/erl_call.rb +101 -0
- data/lib/chef/provider/execute.rb +65 -0
- data/lib/chef/provider/file.rb +222 -0
- data/lib/chef/provider/git.rb +230 -0
- data/lib/chef/provider/group.rb +133 -0
- data/lib/chef/provider/group/aix.rb +70 -0
- data/lib/chef/provider/group/dscl.rb +121 -0
- data/lib/chef/provider/group/gpasswd.rb +53 -0
- data/lib/chef/provider/group/groupadd.rb +81 -0
- data/lib/chef/provider/group/pw.rb +84 -0
- data/lib/chef/provider/group/usermod.rb +57 -0
- data/lib/chef/provider/group/windows.rb +79 -0
- data/lib/chef/provider/http_request.rb +122 -0
- data/lib/chef/provider/ifconfig.rb +134 -0
- data/lib/chef/provider/link.rb +164 -0
- data/lib/chef/provider/log.rb +54 -0
- data/lib/chef/provider/mdadm.rb +91 -0
- data/lib/chef/provider/mount.rb +114 -0
- data/lib/chef/provider/mount/mount.rb +232 -0
- data/lib/chef/provider/mount/windows.rb +81 -0
- data/lib/chef/provider/ohai.rb +42 -0
- data/lib/chef/provider/package.rb +164 -0
- data/lib/chef/provider/package/apt.rb +110 -0
- data/lib/chef/provider/package/dpkg.rb +112 -0
- data/lib/chef/provider/package/easy_install.rb +136 -0
- data/lib/chef/provider/package/freebsd.rb +122 -0
- data/lib/chef/provider/package/macports.rb +105 -0
- data/lib/chef/provider/package/pacman.rb +101 -0
- data/lib/chef/provider/package/portage.rb +135 -0
- data/lib/chef/provider/package/rpm.rb +101 -0
- data/lib/chef/provider/package/rubygems.rb +462 -0
- data/lib/chef/provider/package/solaris.rb +127 -0
- data/lib/chef/provider/package/yum-dump.py +128 -0
- data/lib/chef/provider/package/yum.rb +261 -0
- data/lib/chef/provider/package/zypper.rb +127 -0
- data/lib/chef/provider/remote_directory.rb +139 -0
- data/lib/chef/provider/remote_file.rb +118 -0
- data/lib/chef/provider/route.rb +193 -0
- data/lib/chef/provider/ruby_block.rb +34 -0
- data/lib/chef/provider/script.rb +55 -0
- data/lib/chef/provider/service.rb +122 -0
- data/lib/chef/provider/service/arch.rb +109 -0
- data/lib/chef/provider/service/debian.rb +130 -0
- data/lib/chef/provider/service/freebsd.rb +154 -0
- data/lib/chef/provider/service/gentoo.rb +53 -0
- data/lib/chef/provider/service/init.rb +71 -0
- data/lib/chef/provider/service/insserv.rb +52 -0
- data/lib/chef/provider/service/redhat.rb +60 -0
- data/lib/chef/provider/service/simple.rb +120 -0
- data/lib/chef/provider/service/solaris.rb +85 -0
- data/lib/chef/provider/service/upstart.rb +192 -0
- data/lib/chef/provider/service/windows.rb +146 -0
- data/lib/chef/provider/subversion.rb +197 -0
- data/lib/chef/provider/template.rb +104 -0
- data/lib/chef/provider/user.rb +186 -0
- data/lib/chef/provider/user/dscl.rb +280 -0
- data/lib/chef/provider/user/pw.rb +113 -0
- data/lib/chef/provider/user/useradd.rb +137 -0
- data/lib/chef/provider/user/windows.rb +124 -0
- data/lib/chef/providers.rb +93 -0
- data/lib/chef/recipe.rb +128 -0
- data/lib/chef/resource.rb +554 -0
- data/lib/chef/resource/apt_package.rb +34 -0
- data/lib/chef/resource/bash.rb +33 -0
- data/lib/chef/resource/breakpoint.rb +35 -0
- data/lib/chef/resource/cookbook_file.rb +45 -0
- data/lib/chef/resource/cron.rb +188 -0
- data/lib/chef/resource/csh.rb +33 -0
- data/lib/chef/resource/deploy.rb +371 -0
- data/lib/chef/resource/deploy_revision.rb +40 -0
- data/lib/chef/resource/directory.rb +76 -0
- data/lib/chef/resource/dpkg_package.rb +34 -0
- data/lib/chef/resource/easy_install_package.rb +57 -0
- data/lib/chef/resource/env.rb +58 -0
- data/lib/chef/resource/erl_call.rb +83 -0
- data/lib/chef/resource/execute.rb +127 -0
- data/lib/chef/resource/file.rb +99 -0
- data/lib/chef/resource/freebsd_package.rb +35 -0
- data/lib/chef/resource/gem_package.rb +53 -0
- data/lib/chef/resource/git.rb +37 -0
- data/lib/chef/resource/group.rb +70 -0
- data/lib/chef/resource/http_request.rb +61 -0
- data/lib/chef/resource/ifconfig.rb +134 -0
- data/lib/chef/resource/link.rb +78 -0
- data/lib/chef/resource/log.rb +62 -0
- data/lib/chef/resource/macports_package.rb +29 -0
- data/lib/chef/resource/mdadm.rb +82 -0
- data/lib/chef/resource/mount.rb +135 -0
- data/lib/chef/resource/ohai.rb +40 -0
- data/lib/chef/resource/package.rb +80 -0
- data/lib/chef/resource/pacman_package.rb +33 -0
- data/lib/chef/resource/perl.rb +33 -0
- data/lib/chef/resource/portage_package.rb +33 -0
- data/lib/chef/resource/python.rb +33 -0
- data/lib/chef/resource/remote_directory.rb +109 -0
- data/lib/chef/resource/remote_file.rb +83 -0
- data/lib/chef/resource/route.rb +135 -0
- data/lib/chef/resource/rpm_package.rb +34 -0
- data/lib/chef/resource/ruby.rb +33 -0
- data/lib/chef/resource/ruby_block.rb +40 -0
- data/lib/chef/resource/scm.rb +147 -0
- data/lib/chef/resource/script.rb +60 -0
- data/lib/chef/resource/service.rb +160 -0
- data/lib/chef/resource/solaris_package.rb +36 -0
- data/lib/chef/resource/subversion.rb +36 -0
- data/lib/chef/resource/template.rb +69 -0
- data/lib/chef/resource/timestamped_deploy.rb +31 -0
- data/lib/chef/resource/user.rb +130 -0
- data/lib/chef/resource/yum_package.rb +43 -0
- data/lib/chef/resource_collection.rb +217 -0
- data/lib/chef/resource_collection/stepable_iterator.rb +124 -0
- data/lib/chef/resource_definition.rb +67 -0
- data/lib/chef/resource_definition_list.rb +38 -0
- data/lib/chef/resources.rb +64 -0
- data/lib/chef/rest.rb +392 -0
- data/lib/chef/rest/auth_credentials.rb +71 -0
- data/lib/chef/rest/cookie_jar.rb +31 -0
- data/lib/chef/rest/rest_request.rb +213 -0
- data/lib/chef/role.rb +342 -0
- data/lib/chef/run_context.rb +126 -0
- data/lib/chef/run_list.rb +165 -0
- data/lib/chef/run_list/run_list_expansion.rb +193 -0
- data/lib/chef/run_list/run_list_item.rb +92 -0
- data/lib/chef/run_list/versioned_recipe_list.rb +68 -0
- data/lib/chef/run_status.rb +121 -0
- data/lib/chef/runner.rb +92 -0
- data/lib/chef/sandbox.rb +153 -0
- data/lib/chef/search/query.rb +65 -0
- data/lib/chef/shef.rb +327 -0
- data/lib/chef/shef/ext.rb +569 -0
- data/lib/chef/shef/model_wrapper.rb +120 -0
- data/lib/chef/shef/shef_rest.rb +28 -0
- data/lib/chef/shef/shef_session.rb +284 -0
- data/lib/chef/shell_out.rb +250 -0
- data/lib/chef/shell_out/unix.rb +223 -0
- data/lib/chef/shell_out/windows.rb +98 -0
- data/lib/chef/solr_query.rb +187 -0
- data/lib/chef/solr_query/lucene.treetop +150 -0
- data/lib/chef/solr_query/lucene_nodes.rb +285 -0
- data/lib/chef/solr_query/query_transform.rb +65 -0
- data/lib/chef/solr_query/solr_http_request.rb +118 -0
- data/lib/chef/streaming_cookbook_uploader.rb +201 -0
- data/lib/chef/tasks/chef_repo.rake +330 -0
- data/lib/chef/util/file_edit.rb +122 -0
- data/lib/chef/util/windows.rb +56 -0
- data/lib/chef/util/windows/net_group.rb +101 -0
- data/lib/chef/util/windows/net_use.rb +121 -0
- data/lib/chef/util/windows/net_user.rb +198 -0
- data/lib/chef/util/windows/volume.rb +59 -0
- data/lib/chef/version.rb +23 -0
- data/lib/chef/version_class.rb +70 -0
- data/lib/chef/version_constraint.rb +116 -0
- data/lib/chef/webui_user.rb +231 -0
- metadata +759 -0
@@ -0,0 +1,39 @@
|
|
1
|
+
knife-tag(1) -- Apply tags to nodes on a Chef Server
|
2
|
+
========================================
|
3
|
+
|
4
|
+
## SYNOPSIS
|
5
|
+
|
6
|
+
__knife__ __tag__ _subcommand_ _(options)_
|
7
|
+
|
8
|
+
## TAG SUBCOMMANDS
|
9
|
+
The following `tag` subcommands are available:
|
10
|
+
|
11
|
+
## CREATE
|
12
|
+
__knife tag create__ _node_ _tag_ [_..._]
|
13
|
+
|
14
|
+
Adds one or more tags to _node_
|
15
|
+
|
16
|
+
## DELETE
|
17
|
+
__knife tag delete__ _node_ _tag_ [_..._]
|
18
|
+
|
19
|
+
Removes one or more tags from _node_
|
20
|
+
|
21
|
+
## LIST
|
22
|
+
__knife tag list__ _node_
|
23
|
+
|
24
|
+
Lists the tags applied to _node_
|
25
|
+
|
26
|
+
|
27
|
+
## SEE ALSO
|
28
|
+
__knife-node(1)__
|
29
|
+
|
30
|
+
## AUTHOR
|
31
|
+
Chef was written by Adam Jacob <adam@opscode.com> with many contributions from the community.
|
32
|
+
|
33
|
+
## DOCUMENTATION
|
34
|
+
This manual page was written by Daniel DeLeo <dan@opscode.com>.
|
35
|
+
Permission is granted to copy, distribute and / or modify this document under the terms of the Apache 2.0 License.
|
36
|
+
|
37
|
+
## CHEF
|
38
|
+
Knife is distributed with Chef. <http://wiki.opscode.com/display/chef/Home>
|
39
|
+
|
@@ -0,0 +1,189 @@
|
|
1
|
+
knife(1) -- Chef Server API client utility
|
2
|
+
========================================
|
3
|
+
|
4
|
+
## SYNOPSIS
|
5
|
+
|
6
|
+
__knife__ _sub-command_ [_argument_...] _(options)_
|
7
|
+
|
8
|
+
## DESCRIPTION
|
9
|
+
|
10
|
+
Knife is a command-line utility used to manage data on a Chef server
|
11
|
+
through the HTTP(S) API. Knife is organized into groups of subcommands
|
12
|
+
centered around the various object types in Chef. Each category of
|
13
|
+
subcommand is documented in its own manual page. Available topics are:
|
14
|
+
|
15
|
+
* bootstrap
|
16
|
+
* client
|
17
|
+
* configure
|
18
|
+
* cookbook-site
|
19
|
+
* cookbook
|
20
|
+
* data-bag
|
21
|
+
* environment
|
22
|
+
* exec
|
23
|
+
* index
|
24
|
+
* node
|
25
|
+
* recipe
|
26
|
+
* role
|
27
|
+
* search
|
28
|
+
* ssh
|
29
|
+
* status
|
30
|
+
* tag
|
31
|
+
|
32
|
+
If the knife manuals are in your `MANPATH`, you can access help for the
|
33
|
+
above topics using `man knife-TOPIC`; otherwise, you can view the
|
34
|
+
documentation using `knife help TOPIC`.
|
35
|
+
|
36
|
+
## OPTIONS
|
37
|
+
* `-s`, `--server-url` URL:
|
38
|
+
Chef Server URL, corresponds to `Chef::Config` `chef_server_url`.
|
39
|
+
* `-k`, `--key` KEY:
|
40
|
+
API Client Key, corresponds to `Chef::Config` `client_key`.
|
41
|
+
* `-c`, `--config` CONFIG:
|
42
|
+
The configuration file to use
|
43
|
+
* `-e`, `--editor` EDITOR:
|
44
|
+
Set the editor to use for interactive commands
|
45
|
+
* `-F`, `--format` FORMAT:
|
46
|
+
Which format to use for output
|
47
|
+
* `-l`, `--log_level` LEVEL:
|
48
|
+
Set the log level (debug, info, warn, error, fatal), corresponds to `Chef::Config` `log_level`.
|
49
|
+
* `-L`, `--logfile` LOGLOCATION:
|
50
|
+
Set the log file location, defaults to STDOUT, corresponds to `Chef::Config` `log_location`.
|
51
|
+
* `-n`, `--no-editor`:
|
52
|
+
Do not open EDITOR, just accept the data as is
|
53
|
+
* `-u`, `--user` USER:
|
54
|
+
API Client Username, corresponds to `Chef::Config` `node_name`.
|
55
|
+
* `-p`, `--print-after`:
|
56
|
+
Show the data after a destructive operation
|
57
|
+
* `-v`, `--version`:
|
58
|
+
Show chef version
|
59
|
+
* `-y`, `--yes`:
|
60
|
+
Say yes to all prompts for confirmation
|
61
|
+
* `-h`, `--help`:
|
62
|
+
Show the available options for a command.
|
63
|
+
|
64
|
+
## SUB-COMMANDS
|
65
|
+
|
66
|
+
Sub-commands that operate on the basic Chef data types are structured as
|
67
|
+
_NOUN verb NOUN (options)_. For all data types, the following commands
|
68
|
+
are available:
|
69
|
+
|
70
|
+
* create (create)
|
71
|
+
* list and show (read)
|
72
|
+
* edit (update)
|
73
|
+
* delete (destroy)
|
74
|
+
|
75
|
+
Knife also includes commands that take actions other than displaying or
|
76
|
+
modifying data on the Chef Server, such as __knife-ssh(1)__.
|
77
|
+
|
78
|
+
## CONFIGURATION
|
79
|
+
|
80
|
+
The knife configuration file is a Ruby DSL to set configuration
|
81
|
+
parameters for Knife's __GENERAL OPTIONS__. The default location for the
|
82
|
+
config file is `~/.chef/knife.rb`. If managing multiple Chef
|
83
|
+
repositories, per-repository config files can be created. The file must
|
84
|
+
be `.chef/knife.rb` in the current directory of the repository.
|
85
|
+
|
86
|
+
If the config file exists, knife uses these settings for __GENERAL OPTIONS__ defaults.
|
87
|
+
|
88
|
+
* `node_name`:
|
89
|
+
User or client identity (i.e., _name_) to use for authenticating
|
90
|
+
requests to the Chef Server.
|
91
|
+
* `client_key`:
|
92
|
+
Private key file to authenticate to the Chef server. Corresponds to the
|
93
|
+
`-k` or `--key` option.
|
94
|
+
* `chef_server_url`:
|
95
|
+
URL of the Chef server. Corresponds to the `-s` or `--server-url`
|
96
|
+
option. This is requested from the user when running this sub-command.
|
97
|
+
* `cache_type`:
|
98
|
+
The type of cache to use. Default is BasicFile. This can be any type of
|
99
|
+
Cache that moneta supports: BasicFile, Berkeley, Couch, DataMapper,
|
100
|
+
File, LMC, Memcache, Memory, MongoDB, Redis, Rufus, S3, SDBM, Tyrant,
|
101
|
+
Xattr, YAML.
|
102
|
+
* `cache_options`:
|
103
|
+
Specifies various options to use for caching. These options are
|
104
|
+
dependent on the `cache_type`.
|
105
|
+
* `validation_client_name`:
|
106
|
+
Specifies the name of the client used to validate new clients.
|
107
|
+
* `validation_key`:
|
108
|
+
Specifies the private key file to use when bootstrapping new hosts.
|
109
|
+
See knife-client(1) for more information about the validation
|
110
|
+
client.
|
111
|
+
* `cookbook_copyright`, `cookbook_email`, `cookbook_license`
|
112
|
+
Used by `knife cookbook create` sub-command to specify the copyright
|
113
|
+
holder, maintainer email and license (respectively) for new cookbooks.
|
114
|
+
The copyright holder is listed as the maintainer in the cookbook's
|
115
|
+
metadata and as the Copyright in the comments of the default recipe. The
|
116
|
+
maintainer email is used in the cookbook metadata. The license
|
117
|
+
determines what preamble to put in the comment of the default recipe,
|
118
|
+
and is listed as the license in the cookbook metadata. Currently
|
119
|
+
supported licenses are "apachev2" and "none". Any other values will
|
120
|
+
result in an empty license in the metadata (needs to be filled in by the
|
121
|
+
author), and no comment preamble in the default recipe.
|
122
|
+
|
123
|
+
## FILES
|
124
|
+
|
125
|
+
_~/.chef/knife.rb_
|
126
|
+
|
127
|
+
Ruby DSL configuration file for knife. See __CONFIGURATION__.
|
128
|
+
|
129
|
+
## CHEF WORKFLOW
|
130
|
+
|
131
|
+
When working with Chef and Knife in the local repository, the recommended workflow outline looks like:
|
132
|
+
|
133
|
+
* Create repository. A skeleton sample is provided at _http://github.com/opscode/chef-repo/_.
|
134
|
+
* Configure knife, see __CONFIGURATION__.
|
135
|
+
* Download cookbooks from the Opscode cookbooks site, see __COOKBOOK SITE SUB-COMMANDS__.
|
136
|
+
* Or, create new cookbooks, see `cookbook create` sub-command.
|
137
|
+
* Commit changes to the version control system. See your tool's documentation.
|
138
|
+
* Upload cookbooks to the Chef Server, see __COOKBOOK SUB-COMMANDS__.
|
139
|
+
* Launch instances in the Cloud, OR provision new hosts; see __CLOUD COMPUTING SUB-COMMANDS__ and __BOOTSTRAP SUB-COMMANDS__.
|
140
|
+
* Watch Chef configure systems!
|
141
|
+
|
142
|
+
A note about git: Opscode and many folks in the Chef community use git,
|
143
|
+
but it is not required, except in the case of the `cookbook site vendor`
|
144
|
+
sub-command, as it uses git directly. Version control is strongly
|
145
|
+
recommended though, and git fits with a lot of the workflow paradigms.
|
146
|
+
|
147
|
+
## EXAMPLES
|
148
|
+
|
149
|
+
|
150
|
+
## ENVIRONMENT
|
151
|
+
* `EDITOR`:
|
152
|
+
The text editor to use for editing data. The --editor option takes
|
153
|
+
precedence over this value, and the --no-editor option supresses
|
154
|
+
data editing entirely.
|
155
|
+
|
156
|
+
## SEE ALSO
|
157
|
+
__chef-client(8)__ __chef-server(8)__ __shef(1)__
|
158
|
+
|
159
|
+
__knife-bootstrap(1)__ __knife-client(1)__ __knife-configure(1)__
|
160
|
+
__knife-cookbook-site(1)__ __knife-cookbook(1)__ __knife-data-bag(1)__
|
161
|
+
__knife-environment(1)__ __knife-exec(1)__ __knife-index(1)__
|
162
|
+
__knife-node(1)__ __knife-recipe(1)__ __knife-role(1)__
|
163
|
+
__knife-search(1)__ __knife-ssh(1)__ __knife-tag(1)__
|
164
|
+
|
165
|
+
Complete Chef documentation is available online: <http://wiki.opscode.com/display/chef/Home/>
|
166
|
+
|
167
|
+
JSON is JavaScript Object Notation <http://json.org/>
|
168
|
+
|
169
|
+
SOLR is an open source search engine. <http://lucene.apache.org/solr/>
|
170
|
+
|
171
|
+
__git(1)__ is a version control system <http://git-scm.com/>
|
172
|
+
|
173
|
+
This manual page was generated from Markdown with __ronn(1)__ <http://rtomayko.github.com/ronn/ronn.1.html>
|
174
|
+
|
175
|
+
## AUTHOR
|
176
|
+
Chef was written by Adam Jacob <adam@opscode.com> of Opscode
|
177
|
+
(<http://www.opscode.com>), with contributions from the community.
|
178
|
+
|
179
|
+
## DOCUMENTATION
|
180
|
+
This manual page was written by Joshua Timberman <joshua@opscode.com>.
|
181
|
+
|
182
|
+
## LICENSE
|
183
|
+
Both Chef and this documentation are released under the terms of the
|
184
|
+
Apache 2.0 License. You may view the license online: <http://www.apache.org/licenses/LICENSE-2.0.html>
|
185
|
+
On some systems, the complete text of the Apache 2.0 License may be found in `/usr/share/common-licenses/Apache-2.0`.
|
186
|
+
|
187
|
+
## CHEF
|
188
|
+
Knife is distributed with Chef. <http://wiki.opscode.com/display/chef/Home>
|
189
|
+
|
@@ -0,0 +1,189 @@
|
|
1
|
+
shef(1) -- Interactive Chef Console
|
2
|
+
========================================
|
3
|
+
|
4
|
+
## SYNOPSIS
|
5
|
+
|
6
|
+
__shef__ [_named configuration_] _(options)_
|
7
|
+
|
8
|
+
* `-S`, `--server CHEF_SERVER_URL`:
|
9
|
+
The chef server URL
|
10
|
+
* `-z`, `--client`:
|
11
|
+
chef-client mode
|
12
|
+
* `-c`, `--config CONFIG`:
|
13
|
+
The configuration file to use
|
14
|
+
* `-j`, `--json-attributes JSON_ATTRIBS`:
|
15
|
+
Load attributes from a JSON file or URL
|
16
|
+
* `-l`, `--log-level LOG_LEVEL`:
|
17
|
+
Set the logging level
|
18
|
+
* `-s`, `--solo`:
|
19
|
+
chef-solo shef session
|
20
|
+
* `-a`, `--standalone`:
|
21
|
+
standalone shef session
|
22
|
+
* `-v`, `--version`:
|
23
|
+
Show chef version
|
24
|
+
* `-h`, `--help`:
|
25
|
+
Show command options
|
26
|
+
|
27
|
+
When no --config option is specified, shef attempts to load a default configuration file:
|
28
|
+
|
29
|
+
* If a _named configuration_ is given, shef will load ~/.chef/_named
|
30
|
+
configuration_/shef.rb
|
31
|
+
* If no _named configuration_ is given shef will load ~/.chef/shef.rb if it exists
|
32
|
+
* Shef falls back to loading /etc/chef/client.rb or /etc/chef/solo.rb if -z or
|
33
|
+
-s options are given and no shef.rb can be found.
|
34
|
+
* The --config option takes precedence over implicit configuration
|
35
|
+
paths.
|
36
|
+
|
37
|
+
## DESCRIPTION
|
38
|
+
|
39
|
+
`shef` is an irb(1) (interactive ruby) session customized for Chef.
|
40
|
+
`shef` serves two primary functions: it provides a means to
|
41
|
+
interact with a Chef Server interactively using a convenient DSL; it
|
42
|
+
allows you to define and run Chef recipes interactively.
|
43
|
+
|
44
|
+
## SYNTAX
|
45
|
+
Shef uses irb's subsession feature to provide multiple modes of
|
46
|
+
interaction. In addition to the primary mode which is entered on start,
|
47
|
+
`recipe` and `attributes` modes are available.
|
48
|
+
|
49
|
+
## PRIMARY MODE
|
50
|
+
The following commands are available in the primary
|
51
|
+
session:
|
52
|
+
|
53
|
+
* `help`:
|
54
|
+
Prints a list of available commands
|
55
|
+
* `version`:
|
56
|
+
Prints the Chef version
|
57
|
+
* `recipe`:
|
58
|
+
Switches to `recipe` mode
|
59
|
+
* `attributes`:
|
60
|
+
Switches to `attributes` mode
|
61
|
+
* `run_chef`:
|
62
|
+
Initiates a chef run
|
63
|
+
* `reset`:
|
64
|
+
reinitializes shef
|
65
|
+
* `echo :on|:off`:
|
66
|
+
Turns irb's echo function on or off. Echo is _on_ by default.
|
67
|
+
* `tracing :on|:off`:
|
68
|
+
Turns irb's function tracing feature on or off. Tracing is extremely
|
69
|
+
verbose and expected to be of interest primarily to developers.
|
70
|
+
* `node`:
|
71
|
+
Returns the _node_ object for the current host. See knife-node(1)
|
72
|
+
for more information about nodes.
|
73
|
+
* `ohai`:
|
74
|
+
Prints the attributes of _node_
|
75
|
+
|
76
|
+
In addition to these commands, shef provides a DSL for accessing data on
|
77
|
+
the Chef Server. When working with remote data in shef, you chain method
|
78
|
+
calls in the form _object type_._operation_, where _object type_ is in
|
79
|
+
plural form. The following object types are available:
|
80
|
+
|
81
|
+
* `nodes`
|
82
|
+
* `roles`
|
83
|
+
* `data_bags`
|
84
|
+
* `clients`
|
85
|
+
* `cookbooks`
|
86
|
+
|
87
|
+
For each _object type_ the following operations are available:
|
88
|
+
|
89
|
+
* _object type_.all(_&block_):
|
90
|
+
Loads all items from the server. If the optional code _block_ is
|
91
|
+
given, each item will be passed to the block and the results
|
92
|
+
returned, similar to ruby's `Enumerable#map` method.
|
93
|
+
* _object type_.show(_object name_):
|
94
|
+
Aliased as _object type_.load
|
95
|
+
|
96
|
+
Loads the singular item identified by _object name_.
|
97
|
+
* _object type_.search(_query_, _&block_):
|
98
|
+
Aliased as _object type_.find
|
99
|
+
|
100
|
+
Runs a search against the server and returns the matching items. If
|
101
|
+
the optional code _block_ is given each item will be passed to the
|
102
|
+
block and the results returned.
|
103
|
+
|
104
|
+
The _query_ may be a Solr/Lucene format query given as a String, or
|
105
|
+
a Hash of conditions. If a Hash is given, the options will be ANDed
|
106
|
+
together. To join conditions with OR, use negative queries, or any
|
107
|
+
advanced search syntax, you must provide give the query in String
|
108
|
+
form.
|
109
|
+
* _object type_.transform(:all|_query_, _&block_):
|
110
|
+
Aliased as _object type_.bulk_edit
|
111
|
+
|
112
|
+
Bulk edit objects by processing them with the (required) code _block_.
|
113
|
+
You can edit all objects of the given type by passing the Symbol
|
114
|
+
`:all` as the argument, or only a subset by passing a _query_ as the
|
115
|
+
argument. The _query_ is evaluated in the same way as with
|
116
|
+
__search__.
|
117
|
+
|
118
|
+
The return value of the code _block_ is used to alter the behavior
|
119
|
+
of `transform`. If the value returned from the block is `nil` or
|
120
|
+
`false`, the object will not be saved. Otherwise, the object is
|
121
|
+
saved after being passed to the block. This behavior can be
|
122
|
+
exploited to create a dry run to test a data transformation.
|
123
|
+
|
124
|
+
## RECIPE MODE
|
125
|
+
Recipe mode implements Chef's recipe DSL. Exhaustively documenting this
|
126
|
+
DSL is outside the scope of this document. See the following pages in
|
127
|
+
the Chef documentation for more information:
|
128
|
+
|
129
|
+
* <http://wiki.opscode.com/display/chef/Resources>
|
130
|
+
* <http://wiki.opscode.com/display/chef/Recipes>
|
131
|
+
|
132
|
+
Once you have defined resources in the recipe, you can trigger a
|
133
|
+
convergence run via `run_chef`
|
134
|
+
|
135
|
+
## EXAMPLES
|
136
|
+
|
137
|
+
* A "Hello World" interactive recipe
|
138
|
+
|
139
|
+
chef > recipe
|
140
|
+
chef:recipe > echo :off
|
141
|
+
chef:recipe > file "/tmp/hello\_world"
|
142
|
+
chef:recipe > run\_chef
|
143
|
+
[Sat, 09 Apr 2011 08:56:56 -0700] INFO: Processing file[/tmp/hello\_world] action create ((irb#1) line 2)
|
144
|
+
[Sat, 09 Apr 2011 08:56:56 -0700] INFO: file[/tmp/hello\_world] created file /tmp/hello\_world
|
145
|
+
chef:recipe > pp ls '/tmp'
|
146
|
+
[".",
|
147
|
+
"..",
|
148
|
+
"hello\_world"]
|
149
|
+
|
150
|
+
* Search for _nodes_ by role, and print their IP addresses
|
151
|
+
|
152
|
+
chef > nodes.find(:roles => 'monitoring-server') {|n| n[:ipaddress] }
|
153
|
+
=> ["10.254.199.5"]
|
154
|
+
|
155
|
+
* Remove the role _obsolete_ from every node in the system
|
156
|
+
|
157
|
+
chef > nodes.transform(:all) {|n| n.run\_list.delete('role[obsolete]') }
|
158
|
+
=> [node[chef098b2.opschef.com], node[ree-woot], node[graphite-dev], node[fluke.localdomain], node[ghost.local], node[kallistec]]
|
159
|
+
|
160
|
+
|
161
|
+
## BUGS
|
162
|
+
The name `shef` is clever in print but is confusing when spoken aloud.
|
163
|
+
Pronouncing `shef` as `chef console` is an imperfect workaround.
|
164
|
+
|
165
|
+
`shef` often does not perfectly replicate the context in which
|
166
|
+
chef-client(8) configures a host, which may lead to discrepancies in
|
167
|
+
observed behavior.
|
168
|
+
|
169
|
+
`shef` has to duplicate much code from chef-client's internal libraries
|
170
|
+
and may become out of sync with the behavior of those libraries.
|
171
|
+
|
172
|
+
## SEE ALSO
|
173
|
+
chef-client(8) knife(1)
|
174
|
+
<http://wiki.opscode.com/display/chef/Shef>
|
175
|
+
|
176
|
+
## AUTHOR
|
177
|
+
Chef was written by Adam Jacob <adam@opscode.com> with many
|
178
|
+
contributions from the community. Shef was written by Daniel DeLeo.
|
179
|
+
|
180
|
+
## DOCUMENTATION
|
181
|
+
This manual page was written by Daniel DeLeo <dan@opscode.com>.
|
182
|
+
Permission is granted to copy, distribute and / or modify this
|
183
|
+
document under the terms of the Apache 2.0 License.
|
184
|
+
|
185
|
+
## CHEF
|
186
|
+
Shef is distributed with Chef. <http://wiki.opscode.com/display/chef/Home>
|
187
|
+
|
188
|
+
|
189
|
+
|
@@ -0,0 +1,65 @@
|
|
1
|
+
chef-client(8) -- Runs a client node connecting to a chef-server.
|
2
|
+
========================================
|
3
|
+
|
4
|
+
## SYNOPSIS
|
5
|
+
|
6
|
+
__chef-client__ _(options)_
|
7
|
+
|
8
|
+
* `-S`, `--server CHEFSERVERURL`:
|
9
|
+
The chef server URL
|
10
|
+
* `-c`, `--config CONFIG`:
|
11
|
+
The configuration file to use
|
12
|
+
* `-d`, `--daemonize`:
|
13
|
+
Daemonize the process
|
14
|
+
* `-g`, `--group GROUP`:
|
15
|
+
Group to set privilege to
|
16
|
+
* `-i`, `--interval SECONDS`:
|
17
|
+
Run chef-client periodically, in seconds
|
18
|
+
* `-j`, `--json-attributes JSON_ATTRIBS`:
|
19
|
+
Load attributes from a JSON file or URL
|
20
|
+
* `-l`, `--log_level LEVEL`:
|
21
|
+
Set the log level (debug, info, warn, error, fatal)
|
22
|
+
* `-L`, `--logfile LOGLOCATION`:
|
23
|
+
Set the log file location, defaults to STDOUT - recommended for
|
24
|
+
daemonizing
|
25
|
+
* `-V`, `--verbose`:
|
26
|
+
Ensures logging goes to STDOUT as well as to other configured
|
27
|
+
log location(s).
|
28
|
+
* `-N`, `--node-name NODE_NAME`:
|
29
|
+
The node name for this client
|
30
|
+
* `-s`, `--splay SECONDS`:
|
31
|
+
The splay time for running at intervals, in seconds
|
32
|
+
* `-u`, `--user USER`:
|
33
|
+
User to set privilege to
|
34
|
+
* `-v`, `--version`:
|
35
|
+
Show chef version
|
36
|
+
* `-h`, `--help`:
|
37
|
+
Show this message
|
38
|
+
|
39
|
+
## DESCRIPTION
|
40
|
+
|
41
|
+
The Chef Client is where almost all of the work in Chef is done. It
|
42
|
+
communicates with the Chef Server via REST, authenticates via Signed
|
43
|
+
Header Authentication, and compiles and executes Cookbooks.
|
44
|
+
|
45
|
+
A Chef Client does work on behalf of a Node. A single Chef Client can
|
46
|
+
run recipes for multiple Nodes.
|
47
|
+
|
48
|
+
Clients are where all the action happens - the Chef Server and Chef Expander
|
49
|
+
are largely services that exist only to provide the Client with information.
|
50
|
+
|
51
|
+
## SEE ALSO
|
52
|
+
|
53
|
+
Full documentation for Chef and chef-client is located on the Chef
|
54
|
+
wiki, http://wiki.opscode.com/display/chef/Home.
|
55
|
+
|
56
|
+
## AUTHOR
|
57
|
+
|
58
|
+
Chef was written by Adam Jacob <adam@ospcode.com> of Opscode
|
59
|
+
(http://www.opscode.com), with contributions from the community. This
|
60
|
+
manual page was written by Joshua Timberman <joshua@opscode.com> with
|
61
|
+
help2man. Permission is granted to copy, distribute and / or modify
|
62
|
+
this document under the terms of the Apache 2.0 License.
|
63
|
+
|
64
|
+
On Debian systems, the complete text of the Apache 2.0 License can be
|
65
|
+
found in /usr/share/common-licenses/Apache-2.0.
|