chef 11.10.0.rc.0-x86-mingw32 → 11.10.0.rc.1-x86-mingw32
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +0 -75
- data/distro/common/html/_sources/ctl_chef_client.txt +36 -0
- data/distro/common/html/_sources/ctl_chef_server.txt +26 -0
- data/distro/common/html/_sources/ctl_chef_shell.txt +15 -0
- data/distro/common/html/_sources/ctl_chef_solo.txt +25 -0
- data/distro/common/html/_sources/index.txt +126 -0
- data/distro/common/html/_sources/knife.txt +74 -0
- data/distro/common/html/_sources/knife_bootstrap.txt +56 -0
- data/distro/common/html/_sources/knife_client.txt +151 -0
- data/distro/common/html/_sources/knife_common_options.txt +6 -0
- data/distro/common/html/_sources/knife_configure.txt +29 -0
- data/distro/common/html/_sources/knife_cookbook.txt +236 -0
- data/distro/common/html/_sources/knife_cookbook_site.txt +157 -0
- data/distro/common/html/_sources/knife_data_bag.txt +160 -0
- data/distro/common/html/_sources/knife_delete.txt +26 -0
- data/distro/common/html/_sources/knife_deps.txt +61 -0
- data/distro/common/html/_sources/knife_diff.txt +34 -0
- data/distro/common/html/_sources/knife_download.txt +44 -0
- data/distro/common/html/_sources/knife_edit.txt +26 -0
- data/distro/common/html/_sources/knife_environment.txt +158 -0
- data/distro/common/html/_sources/knife_exec.txt +47 -0
- data/distro/common/html/_sources/knife_index_rebuild.txt +21 -0
- data/distro/common/html/_sources/knife_list.txt +33 -0
- data/distro/common/html/_sources/knife_node.txt +250 -0
- data/distro/common/html/_sources/knife_raw.txt +35 -0
- data/distro/common/html/_sources/knife_recipe_list.txt +23 -0
- data/distro/common/html/_sources/knife_role.txt +157 -0
- data/distro/common/html/_sources/knife_search.txt +53 -0
- data/distro/common/html/_sources/knife_show.txt +27 -0
- data/distro/common/html/_sources/knife_ssh.txt +43 -0
- data/distro/common/html/_sources/knife_status.txt +37 -0
- data/distro/common/html/_sources/knife_tag.txt +69 -0
- data/distro/common/html/_sources/knife_upload.txt +49 -0
- data/distro/common/html/_sources/knife_user.txt +127 -0
- data/distro/common/html/_sources/knife_using.txt +43 -0
- data/distro/common/html/_sources/knife_xargs.txt +30 -0
- data/distro/common/html/_static/ajax-loader.gif +0 -0
- data/distro/common/html/_static/basic.css +540 -0
- data/distro/common/html/_static/chef.css +507 -0
- data/distro/common/html/_static/chef.ico +0 -0
- data/distro/common/html/_static/chef_html_logo.png +0 -0
- data/distro/common/html/_static/chef_logo.png +0 -0
- data/distro/common/html/_static/comment-bright.png +0 -0
- data/distro/common/html/_static/comment-close.png +0 -0
- data/distro/common/html/_static/comment.png +0 -0
- data/distro/common/html/_static/contents.png +0 -0
- data/distro/common/html/_static/doctools.js +247 -0
- data/distro/common/html/_static/down-pressed.png +0 -0
- data/distro/common/html/_static/down.png +0 -0
- data/distro/common/html/_static/file.png +0 -0
- data/distro/common/html/_static/guide.css +505 -0
- data/distro/common/html/_static/jquery.js +154 -0
- data/distro/common/html/_static/minus.png +0 -0
- data/distro/common/html/_static/navigation.png +0 -0
- data/distro/common/html/_static/plus.png +0 -0
- data/distro/common/html/_static/pygments.css +62 -0
- data/distro/common/html/_static/searchtools.js +560 -0
- data/distro/common/html/_static/underscore.js +23 -0
- data/distro/common/html/_static/up-pressed.png +0 -0
- data/distro/common/html/_static/up.png +0 -0
- data/distro/common/html/_static/websupport.js +808 -0
- data/distro/common/html/ctl_chef_client.html +219 -0
- data/distro/common/html/ctl_chef_server.html +111 -0
- data/distro/common/html/ctl_chef_shell.html +120 -0
- data/distro/common/html/ctl_chef_solo.html +144 -0
- data/distro/common/html/index.html +185 -0
- data/distro/common/html/knife.html +172 -0
- data/distro/common/html/knife_bootstrap.html +250 -0
- data/distro/common/html/knife_client.html +283 -0
- data/distro/common/html/knife_common_options.html +98 -0
- data/distro/common/html/knife_configure.html +107 -0
- data/distro/common/html/knife_cookbook.html +481 -0
- data/distro/common/html/knife_cookbook_site.html +372 -0
- data/distro/common/html/knife_data_bag.html +359 -0
- data/distro/common/html/knife_delete.html +95 -0
- data/distro/common/html/knife_deps.html +145 -0
- data/distro/common/html/knife_diff.html +125 -0
- data/distro/common/html/knife_download.html +147 -0
- data/distro/common/html/knife_edit.html +91 -0
- data/distro/common/html/knife_environment.html +328 -0
- data/distro/common/html/knife_exec.html +222 -0
- data/distro/common/html/knife_index_rebuild.html +85 -0
- data/distro/common/html/knife_list.html +116 -0
- data/distro/common/html/knife_node.html +450 -0
- data/distro/common/html/knife_raw.html +112 -0
- data/distro/common/html/knife_recipe_list.html +93 -0
- data/distro/common/html/knife_role.html +295 -0
- data/distro/common/html/knife_search.html +204 -0
- data/distro/common/html/knife_show.html +106 -0
- data/distro/common/html/knife_ssh.html +179 -0
- data/distro/common/html/knife_status.html +142 -0
- data/distro/common/html/knife_tag.html +140 -0
- data/distro/common/html/knife_upload.html +155 -0
- data/distro/common/html/knife_user.html +244 -0
- data/distro/common/html/knife_using.html +211 -0
- data/distro/common/html/knife_xargs.html +115 -0
- data/distro/common/html/objects.inv +0 -0
- data/distro/common/html/search.html +84 -0
- data/distro/common/html/searchindex.js +1 -0
- data/distro/common/man/man1/chef-shell.1 +5 -5
- data/distro/common/man/man1/knife-bootstrap.1 +6 -9
- data/distro/common/man/man1/knife-client.1 +1 -9
- data/distro/common/man/man1/knife-configure.1 +10 -6
- data/distro/common/man/man1/knife-cookbook-site.1 +1 -9
- data/distro/common/man/man1/knife-cookbook.1 +11 -21
- data/distro/common/man/man1/knife-data-bag.1 +8 -22
- data/distro/common/man/man1/knife-delete.1 +1 -1
- data/distro/common/man/man1/knife-deps.1 +4 -12
- data/distro/common/man/man1/knife-diff.1 +1 -1
- data/distro/common/man/man1/knife-download.1 +2 -2
- data/distro/common/man/man1/knife-edit.1 +1 -1
- data/distro/common/man/man1/knife-environment.1 +108 -9
- data/distro/common/man/man1/knife-exec.1 +1 -15
- data/distro/common/man/man1/knife-index-rebuild.1 +1 -1
- data/distro/common/man/man1/knife-list.1 +1 -1
- data/distro/common/man/man1/knife-node.1 +3 -13
- data/distro/common/man/man1/knife-raw.1 +1 -1
- data/distro/common/man/man1/knife-recipe-list.1 +1 -1
- data/distro/common/man/man1/knife-role.1 +2 -12
- data/distro/common/man/man1/knife-search.1 +5 -5
- data/distro/common/man/man1/knife-show.1 +1 -3
- data/distro/common/man/man1/knife-ssh.1 +1 -5
- data/distro/common/man/man1/knife-status.1 +1 -1
- data/distro/common/man/man1/knife-tag.1 +1 -9
- data/distro/common/man/man1/knife-upload.1 +7 -9
- data/distro/common/man/man1/knife-user.1 +3 -17
- data/distro/common/man/man1/knife-xargs.1 +1 -3
- data/distro/common/man/man8/chef-client.8 +18 -18
- data/distro/common/man/man8/chef-solo.8 +12 -6
- data/lib/chef/client.rb +9 -5
- data/lib/chef/cookbook_uploader.rb +1 -1
- data/lib/chef/dsl/recipe.rb +119 -38
- data/lib/chef/exceptions.rb +4 -0
- data/lib/chef/policy_builder/expand_node_object.rb +11 -4
- data/lib/chef/policy_builder/policyfile.rb +7 -1
- data/lib/chef/provider/file.rb +1 -0
- data/lib/chef/resource_platform_map.rb +1 -1
- data/lib/chef/resource_reporter.rb +2 -2
- data/lib/chef/version.rb +1 -1
- data/spec/functional/knife/cookbook_delete_spec.rb +9 -9
- data/spec/functional/knife/ssh_spec.rb +1 -1
- data/spec/functional/resource/link_spec.rb +6 -6
- data/spec/functional/resource/registry_spec.rb +7 -7
- data/spec/functional/run_lock_spec.rb +1 -1
- data/spec/integration/knife/download_spec.rb +1 -1
- data/spec/integration/solo/solo_spec.rb +1 -1
- data/spec/spec_helper.rb +0 -1
- data/spec/stress/win32/file_spec.rb +6 -0
- data/spec/support/lib/chef/resource/zen_master.rb +1 -1
- data/spec/support/mock/platform.rb +1 -1
- data/spec/support/shared/functional/file_resource.rb +0 -2
- data/spec/support/shared/functional/securable_resource.rb +2 -2
- data/spec/support/shared/unit/api_error_inspector.rb +7 -7
- data/spec/support/shared/unit/provider/file.rb +47 -8
- data/spec/support/shared/unit/provider/useradd_based_user_provider.rb +23 -23
- data/spec/unit/api_client/registration_spec.rb +5 -5
- data/spec/unit/api_client_spec.rb +2 -2
- data/spec/unit/application/apply.rb +6 -6
- data/spec/unit/application/client_spec.rb +6 -6
- data/spec/unit/application/knife_spec.rb +5 -5
- data/spec/unit/application/solo_spec.rb +13 -13
- data/spec/unit/application_spec.rb +19 -19
- data/spec/unit/checksum/storage/filesystem_spec.rb +2 -2
- data/spec/unit/client_spec.rb +23 -23
- data/spec/unit/config_spec.rb +4 -4
- data/spec/unit/cookbook/metadata_spec.rb +22 -22
- data/spec/unit/cookbook/synchronizer_spec.rb +17 -17
- data/spec/unit/daemon_spec.rb +21 -22
- data/spec/unit/data_bag_item_spec.rb +8 -8
- data/spec/unit/data_bag_spec.rb +6 -6
- data/spec/unit/deprecation_spec.rb +1 -1
- data/spec/unit/dsl/data_query_spec.rb +1 -1
- data/spec/unit/environment_spec.rb +5 -5
- data/spec/unit/file_access_control_spec.rb +5 -5
- data/spec/unit/file_cache_spec.rb +1 -1
- data/spec/unit/file_content_management/deploy/mv_unix_spec.rb +1 -1
- data/spec/unit/file_content_management/deploy/mv_windows_spec.rb +12 -12
- data/spec/unit/formatters/error_inspectors/compile_error_inspector_spec.rb +4 -4
- data/spec/unit/formatters/error_inspectors/cookbook_resolve_error_inspector_spec.rb +4 -4
- data/spec/unit/formatters/error_inspectors/cookbook_sync_error_inspector_spec.rb +1 -1
- data/spec/unit/formatters/error_inspectors/resource_failure_inspector_spec.rb +6 -6
- data/spec/unit/formatters/error_inspectors/run_list_expansion_error_inspector_spec.rb +4 -4
- data/spec/unit/handler/json_file_spec.rb +1 -1
- data/spec/unit/handler_spec.rb +3 -3
- data/spec/unit/knife/bootstrap_spec.rb +17 -17
- data/spec/unit/knife/client_bulk_delete_spec.rb +4 -4
- data/spec/unit/knife/client_create_spec.rb +7 -7
- data/spec/unit/knife/client_reregister_spec.rb +2 -2
- data/spec/unit/knife/client_show_spec.rb +1 -1
- data/spec/unit/knife/config_file_selection_spec.rb +4 -4
- data/spec/unit/knife/configure_client_spec.rb +4 -4
- data/spec/unit/knife/configure_spec.rb +16 -16
- data/spec/unit/knife/cookbook_bulk_delete_spec.rb +10 -10
- data/spec/unit/knife/cookbook_create_spec.rb +5 -5
- data/spec/unit/knife/cookbook_delete_spec.rb +6 -6
- data/spec/unit/knife/cookbook_download_spec.rb +10 -10
- data/spec/unit/knife/cookbook_list_spec.rb +3 -3
- data/spec/unit/knife/cookbook_metadata_from_file_spec.rb +2 -2
- data/spec/unit/knife/cookbook_metadata_spec.rb +8 -8
- data/spec/unit/knife/cookbook_show_spec.rb +4 -4
- data/spec/unit/knife/cookbook_site_download_spec.rb +3 -3
- data/spec/unit/knife/cookbook_site_install_spec.rb +8 -8
- data/spec/unit/knife/cookbook_site_share_spec.rb +22 -22
- data/spec/unit/knife/cookbook_site_unshare_spec.rb +8 -8
- data/spec/unit/knife/cookbook_test_spec.rb +7 -7
- data/spec/unit/knife/cookbook_upload_spec.rb +20 -20
- data/spec/unit/knife/core/cookbook_scm_repo_spec.rb +6 -6
- data/spec/unit/knife/core/object_loader_spec.rb +1 -1
- data/spec/unit/knife/core/ui_spec.rb +19 -21
- data/spec/unit/knife/data_bag_create_spec.rb +4 -4
- data/spec/unit/knife/data_bag_edit_spec.rb +7 -7
- data/spec/unit/knife/data_bag_from_file_spec.rb +15 -15
- data/spec/unit/knife/data_bag_show_spec.rb +5 -5
- data/spec/unit/knife/environment_create_spec.rb +6 -6
- data/spec/unit/knife/environment_delete_spec.rb +6 -6
- data/spec/unit/knife/environment_edit_spec.rb +5 -5
- data/spec/unit/knife/environment_from_file_spec.rb +7 -7
- data/spec/unit/knife/environment_list_spec.rb +4 -4
- data/spec/unit/knife/environment_show_spec.rb +4 -4
- data/spec/unit/knife/index_rebuild_spec.rb +2 -2
- data/spec/unit/knife/knife_help.rb +11 -11
- data/spec/unit/knife/node_bulk_delete_spec.rb +4 -4
- data/spec/unit/knife/node_delete_spec.rb +5 -5
- data/spec/unit/knife/node_edit_spec.rb +2 -2
- data/spec/unit/knife/node_from_file_spec.rb +5 -5
- data/spec/unit/knife/node_list_spec.rb +3 -3
- data/spec/unit/knife/node_run_list_add_spec.rb +3 -3
- data/spec/unit/knife/node_run_list_remove_spec.rb +4 -4
- data/spec/unit/knife/node_run_list_set_spec.rb +5 -5
- data/spec/unit/knife/node_show_spec.rb +2 -2
- data/spec/unit/knife/role_bulk_delete_spec.rb +4 -4
- data/spec/unit/knife/role_create_spec.rb +5 -5
- data/spec/unit/knife/role_delete_spec.rb +5 -5
- data/spec/unit/knife/role_edit_spec.rb +5 -5
- data/spec/unit/knife/role_from_file_spec.rb +5 -5
- data/spec/unit/knife/role_list_spec.rb +2 -2
- data/spec/unit/knife/ssh_spec.rb +6 -6
- data/spec/unit/knife/status_spec.rb +4 -4
- data/spec/unit/knife/tag_create_spec.rb +3 -3
- data/spec/unit/knife/tag_delete_spec.rb +3 -3
- data/spec/unit/knife/tag_list_spec.rb +2 -2
- data/spec/unit/knife/user_create_spec.rb +7 -7
- data/spec/unit/knife/user_reregister_spec.rb +3 -3
- data/spec/unit/knife/user_show_spec.rb +1 -1
- data/spec/unit/knife_spec.rb +29 -29
- data/spec/unit/lwrp_spec.rb +2 -2
- data/spec/unit/mixin/checksum_spec.rb +2 -2
- data/spec/unit/mixin/command_spec.rb +1 -1
- data/spec/unit/mixin/enforce_ownership_and_permissions_spec.rb +4 -4
- data/spec/unit/mixin/params_validate_spec.rb +17 -17
- data/spec/unit/mixin/path_sanity_spec.rb +8 -8
- data/spec/unit/mixin/securable_spec.rb +87 -87
- data/spec/unit/mixin/shell_out_spec.rb +1 -1
- data/spec/unit/mixin/template_spec.rb +2 -2
- data/spec/unit/node/attribute_spec.rb +3 -3
- data/spec/unit/node_spec.rb +12 -12
- data/spec/unit/platform_spec.rb +1 -1
- data/spec/unit/policy_builder/expand_node_object_spec.rb +16 -0
- data/spec/unit/policy_builder/policyfile_spec.rb +4 -0
- data/spec/unit/provider/breakpoint_spec.rb +8 -8
- data/spec/unit/provider/cookbook_file/content_spec.rb +4 -4
- data/spec/unit/provider/cookbook_file_spec.rb +1 -1
- data/spec/unit/provider/cron/unix_spec.rb +11 -11
- data/spec/unit/provider/cron_spec.rb +40 -40
- data/spec/unit/provider/deploy/revision_spec.rb +11 -12
- data/spec/unit/provider/deploy/timestamped_spec.rb +3 -3
- data/spec/unit/provider/deploy_spec.rb +50 -50
- data/spec/unit/provider/directory_spec.rb +18 -18
- data/spec/unit/provider/env_spec.rb +15 -15
- data/spec/unit/provider/erl_call_spec.rb +1 -1
- data/spec/unit/provider/execute_spec.rb +5 -5
- data/spec/unit/provider/file/content_spec.rb +5 -5
- data/spec/unit/provider/file_spec.rb +1 -1
- data/spec/unit/provider/git_spec.rb +47 -47
- data/spec/unit/provider/group/dscl_spec.rb +16 -15
- data/spec/unit/provider/group/gpasswd_spec.rb +6 -5
- data/spec/unit/provider/group/groupadd_spec.rb +10 -10
- data/spec/unit/provider/group/groupmod_spec.rb +3 -3
- data/spec/unit/provider/group/pw_spec.rb +9 -8
- data/spec/unit/provider/group/usermod_spec.rb +13 -12
- data/spec/unit/provider/group/windows_spec.rb +9 -9
- data/spec/unit/provider/group_spec.rb +31 -31
- data/spec/unit/provider/http_request_spec.rb +3 -3
- data/spec/unit/provider/ifconfig/aix_spec.rb +7 -7
- data/spec/unit/provider/ifconfig/debian_spec.rb +3 -3
- data/spec/unit/provider/ifconfig/redhat_spec.rb +5 -5
- data/spec/unit/provider/ifconfig_spec.rb +13 -13
- data/spec/unit/provider/link_spec.rb +33 -33
- data/spec/unit/provider/mdadm_spec.rb +4 -4
- data/spec/unit/provider/mount/aix_spec.rb +5 -5
- data/spec/unit/provider/mount/mount_spec.rb +49 -50
- data/spec/unit/provider/mount/windows_spec.rb +18 -18
- data/spec/unit/provider/mount_spec.rb +12 -12
- data/spec/unit/provider/ohai_spec.rb +6 -6
- data/spec/unit/provider/package/aix_spec.rb +14 -14
- data/spec/unit/provider/package/apt_spec.rb +10 -10
- data/spec/unit/provider/package/dpkg_spec.rb +13 -13
- data/spec/unit/provider/package/easy_install_spec.rb +6 -6
- data/spec/unit/provider/package/freebsd_spec.rb +29 -29
- data/spec/unit/provider/package/ips_spec.rb +4 -4
- data/spec/unit/provider/package/macports_spec.rb +6 -6
- data/spec/unit/provider/package/pacman_spec.rb +17 -17
- data/spec/unit/provider/package/portage_spec.rb +18 -18
- data/spec/unit/provider/package/rpm_spec.rb +7 -7
- data/spec/unit/provider/package/rubygems_spec.rb +31 -31
- data/spec/unit/provider/package/smartos_spec.rb +4 -4
- data/spec/unit/provider/package/solaris_spec.rb +15 -15
- data/spec/unit/provider/package/yum_spec.rb +100 -100
- data/spec/unit/provider/package/zypper_spec.rb +10 -10
- data/spec/unit/provider/package_spec.rb +21 -21
- data/spec/unit/provider/registry_key_spec.rb +2 -2
- data/spec/unit/provider/remote_file/content_spec.rb +31 -31
- data/spec/unit/provider/remote_file/fetcher_spec.rb +8 -8
- data/spec/unit/provider/remote_file/ftp_spec.rb +10 -10
- data/spec/unit/provider/remote_file/http_spec.rb +4 -4
- data/spec/unit/provider/remote_file/local_file_spec.rb +2 -2
- data/spec/unit/provider/remote_file_spec.rb +1 -1
- data/spec/unit/provider/route_spec.rb +23 -23
- data/spec/unit/provider/script_spec.rb +5 -5
- data/spec/unit/provider/service/arch_service_spec.rb +41 -41
- data/spec/unit/provider/service/debian_service_spec.rb +23 -23
- data/spec/unit/provider/service/freebsd_service_spec.rb +33 -33
- data/spec/unit/provider/service/gentoo_service_spec.rb +16 -16
- data/spec/unit/provider/service/init_service_spec.rb +13 -13
- data/spec/unit/provider/service/insserv_service_spec.rb +4 -4
- data/spec/unit/provider/service/invokercd_service_spec.rb +12 -12
- data/spec/unit/provider/service/macosx_spec.rb +20 -20
- data/spec/unit/provider/service/redhat_spec.rb +15 -15
- data/spec/unit/provider/service/simple_service_spec.rb +9 -9
- data/spec/unit/provider/service/solaris_smf_service_spec.rb +13 -13
- data/spec/unit/provider/service/systemd_service_spec.rb +28 -28
- data/spec/unit/provider/service/upstart_service_spec.rb +41 -41
- data/spec/unit/provider/service/windows_spec.rb +37 -37
- data/spec/unit/provider/service_spec.rb +9 -9
- data/spec/unit/provider/subversion_spec.rb +36 -36
- data/spec/unit/provider/template/content_spec.rb +8 -8
- data/spec/unit/provider/template_spec.rb +1 -1
- data/spec/unit/provider/user/dscl_spec.rb +9 -9
- data/spec/unit/provider/user/pw_spec.rb +20 -20
- data/spec/unit/provider/user/solaris_spec.rb +5 -5
- data/spec/unit/provider/user/windows_spec.rb +8 -8
- data/spec/unit/provider/user_spec.rb +34 -34
- data/spec/unit/provider_spec.rb +3 -3
- data/spec/unit/recipe_spec.rb +79 -4
- data/spec/unit/registry_helper_spec.rb +2 -2
- data/spec/unit/resource/cron_spec.rb +2 -2
- data/spec/unit/resource/directory_spec.rb +5 -5
- data/spec/unit/resource/env_spec.rb +2 -2
- data/spec/unit/resource/erl_call_spec.rb +1 -1
- data/spec/unit/resource/file_spec.rb +8 -8
- data/spec/unit/resource/group_spec.rb +3 -3
- data/spec/unit/resource/link_spec.rb +8 -8
- data/spec/unit/resource/mdadm_spec.rb +3 -3
- data/spec/unit/resource/mount_spec.rb +3 -3
- data/spec/unit/resource/route_spec.rb +2 -2
- data/spec/unit/resource/user_spec.rb +2 -2
- data/spec/unit/resource/yum_package_spec.rb +2 -2
- data/spec/unit/resource_collection_spec.rb +1 -1
- data/spec/unit/resource_definition_spec.rb +2 -2
- data/spec/unit/resource_reporter_spec.rb +71 -16
- data/spec/unit/resource_spec.rb +3 -3
- data/spec/unit/rest/auth_credentials_spec.rb +2 -2
- data/spec/unit/rest_spec.rb +3 -40
- data/spec/unit/run_list/run_list_expansion_spec.rb +3 -3
- data/spec/unit/run_list_spec.rb +9 -9
- data/spec/unit/run_status_spec.rb +1 -1
- data/spec/unit/runner_spec.rb +8 -8
- data/spec/unit/scan_access_control_spec.rb +3 -3
- data/spec/unit/search/query_spec.rb +7 -7
- data/spec/unit/shell/model_wrapper_spec.rb +2 -2
- data/spec/unit/shell/shell_ext_spec.rb +15 -15
- data/spec/unit/shell/shell_session_spec.rb +9 -9
- data/spec/unit/shell_spec.rb +1 -2
- data/spec/unit/user_spec.rb +4 -4
- data/spec/unit/util/backup_spec.rb +1 -1
- data/spec/unit/util/selinux_spec.rb +7 -7
- metadata +106 -51
- data/distro/common/html/chef-client.8.html +0 -145
- data/distro/common/html/chef-expander.8.html +0 -164
- data/distro/common/html/chef-expanderctl.8.html +0 -146
- data/distro/common/html/chef-server-webui.8.html +0 -185
- data/distro/common/html/chef-server.8.html +0 -182
- data/distro/common/html/chef-shell.1.html +0 -286
- data/distro/common/html/chef-solo.8.html +0 -185
- data/distro/common/html/chef-solr.8.html +0 -165
- data/distro/common/html/knife-bootstrap.1.html +0 -241
- data/distro/common/html/knife-client.1.html +0 -219
- data/distro/common/html/knife-configure.1.html +0 -170
- data/distro/common/html/knife-cookbook-site.1.html +0 -241
- data/distro/common/html/knife-cookbook.1.html +0 -381
- data/distro/common/html/knife-data-bag.1.html +0 -235
- data/distro/common/html/knife-environment.1.html +0 -265
- data/distro/common/html/knife-exec.1.html +0 -134
- data/distro/common/html/knife-index.1.html +0 -125
- data/distro/common/html/knife-node.1.html +0 -250
- data/distro/common/html/knife-role.1.html +0 -200
- data/distro/common/html/knife-search.1.html +0 -288
- data/distro/common/html/knife-ssh.1.html +0 -156
- data/distro/common/html/knife-status.1.html +0 -128
- data/distro/common/html/knife-tag.1.html +0 -137
- data/distro/common/html/knife.1.html +0 -315
@@ -1,165 +0,0 @@
|
|
1
|
-
<!DOCTYPE html>
|
2
|
-
<html>
|
3
|
-
<head>
|
4
|
-
<meta http-equiv='content-type' value='text/html;charset=utf8'>
|
5
|
-
<meta name='generator' value='Ronn/v0.7.3 (http://github.com/rtomayko/ronn/tree/0.7.3)'>
|
6
|
-
<title>chef-solr(8) - Runs as Chef's search server</title>
|
7
|
-
<style type='text/css' media='all'>
|
8
|
-
/* style: man */
|
9
|
-
body#manpage {margin:0}
|
10
|
-
.mp {max-width:100ex;padding:0 9ex 1ex 4ex}
|
11
|
-
.mp p,.mp pre,.mp ul,.mp ol,.mp dl {margin:0 0 20px 0}
|
12
|
-
.mp h2 {margin:10px 0 0 0}
|
13
|
-
.mp > p,.mp > pre,.mp > ul,.mp > ol,.mp > dl {margin-left:8ex}
|
14
|
-
.mp h3 {margin:0 0 0 4ex}
|
15
|
-
.mp dt {margin:0;clear:left}
|
16
|
-
.mp dt.flush {float:left;width:8ex}
|
17
|
-
.mp dd {margin:0 0 0 9ex}
|
18
|
-
.mp h1,.mp h2,.mp h3,.mp h4 {clear:left}
|
19
|
-
.mp pre {margin-bottom:20px}
|
20
|
-
.mp pre+h2,.mp pre+h3 {margin-top:22px}
|
21
|
-
.mp h2+pre,.mp h3+pre {margin-top:5px}
|
22
|
-
.mp img {display:block;margin:auto}
|
23
|
-
.mp h1.man-title {display:none}
|
24
|
-
.mp,.mp code,.mp pre,.mp tt,.mp kbd,.mp samp,.mp h3,.mp h4 {font-family:monospace;font-size:14px;line-height:1.42857142857143}
|
25
|
-
.mp h2 {font-size:16px;line-height:1.25}
|
26
|
-
.mp h1 {font-size:20px;line-height:2}
|
27
|
-
.mp {text-align:justify;background:#fff}
|
28
|
-
.mp,.mp code,.mp pre,.mp pre code,.mp tt,.mp kbd,.mp samp {color:#131211}
|
29
|
-
.mp h1,.mp h2,.mp h3,.mp h4 {color:#030201}
|
30
|
-
.mp u {text-decoration:underline}
|
31
|
-
.mp code,.mp strong,.mp b {font-weight:bold;color:#131211}
|
32
|
-
.mp em,.mp var {font-style:italic;color:#232221;text-decoration:none}
|
33
|
-
.mp a,.mp a:link,.mp a:hover,.mp a code,.mp a pre,.mp a tt,.mp a kbd,.mp a samp {color:#0000ff}
|
34
|
-
.mp b.man-ref {font-weight:normal;color:#434241}
|
35
|
-
.mp pre {padding:0 4ex}
|
36
|
-
.mp pre code {font-weight:normal;color:#434241}
|
37
|
-
.mp h2+pre,h3+pre {padding-left:0}
|
38
|
-
ol.man-decor,ol.man-decor li {margin:3px 0 10px 0;padding:0;float:left;width:33%;list-style-type:none;text-transform:uppercase;color:#999;letter-spacing:1px}
|
39
|
-
ol.man-decor {width:100%}
|
40
|
-
ol.man-decor li.tl {text-align:left}
|
41
|
-
ol.man-decor li.tc {text-align:center;letter-spacing:4px}
|
42
|
-
ol.man-decor li.tr {text-align:right;float:right}
|
43
|
-
</style>
|
44
|
-
<style type='text/css' media='all'>
|
45
|
-
/* style: toc */
|
46
|
-
.man-navigation {display:block !important;position:fixed;top:0;left:113ex;height:100%;width:100%;padding:48px 0 0 0;border-left:1px solid #dbdbdb;background:#eee}
|
47
|
-
.man-navigation a,.man-navigation a:hover,.man-navigation a:link,.man-navigation a:visited {display:block;margin:0;padding:5px 2px 5px 30px;color:#999;text-decoration:none}
|
48
|
-
.man-navigation a:hover {color:#111;text-decoration:underline}
|
49
|
-
</style>
|
50
|
-
</head>
|
51
|
-
<!--
|
52
|
-
The following styles are deprecated and will be removed at some point:
|
53
|
-
div#man, div#man ol.man, div#man ol.head, div#man ol.man.
|
54
|
-
|
55
|
-
The .man-page, .man-decor, .man-head, .man-foot, .man-title, and
|
56
|
-
.man-navigation should be used instead.
|
57
|
-
-->
|
58
|
-
<body id='manpage'>
|
59
|
-
<div class='mp' id='man'>
|
60
|
-
|
61
|
-
<div class='man-navigation' style='display:none'>
|
62
|
-
<a href="#NAME">NAME</a>
|
63
|
-
<a href="#SYNOPSIS">SYNOPSIS</a>
|
64
|
-
<a href="#DESCRIPTION">DESCRIPTION</a>
|
65
|
-
<a href="#SEE-ALSO">SEE ALSO</a>
|
66
|
-
<a href="#AUTHOR">AUTHOR</a>
|
67
|
-
</div>
|
68
|
-
|
69
|
-
<ol class='man-decor man-head man head'>
|
70
|
-
<li class='tl'>chef-solr(8)</li>
|
71
|
-
<li class='tc'>Chef Manual</li>
|
72
|
-
<li class='tr'>chef-solr(8)</li>
|
73
|
-
</ol>
|
74
|
-
|
75
|
-
<h2 id="NAME">NAME</h2>
|
76
|
-
<p class="man-name">
|
77
|
-
<code>chef-solr</code> - <span class="man-whatis">Runs as Chef's search server</span>
|
78
|
-
</p>
|
79
|
-
|
80
|
-
<h2 id="SYNOPSIS">SYNOPSIS</h2>
|
81
|
-
|
82
|
-
<p><strong>chef-solr</strong> <em>(options)</em></p>
|
83
|
-
|
84
|
-
<dl>
|
85
|
-
<dt><code>-c</code>, <code>--config CONFIG</code></dt><dd>The configuration file to use</dd>
|
86
|
-
<dt><code>-d</code>, <code>--daemonize</code></dt><dd>Daemonize the process</dd>
|
87
|
-
<dt><code>-g</code>, <code>--group GROUP</code></dt><dd>Group to set privilege to</dd>
|
88
|
-
<dt><code>-l</code>, <code>--log_level LEVEL</code></dt><dd>Set the log level (debug, info, warn, error, fatal)</dd>
|
89
|
-
<dt><code>-L</code>, <code>--logfile LOGLOCATION</code></dt><dd>Set the log file location, defaults to STDOUT - recommended for daemonizing</dd>
|
90
|
-
<dt><code>-P</code>, <code>--pid PIDFILE</code></dt><dd>Set the PID file location, defaults to /tmp/chef-solr.pid</dd>
|
91
|
-
<dt><code>-D</code>, <code>--solr-data-dir PATH</code></dt><dd>Where the Solr data lives</dd>
|
92
|
-
<dt><code>-x</code>, <code>--solor-heap-size SIZE</code></dt><dd>Set the size of the Java Heap</dd>
|
93
|
-
<dt><code>-H</code>, <code>--solr-home-dir PATH</code></dt><dd>Solr home directory</dd>
|
94
|
-
<dt><code>-j</code>, <code>--java-opts OPTS</code></dt><dd>Raw options passed to Java</dd>
|
95
|
-
<dt><code>-x</code>, <code>--solor-heap-size</code></dt><dd>Set the size of the Java Heap</dd>
|
96
|
-
<dt><code>-W</code>, <code>--solr-jetty-dir PATH</code></dt><dd>Where to place the Solr Jetty instance</dd>
|
97
|
-
<dt><code>-u</code>, <code>--user USER</code></dt><dd>User to set privilege to</dd>
|
98
|
-
<dt><code>-v</code>, <code>--version</code></dt><dd>Show chef-solr version</dd>
|
99
|
-
<dt><code>-h</code>, <code>--help</code></dt><dd>Show this message</dd>
|
100
|
-
</dl>
|
101
|
-
|
102
|
-
|
103
|
-
<h2 id="DESCRIPTION">DESCRIPTION</h2>
|
104
|
-
|
105
|
-
<p>Chef-solr provides search service for Chef. You need to have both
|
106
|
-
chef-solr and chef-expander-cluster running in order for search to work.</p>
|
107
|
-
|
108
|
-
<p><strong>Installation</strong></p>
|
109
|
-
|
110
|
-
<p>Make sure you backed up your data if you are upgrading from a previous version.
|
111
|
-
Run chef-solr-installer to upgrade your Chef Solr installation. Answer "yes"
|
112
|
-
when prompted for confirmation. The process should look like this:</p>
|
113
|
-
|
114
|
-
<pre><code>yourshell> chef-solr-installer
|
115
|
-
Configuration setting solr_heap_size is unknown and will be ignored
|
116
|
-
|
117
|
-
Chef Solr is already installed in /var/chef/solr
|
118
|
-
Do you want to overwrite the current install? All existing Solr data will be lost. [y/n] y
|
119
|
-
Removing the existing Chef Solr installation
|
120
|
-
rm -rf /var/chef/solr
|
121
|
-
rm -rf /var/chef/solr-jetty
|
122
|
-
rm -rf /var/chef/solr/data
|
123
|
-
Creating Solr Home Directory
|
124
|
-
mkdir -p /var/chef/solr
|
125
|
-
entering /var/chef/solr
|
126
|
-
tar zxvf /Users/ddeleo/opscode/chef/chef-solr/solr/solr-home.tar.gz
|
127
|
-
Creating Solr Data Directory
|
128
|
-
mkdir -p /var/chef/solr/data
|
129
|
-
Unpacking Solr Jetty
|
130
|
-
mkdir -p /var/chef/solr-jetty
|
131
|
-
entering /var/chef/solr-jetty
|
132
|
-
tar zxvf /Users/ddeleo/opscode/chef/chef-solr/solr/solr-jetty.tar.gz
|
133
|
-
|
134
|
-
Successfully installed Chef Solr.
|
135
|
-
You can restore your search index using `knife index rebuild`
|
136
|
-
</code></pre>
|
137
|
-
|
138
|
-
<h2 id="SEE-ALSO">SEE ALSO</h2>
|
139
|
-
|
140
|
-
<p><strong>chef-expander-cluster</strong>(8)</p>
|
141
|
-
|
142
|
-
<p>Full documentation for Chef and chef-server is located on the Chef
|
143
|
-
wiki, http://wiki.opscode.com/display/chef/Home.</p>
|
144
|
-
|
145
|
-
<h2 id="AUTHOR">AUTHOR</h2>
|
146
|
-
|
147
|
-
<p>Chef was written by Adam Jacob <a href="mailto:adam@ospcode.com" data-bare-link="true">adam@ospcode.com</a> of Opscode
|
148
|
-
(http://www.opscode.com), with contributions from the community. This
|
149
|
-
manual page was written by Joshua Timberman <a href="mailto:joshua@opscode.com" data-bare-link="true">joshua@opscode.com</a> with
|
150
|
-
help2man. Permission is granted to copy, distribute and / or modify
|
151
|
-
this document under the terms of the Apache 2.0 License.</p>
|
152
|
-
|
153
|
-
<p>On Debian systems, the complete text of the Apache 2.0 License can be
|
154
|
-
found in /usr/share/common-licenses/Apache-2.0.</p>
|
155
|
-
|
156
|
-
|
157
|
-
<ol class='man-decor man-foot man foot'>
|
158
|
-
<li class='tl'>Chef 11.10.0.rc.0</li>
|
159
|
-
<li class='tc'>January 2014</li>
|
160
|
-
<li class='tr'>chef-solr(8)</li>
|
161
|
-
</ol>
|
162
|
-
|
163
|
-
</div>
|
164
|
-
</body>
|
165
|
-
</html>
|
@@ -1,241 +0,0 @@
|
|
1
|
-
<!DOCTYPE html>
|
2
|
-
<html>
|
3
|
-
<head>
|
4
|
-
<meta http-equiv='content-type' value='text/html;charset=utf8'>
|
5
|
-
<meta name='generator' value='Ronn/v0.7.3 (http://github.com/rtomayko/ronn/tree/0.7.3)'>
|
6
|
-
<title>knife-bootstrap(1) - Install Chef Client on a remote host</title>
|
7
|
-
<style type='text/css' media='all'>
|
8
|
-
/* style: man */
|
9
|
-
body#manpage {margin:0}
|
10
|
-
.mp {max-width:100ex;padding:0 9ex 1ex 4ex}
|
11
|
-
.mp p,.mp pre,.mp ul,.mp ol,.mp dl {margin:0 0 20px 0}
|
12
|
-
.mp h2 {margin:10px 0 0 0}
|
13
|
-
.mp > p,.mp > pre,.mp > ul,.mp > ol,.mp > dl {margin-left:8ex}
|
14
|
-
.mp h3 {margin:0 0 0 4ex}
|
15
|
-
.mp dt {margin:0;clear:left}
|
16
|
-
.mp dt.flush {float:left;width:8ex}
|
17
|
-
.mp dd {margin:0 0 0 9ex}
|
18
|
-
.mp h1,.mp h2,.mp h3,.mp h4 {clear:left}
|
19
|
-
.mp pre {margin-bottom:20px}
|
20
|
-
.mp pre+h2,.mp pre+h3 {margin-top:22px}
|
21
|
-
.mp h2+pre,.mp h3+pre {margin-top:5px}
|
22
|
-
.mp img {display:block;margin:auto}
|
23
|
-
.mp h1.man-title {display:none}
|
24
|
-
.mp,.mp code,.mp pre,.mp tt,.mp kbd,.mp samp,.mp h3,.mp h4 {font-family:monospace;font-size:14px;line-height:1.42857142857143}
|
25
|
-
.mp h2 {font-size:16px;line-height:1.25}
|
26
|
-
.mp h1 {font-size:20px;line-height:2}
|
27
|
-
.mp {text-align:justify;background:#fff}
|
28
|
-
.mp,.mp code,.mp pre,.mp pre code,.mp tt,.mp kbd,.mp samp {color:#131211}
|
29
|
-
.mp h1,.mp h2,.mp h3,.mp h4 {color:#030201}
|
30
|
-
.mp u {text-decoration:underline}
|
31
|
-
.mp code,.mp strong,.mp b {font-weight:bold;color:#131211}
|
32
|
-
.mp em,.mp var {font-style:italic;color:#232221;text-decoration:none}
|
33
|
-
.mp a,.mp a:link,.mp a:hover,.mp a code,.mp a pre,.mp a tt,.mp a kbd,.mp a samp {color:#0000ff}
|
34
|
-
.mp b.man-ref {font-weight:normal;color:#434241}
|
35
|
-
.mp pre {padding:0 4ex}
|
36
|
-
.mp pre code {font-weight:normal;color:#434241}
|
37
|
-
.mp h2+pre,h3+pre {padding-left:0}
|
38
|
-
ol.man-decor,ol.man-decor li {margin:3px 0 10px 0;padding:0;float:left;width:33%;list-style-type:none;text-transform:uppercase;color:#999;letter-spacing:1px}
|
39
|
-
ol.man-decor {width:100%}
|
40
|
-
ol.man-decor li.tl {text-align:left}
|
41
|
-
ol.man-decor li.tc {text-align:center;letter-spacing:4px}
|
42
|
-
ol.man-decor li.tr {text-align:right;float:right}
|
43
|
-
</style>
|
44
|
-
<style type='text/css' media='all'>
|
45
|
-
/* style: toc */
|
46
|
-
.man-navigation {display:block !important;position:fixed;top:0;left:113ex;height:100%;width:100%;padding:48px 0 0 0;border-left:1px solid #dbdbdb;background:#eee}
|
47
|
-
.man-navigation a,.man-navigation a:hover,.man-navigation a:link,.man-navigation a:visited {display:block;margin:0;padding:5px 2px 5px 30px;color:#999;text-decoration:none}
|
48
|
-
.man-navigation a:hover {color:#111;text-decoration:underline}
|
49
|
-
</style>
|
50
|
-
</head>
|
51
|
-
<!--
|
52
|
-
The following styles are deprecated and will be removed at some point:
|
53
|
-
div#man, div#man ol.man, div#man ol.head, div#man ol.man.
|
54
|
-
|
55
|
-
The .man-page, .man-decor, .man-head, .man-foot, .man-title, and
|
56
|
-
.man-navigation should be used instead.
|
57
|
-
-->
|
58
|
-
<body id='manpage'>
|
59
|
-
<div class='mp' id='man'>
|
60
|
-
|
61
|
-
<div class='man-navigation' style='display:none'>
|
62
|
-
<a href="#NAME">NAME</a>
|
63
|
-
<a href="#SYNOPSIS">SYNOPSIS</a>
|
64
|
-
<a href="#DESCRIPTION">DESCRIPTION</a>
|
65
|
-
<a href="#EXAMPLES">EXAMPLES</a>
|
66
|
-
<a href="#BUGS">BUGS</a>
|
67
|
-
<a href="#SEE-ALSO">SEE ALSO</a>
|
68
|
-
<a href="#AUTHOR">AUTHOR</a>
|
69
|
-
<a href="#DOCUMENTATION">DOCUMENTATION</a>
|
70
|
-
<a href="#CHEF">CHEF</a>
|
71
|
-
</div>
|
72
|
-
|
73
|
-
<ol class='man-decor man-head man head'>
|
74
|
-
<li class='tl'>knife-bootstrap(1)</li>
|
75
|
-
<li class='tc'>Chef Manual</li>
|
76
|
-
<li class='tr'>knife-bootstrap(1)</li>
|
77
|
-
</ol>
|
78
|
-
|
79
|
-
<h2 id="NAME">NAME</h2>
|
80
|
-
<p class="man-name">
|
81
|
-
<code>knife-bootstrap</code> - <span class="man-whatis">Install Chef Client on a remote host</span>
|
82
|
-
</p>
|
83
|
-
|
84
|
-
<h2 id="SYNOPSIS">SYNOPSIS</h2>
|
85
|
-
|
86
|
-
<p><strong>knife</strong> <strong>bootstrap</strong> <em>(options)</em></p>
|
87
|
-
|
88
|
-
<dl>
|
89
|
-
<dt><code>-i</code>, <code>--identity-file IDENTITY_FILE</code></dt><dd>The SSH identity file used for authentication</dd>
|
90
|
-
<dt><code>-N</code>, <code>--node-name NAME</code></dt><dd>The Chef node name for your new node</dd>
|
91
|
-
<dt><code>-P</code>, <code>--ssh-password PASSWORD</code></dt><dd>The ssh password</dd>
|
92
|
-
<dt><code>-x</code>, <code>--ssh-user USERNAME</code></dt><dd>The ssh username</dd>
|
93
|
-
<dt><code>-p</code>, <code>--ssh-port PORT</code></dt><dd>The ssh port</dd>
|
94
|
-
<dt><code>--bootstrap-version VERSION</code></dt><dd>The version of Chef to install</dd>
|
95
|
-
<dt><code>--bootstrap-proxy PROXY_URL</code></dt><dd><code>The proxy server for the node being bootstrapped</code></dd>
|
96
|
-
<dt><code>--prerelease</code></dt><dd>Install pre-release Chef gems</dd>
|
97
|
-
<dt><code>-r</code>, <code>--run-list RUN_LIST</code></dt><dd>Comma separated list of roles/recipes to apply</dd>
|
98
|
-
<dt><code>--template-file TEMPLATE</code></dt><dd>Full path to location of template to use</dd>
|
99
|
-
<dt class="flush"><code>--sudo</code></dt><dd>Execute the bootstrap via sudo</dd>
|
100
|
-
<dt><code>-d</code>, <code>--distro DISTRO</code></dt><dd>Bootstrap a distro using a template</dd>
|
101
|
-
<dt><code>--[no-]host-key-verify</code></dt><dd>Enable host key verification, which is the default behavior.</dd>
|
102
|
-
<dt><code>--hint HINT_NAME[=HINT_FILE]</code></dt><dd>Provide the name of a hint (with option JSON file) to set for use by
|
103
|
-
Ohai plugins.</dd>
|
104
|
-
</dl>
|
105
|
-
|
106
|
-
|
107
|
-
<h2 id="DESCRIPTION">DESCRIPTION</h2>
|
108
|
-
|
109
|
-
<p>Performs a Chef Bootstrap on the target node. The goal of the bootstrap
|
110
|
-
is to get Chef installed on the target system so it can run Chef Client
|
111
|
-
with a Chef Server. The main assumption is a baseline OS installation
|
112
|
-
exists. This sub-command is used internally by some cloud computing
|
113
|
-
plugins.</p>
|
114
|
-
|
115
|
-
<p>The bootstrap sub-command supports supplying a template to perform the
|
116
|
-
bootstrap steps. If the distro is not specified (via <code>-d</code> or <code>--distro</code>
|
117
|
-
option), an Ubuntu 10.04 host bootstrapped with RubyGems is assumed. The
|
118
|
-
<strong>DISTRO</strong> value corresponds to the base filename of the template, in
|
119
|
-
other words <code>DISTRO</code>.erb. A template file can be specified with the
|
120
|
-
<code>--template-file</code> option in which case the <strong>DISTRO</strong> is not used. The
|
121
|
-
sub-command looks in the following locations for the template to use:</p>
|
122
|
-
|
123
|
-
<ul>
|
124
|
-
<li><code>bootstrap</code> directory in the installed Chef Knife library.</li>
|
125
|
-
<li><code>bootstrap</code> directory in the <code>$PWD/.chef</code>.</li>
|
126
|
-
<li><code>bootstrap</code> directory in the users <code>$HOME/.chef</code>.</li>
|
127
|
-
</ul>
|
128
|
-
|
129
|
-
|
130
|
-
<p>The default bootstrap templates are scripts that get copied to the
|
131
|
-
target node (FQDN). The following distros are supported:</p>
|
132
|
-
|
133
|
-
<ul>
|
134
|
-
<li>centos5-gems</li>
|
135
|
-
<li>fedora13-gems</li>
|
136
|
-
<li>ubuntu10.04-gems</li>
|
137
|
-
<li>ubuntu10.04-apt</li>
|
138
|
-
</ul>
|
139
|
-
|
140
|
-
|
141
|
-
<p>The gems installations will use RubyGems 1.3.6 and Chef installed as a
|
142
|
-
gem. The apt installation will use the Opscode APT repository.</p>
|
143
|
-
|
144
|
-
<p>In addition to handling the software installation, these bootstrap
|
145
|
-
templates do the following:</p>
|
146
|
-
|
147
|
-
<ul>
|
148
|
-
<li>Write the validation.pem per the local knife configuration.</li>
|
149
|
-
<li>Write a default config file for Chef (<code>/etc/chef/client.rb</code>) using values from the <code>knife.rb</code>.</li>
|
150
|
-
<li>Create a JSON attributes file containing the specified run list and run Chef.</li>
|
151
|
-
</ul>
|
152
|
-
|
153
|
-
|
154
|
-
<p>In the case of the RubyGems, the <code>client.rb</code> will be written from
|
155
|
-
scratch with a minimal set of values; see <strong>EXAMPLES</strong>. In the case of
|
156
|
-
APT Package installation, <code>client.rb</code> will have the
|
157
|
-
<code>validation_client_name</code> appended if it is not set to <code>chef-validator</code>
|
158
|
-
(default config value), and the <code>node_name</code> will be added if
|
159
|
-
<code>chef_node_name</code> option is specified.</p>
|
160
|
-
|
161
|
-
<p>When this is complete, the bootstrapped node will have:</p>
|
162
|
-
|
163
|
-
<ul>
|
164
|
-
<li>Latest Chef version installed from RubyGems or APT Packages from Opscode. This may be a later version than the local system.</li>
|
165
|
-
<li>Be validated with the configured Chef Server.</li>
|
166
|
-
<li>Have run Chef with its default run list if one is specfied.</li>
|
167
|
-
</ul>
|
168
|
-
|
169
|
-
|
170
|
-
<p>Additional custom bootstrap templates can be created and stored in
|
171
|
-
<code>.chef/bootstrap/DISTRO.erb</code>, replacing <strong>DISTRO</strong> with the value passed
|
172
|
-
with the <code>-d</code> or <code>--distro</code> option. See <strong>EXAMPLES</strong> for more
|
173
|
-
information.</p>
|
174
|
-
|
175
|
-
<h2 id="EXAMPLES">EXAMPLES</h2>
|
176
|
-
|
177
|
-
<p>Setting up a custom bootstrap is fairly straightforward. Create a
|
178
|
-
<code>.chef/bootstrap</code> directory in your Chef Repository or in
|
179
|
-
<code>$HOME/.chef/bootstrap</code>. Then create the ERB template file.</p>
|
180
|
-
|
181
|
-
<pre><code>mkdir ~/.chef/bootstrap
|
182
|
-
vi ~/.chef/bootstrap/debian5.0-apt.erb
|
183
|
-
</code></pre>
|
184
|
-
|
185
|
-
<p>For example, to create a new bootstrap template that should be used when
|
186
|
-
setting up a new Debian node. Edit the template to run the commands, set
|
187
|
-
up the validation certificate and the client configuration file, and
|
188
|
-
finally to run chef-client on completion. The bootstrap template can be
|
189
|
-
called with:</p>
|
190
|
-
|
191
|
-
<pre><code>knife bootstrap mynode.example.com --template-file ~/.chef/bootstrap/debian5.0-apt.erb
|
192
|
-
</code></pre>
|
193
|
-
|
194
|
-
<p>Or,</p>
|
195
|
-
|
196
|
-
<pre><code>knife bootstrap mynode.example.com --distro debian5.0-apt
|
197
|
-
</code></pre>
|
198
|
-
|
199
|
-
<p>The <code>--distro</code> parameter will automatically look in the
|
200
|
-
<code>~/.chef/bootstrap</code> directory for a file named <code>debian5.0-apt.erb</code>.</p>
|
201
|
-
|
202
|
-
<p>Templates provided by the Chef installation are located in
|
203
|
-
<code>BASEDIR/lib/chef/knife/bootstrap/*.erb</code>, where <em>BASEDIR</em> is the
|
204
|
-
location where the package or Gem installed the Chef client libraries.</p>
|
205
|
-
|
206
|
-
<h2 id="BUGS">BUGS</h2>
|
207
|
-
|
208
|
-
<p><code>knife bootstrap</code> is not capable of bootstrapping multiple hosts in
|
209
|
-
parallel.</p>
|
210
|
-
|
211
|
-
<p>The bootstrap script is passed as an argument to <span class="man-ref">sh<span class="s">(1)</span></span> on the remote
|
212
|
-
system, so sensitive information contained in the script will be visible
|
213
|
-
to other users via the process list using tools such as <span class="man-ref">ps<span class="s">(1)</span></span>.</p>
|
214
|
-
|
215
|
-
<h2 id="SEE-ALSO">SEE ALSO</h2>
|
216
|
-
|
217
|
-
<p> <strong>knife-ssh</strong>(1)</p>
|
218
|
-
|
219
|
-
<h2 id="AUTHOR">AUTHOR</h2>
|
220
|
-
|
221
|
-
<p> Chef was written by Adam Jacob <a href="mailto:adam@opscode.com" data-bare-link="true">adam@opscode.com</a> with many contributions from the community.</p>
|
222
|
-
|
223
|
-
<h2 id="DOCUMENTATION">DOCUMENTATION</h2>
|
224
|
-
|
225
|
-
<p> This manual page was written by Joshua Timberman <a href="mailto:joshua@opscode.com" data-bare-link="true">joshua@opscode.com</a>.
|
226
|
-
Permission is granted to copy, distribute and / or modify this document under the terms of the Apache 2.0 License.</p>
|
227
|
-
|
228
|
-
<h2 id="CHEF">CHEF</h2>
|
229
|
-
|
230
|
-
<p> Knife is distributed with Chef. <a href="http://wiki.opscode.com/display/chef/Home" data-bare-link="true">http://wiki.opscode.com/display/chef/Home</a></p>
|
231
|
-
|
232
|
-
|
233
|
-
<ol class='man-decor man-foot man foot'>
|
234
|
-
<li class='tl'>Chef 11.10.0.rc.0</li>
|
235
|
-
<li class='tc'>January 2014</li>
|
236
|
-
<li class='tr'>knife-bootstrap(1)</li>
|
237
|
-
</ol>
|
238
|
-
|
239
|
-
</div>
|
240
|
-
</body>
|
241
|
-
</html>
|
@@ -1,219 +0,0 @@
|
|
1
|
-
<!DOCTYPE html>
|
2
|
-
<html>
|
3
|
-
<head>
|
4
|
-
<meta http-equiv='content-type' value='text/html;charset=utf8'>
|
5
|
-
<meta name='generator' value='Ronn/v0.7.3 (http://github.com/rtomayko/ronn/tree/0.7.3)'>
|
6
|
-
<title>knife-client(1) - Manage Chef API Clients</title>
|
7
|
-
<style type='text/css' media='all'>
|
8
|
-
/* style: man */
|
9
|
-
body#manpage {margin:0}
|
10
|
-
.mp {max-width:100ex;padding:0 9ex 1ex 4ex}
|
11
|
-
.mp p,.mp pre,.mp ul,.mp ol,.mp dl {margin:0 0 20px 0}
|
12
|
-
.mp h2 {margin:10px 0 0 0}
|
13
|
-
.mp > p,.mp > pre,.mp > ul,.mp > ol,.mp > dl {margin-left:8ex}
|
14
|
-
.mp h3 {margin:0 0 0 4ex}
|
15
|
-
.mp dt {margin:0;clear:left}
|
16
|
-
.mp dt.flush {float:left;width:8ex}
|
17
|
-
.mp dd {margin:0 0 0 9ex}
|
18
|
-
.mp h1,.mp h2,.mp h3,.mp h4 {clear:left}
|
19
|
-
.mp pre {margin-bottom:20px}
|
20
|
-
.mp pre+h2,.mp pre+h3 {margin-top:22px}
|
21
|
-
.mp h2+pre,.mp h3+pre {margin-top:5px}
|
22
|
-
.mp img {display:block;margin:auto}
|
23
|
-
.mp h1.man-title {display:none}
|
24
|
-
.mp,.mp code,.mp pre,.mp tt,.mp kbd,.mp samp,.mp h3,.mp h4 {font-family:monospace;font-size:14px;line-height:1.42857142857143}
|
25
|
-
.mp h2 {font-size:16px;line-height:1.25}
|
26
|
-
.mp h1 {font-size:20px;line-height:2}
|
27
|
-
.mp {text-align:justify;background:#fff}
|
28
|
-
.mp,.mp code,.mp pre,.mp pre code,.mp tt,.mp kbd,.mp samp {color:#131211}
|
29
|
-
.mp h1,.mp h2,.mp h3,.mp h4 {color:#030201}
|
30
|
-
.mp u {text-decoration:underline}
|
31
|
-
.mp code,.mp strong,.mp b {font-weight:bold;color:#131211}
|
32
|
-
.mp em,.mp var {font-style:italic;color:#232221;text-decoration:none}
|
33
|
-
.mp a,.mp a:link,.mp a:hover,.mp a code,.mp a pre,.mp a tt,.mp a kbd,.mp a samp {color:#0000ff}
|
34
|
-
.mp b.man-ref {font-weight:normal;color:#434241}
|
35
|
-
.mp pre {padding:0 4ex}
|
36
|
-
.mp pre code {font-weight:normal;color:#434241}
|
37
|
-
.mp h2+pre,h3+pre {padding-left:0}
|
38
|
-
ol.man-decor,ol.man-decor li {margin:3px 0 10px 0;padding:0;float:left;width:33%;list-style-type:none;text-transform:uppercase;color:#999;letter-spacing:1px}
|
39
|
-
ol.man-decor {width:100%}
|
40
|
-
ol.man-decor li.tl {text-align:left}
|
41
|
-
ol.man-decor li.tc {text-align:center;letter-spacing:4px}
|
42
|
-
ol.man-decor li.tr {text-align:right;float:right}
|
43
|
-
</style>
|
44
|
-
<style type='text/css' media='all'>
|
45
|
-
/* style: toc */
|
46
|
-
.man-navigation {display:block !important;position:fixed;top:0;left:113ex;height:100%;width:100%;padding:48px 0 0 0;border-left:1px solid #dbdbdb;background:#eee}
|
47
|
-
.man-navigation a,.man-navigation a:hover,.man-navigation a:link,.man-navigation a:visited {display:block;margin:0;padding:5px 2px 5px 30px;color:#999;text-decoration:none}
|
48
|
-
.man-navigation a:hover {color:#111;text-decoration:underline}
|
49
|
-
</style>
|
50
|
-
</head>
|
51
|
-
<!--
|
52
|
-
The following styles are deprecated and will be removed at some point:
|
53
|
-
div#man, div#man ol.man, div#man ol.head, div#man ol.man.
|
54
|
-
|
55
|
-
The .man-page, .man-decor, .man-head, .man-foot, .man-title, and
|
56
|
-
.man-navigation should be used instead.
|
57
|
-
-->
|
58
|
-
<body id='manpage'>
|
59
|
-
<div class='mp' id='man'>
|
60
|
-
|
61
|
-
<div class='man-navigation' style='display:none'>
|
62
|
-
<a href="#NAME">NAME</a>
|
63
|
-
<a href="#SYNOPSIS">SYNOPSIS</a>
|
64
|
-
<a href="#SUB-COMMANDS">SUB-COMMANDS</a>
|
65
|
-
<a href="#BULK-DELETE">BULK DELETE</a>
|
66
|
-
<a href="#CREATE">CREATE</a>
|
67
|
-
<a href="#DELETE">DELETE</a>
|
68
|
-
<a href="#EDIT">EDIT</a>
|
69
|
-
<a href="#LIST">LIST</a>
|
70
|
-
<a href="#REREGISTER">REREGISTER</a>
|
71
|
-
<a href="#SHOW">SHOW</a>
|
72
|
-
<a href="#DESCRIPTION">DESCRIPTION</a>
|
73
|
-
<a href="#SEE-ALSO">SEE ALSO</a>
|
74
|
-
<a href="#AUTHOR">AUTHOR</a>
|
75
|
-
<a href="#DOCUMENTATION">DOCUMENTATION</a>
|
76
|
-
<a href="#CHEF">CHEF</a>
|
77
|
-
</div>
|
78
|
-
|
79
|
-
<ol class='man-decor man-head man head'>
|
80
|
-
<li class='tl'>knife-client(1)</li>
|
81
|
-
<li class='tc'>Chef Manual</li>
|
82
|
-
<li class='tr'>knife-client(1)</li>
|
83
|
-
</ol>
|
84
|
-
|
85
|
-
<h2 id="NAME">NAME</h2>
|
86
|
-
<p class="man-name">
|
87
|
-
<code>knife-client</code> - <span class="man-whatis">Manage Chef API Clients</span>
|
88
|
-
</p>
|
89
|
-
|
90
|
-
<h2 id="SYNOPSIS">SYNOPSIS</h2>
|
91
|
-
|
92
|
-
<p><strong>knife</strong> <strong>client</strong> <em>sub-command</em> <em>(options)</em></p>
|
93
|
-
|
94
|
-
<h2 id="SUB-COMMANDS">SUB-COMMANDS</h2>
|
95
|
-
|
96
|
-
<p>Client subcommands follow a basic create, read, update, delete (CRUD)
|
97
|
-
pattern. The Following subcommands are available:</p>
|
98
|
-
|
99
|
-
<h2 id="BULK-DELETE">BULK DELETE</h2>
|
100
|
-
|
101
|
-
<p><strong>knife client bulk delete</strong> <em>regex</em> <em>(options)</em></p>
|
102
|
-
|
103
|
-
<p>Delete clients where the client name matches the regular expression
|
104
|
-
<em>regex</em> on the Chef Server. The regular expression should be given as a
|
105
|
-
quoted string, and not surrounded by forward slashes.</p>
|
106
|
-
|
107
|
-
<h2 id="CREATE">CREATE</h2>
|
108
|
-
|
109
|
-
<p><strong>knife client create</strong> <em>client name</em> <em>(options)</em></p>
|
110
|
-
|
111
|
-
<dl>
|
112
|
-
<dt><code>-a</code>, <code>--admin </code></dt><dd>Create the client as an admin</dd>
|
113
|
-
<dt><code>-f</code>, <code>--file FILE</code></dt><dd>Write the key to a file</dd>
|
114
|
-
</dl>
|
115
|
-
|
116
|
-
|
117
|
-
<p>Create a new client. This generates an RSA keypair. The private key will
|
118
|
-
be displayed on <em>STDOUT</em> or written to the named file. The public half
|
119
|
-
will be stored on the Server. For <em>chef-client</em> systems, the private key
|
120
|
-
should be copied to the system as <code>/etc/chef/client.pem</code>.</p>
|
121
|
-
|
122
|
-
<p>Admin clients should be created for users that will use <em>knife</em> to
|
123
|
-
access the API as an administrator. The private key will generally be
|
124
|
-
copied to <code>~/.chef/client\_name.pem</code> and referenced in the <code>knife.rb</code>
|
125
|
-
configuration file.</p>
|
126
|
-
|
127
|
-
<h2 id="DELETE">DELETE</h2>
|
128
|
-
|
129
|
-
<p><strong>knife client delete</strong> <em>client name</em> <em>(options)</em></p>
|
130
|
-
|
131
|
-
<p>Deletes a registered client.</p>
|
132
|
-
|
133
|
-
<h2 id="EDIT">EDIT</h2>
|
134
|
-
|
135
|
-
<p><strong>client edit</strong> <em>client name</em> <em>(options)</em></p>
|
136
|
-
|
137
|
-
<p>Edit a registered client.</p>
|
138
|
-
|
139
|
-
<h2 id="LIST">LIST</h2>
|
140
|
-
|
141
|
-
<p><strong>client list</strong> <em>(options)</em></p>
|
142
|
-
|
143
|
-
<dl>
|
144
|
-
<dt><code>-w</code>, <code>--with-uri</code></dt><dd> Show corresponding URIs</dd>
|
145
|
-
</dl>
|
146
|
-
|
147
|
-
|
148
|
-
<p>List all registered clients.</p>
|
149
|
-
|
150
|
-
<h2 id="REREGISTER">REREGISTER</h2>
|
151
|
-
|
152
|
-
<p><strong>client reregister</strong> <em>client name</em> <em>(options)</em></p>
|
153
|
-
|
154
|
-
<dl>
|
155
|
-
<dt><code>-f</code>, <code>--file FILE</code></dt><dd>Write the key to a file</dd>
|
156
|
-
</dl>
|
157
|
-
|
158
|
-
|
159
|
-
<p>Regenerate the RSA keypair for a client. The public half will be stored
|
160
|
-
on the server and the private key displayed on <em>STDOUT</em> or written to
|
161
|
-
the named file. This operation will invalidate the previous keypair used
|
162
|
-
by the client, preventing it from authenticating with the Chef Server.
|
163
|
-
Use care when reregistering the validator client.</p>
|
164
|
-
|
165
|
-
<h2 id="SHOW">SHOW</h2>
|
166
|
-
|
167
|
-
<p><strong>client show</strong> <em>client name</em> <em>(options)</em></p>
|
168
|
-
|
169
|
-
<dl>
|
170
|
-
<dt><code>-a</code>, <code>--attribute ATTR</code></dt><dd>Show only one attribute</dd>
|
171
|
-
</dl>
|
172
|
-
|
173
|
-
|
174
|
-
<p>Show a client. Output format is determined by the --format option.</p>
|
175
|
-
|
176
|
-
<h2 id="DESCRIPTION">DESCRIPTION</h2>
|
177
|
-
|
178
|
-
<p>Clients are identities used for communication with the Chef Server API,
|
179
|
-
roughly equivalent to user accounts on the Chef Server, except that
|
180
|
-
clients only communicate with the Chef Server API and are authenticated
|
181
|
-
via request signatures.</p>
|
182
|
-
|
183
|
-
<p>In the typical case, there will be one client object on the server for
|
184
|
-
each node, and the corresponding client and node will have identical
|
185
|
-
names.</p>
|
186
|
-
|
187
|
-
<p>In the Chef authorization model, there is one special client, the
|
188
|
-
"validator", which is authorized to create new non-administrative
|
189
|
-
clients but has minimal privileges otherwise. This identity is used as a
|
190
|
-
sort of "guest account" to create a client identity when initially
|
191
|
-
setting up a host for management with Chef.</p>
|
192
|
-
|
193
|
-
<h2 id="SEE-ALSO">SEE ALSO</h2>
|
194
|
-
|
195
|
-
<p> <strong>knife-node</strong>(1)</p>
|
196
|
-
|
197
|
-
<h2 id="AUTHOR">AUTHOR</h2>
|
198
|
-
|
199
|
-
<p> Chef was written by Adam Jacob <a href="mailto:adam@opscode.com" data-bare-link="true">adam@opscode.com</a> with many contributions from the community.</p>
|
200
|
-
|
201
|
-
<h2 id="DOCUMENTATION">DOCUMENTATION</h2>
|
202
|
-
|
203
|
-
<p> This manual page was written by Joshua Timberman <a href="mailto:joshua@opscode.com" data-bare-link="true">joshua@opscode.com</a>.
|
204
|
-
Permission is granted to copy, distribute and / or modify this document under the terms of the Apache 2.0 License.</p>
|
205
|
-
|
206
|
-
<h2 id="CHEF">CHEF</h2>
|
207
|
-
|
208
|
-
<p> Knife is distributed with Chef. <a href="http://wiki.opscode.com/display/chef/Home" data-bare-link="true">http://wiki.opscode.com/display/chef/Home</a></p>
|
209
|
-
|
210
|
-
|
211
|
-
<ol class='man-decor man-foot man foot'>
|
212
|
-
<li class='tl'>Chef 11.10.0.rc.0</li>
|
213
|
-
<li class='tc'>January 2014</li>
|
214
|
-
<li class='tr'>knife-client(1)</li>
|
215
|
-
</ol>
|
216
|
-
|
217
|
-
</div>
|
218
|
-
</body>
|
219
|
-
</html>
|