chef 11.18.12-x86-mingw32 → 12.0.0.alpha.0-x86-mingw32
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CONTRIBUTING.md +10 -0
- data/README.md +1 -1
- data/distro/common/html/_sources/index.txt +5 -2
- data/distro/common/html/_sources/knife_serve.txt +19 -0
- data/distro/common/html/_sources/knife_ssl_check.txt +2 -2
- data/distro/common/html/_sources/knife_ssl_fetch.txt +2 -2
- data/distro/common/html/_static/basic.css +1 -1
- data/distro/common/html/_static/doctools.js +1 -1
- data/distro/common/html/_static/searchtools.js +1 -1
- data/distro/common/html/_static/websupport.js +1 -1
- data/distro/common/html/ctl_chef_client.html +19 -9
- data/distro/common/html/ctl_chef_server.html +7 -1
- data/distro/common/html/ctl_chef_shell.html +3 -4
- data/distro/common/html/ctl_chef_solo.html +12 -7
- data/distro/common/html/index.html +19 -12
- data/distro/common/html/knife.html +1 -2
- data/distro/common/html/knife_bootstrap.html +16 -5
- data/distro/common/html/knife_client.html +8 -5
- data/distro/common/html/knife_common_options.html +11 -12
- data/distro/common/html/knife_configure.html +2 -3
- data/distro/common/html/knife_cookbook.html +16 -17
- data/distro/common/html/knife_cookbook_site.html +19 -18
- data/distro/common/html/knife_data_bag.html +6 -7
- data/distro/common/html/knife_delete.html +2 -3
- data/distro/common/html/knife_deps.html +2 -3
- data/distro/common/html/knife_diff.html +3 -4
- data/distro/common/html/knife_download.html +6 -7
- data/distro/common/html/knife_edit.html +0 -1
- data/distro/common/html/knife_environment.html +3 -4
- data/distro/common/html/knife_exec.html +0 -1
- data/distro/common/html/knife_index_rebuild.html +0 -1
- data/distro/common/html/knife_list.html +5 -6
- data/distro/common/html/knife_node.html +13 -6
- data/distro/common/html/knife_raw.html +0 -1
- data/distro/common/html/knife_recipe_list.html +0 -1
- data/distro/common/html/knife_role.html +1 -2
- data/distro/common/html/knife_search.html +2 -3
- data/distro/common/html/knife_serve.html +79 -0
- data/distro/common/html/knife_show.html +1 -2
- data/distro/common/html/knife_ssh.html +2 -3
- data/distro/common/html/knife_ssl_check.html +12 -9
- data/distro/common/html/knife_ssl_fetch.html +9 -10
- data/distro/common/html/knife_status.html +2 -3
- data/distro/common/html/knife_tag.html +0 -1
- data/distro/common/html/knife_upload.html +3 -4
- data/distro/common/html/knife_user.html +2 -3
- data/distro/common/html/knife_using.html +0 -1
- data/distro/common/html/knife_xargs.html +3 -4
- data/distro/common/html/search.html +0 -1
- data/distro/common/html/searchindex.js +1 -1
- data/lib/chef/api_client.rb +1 -1
- data/lib/chef/application.rb +24 -67
- data/lib/chef/application/client.rb +1 -1
- data/lib/chef/application/knife.rb +1 -1
- data/lib/chef/chef_fs/chef_fs_data_store.rb +2 -3
- data/lib/chef/chef_fs/command_line.rb +2 -3
- data/lib/chef/chef_fs/data_handler/group_data_handler.rb +1 -5
- data/lib/chef/chef_fs/file_system/acl_entry.rb +1 -2
- data/lib/chef/chef_fs/file_system/chef_repository_file_system_entry.rb +1 -2
- data/lib/chef/chef_fs/file_system/cookbooks_dir.rb +2 -2
- data/lib/chef/chef_fs/file_system/rest_list_dir.rb +2 -3
- data/lib/chef/chef_fs/file_system/rest_list_entry.rb +4 -5
- data/lib/chef/config.rb +26 -2
- data/lib/chef/config_fetcher.rb +1 -1
- data/lib/chef/cookbook/cookbook_version_loader.rb +4 -4
- data/lib/chef/cookbook/metadata.rb +1 -1
- data/lib/chef/cookbook/synchronizer.rb +50 -8
- data/lib/chef/cookbook_uploader.rb +9 -23
- data/lib/chef/cookbook_version.rb +3 -2
- data/lib/chef/data_bag.rb +1 -1
- data/lib/chef/data_bag_item.rb +1 -1
- data/lib/chef/dsl/recipe.rb +1 -14
- data/lib/chef/encrypted_data_bag_item/decryptor.rb +3 -3
- data/lib/chef/environment.rb +1 -1
- data/lib/chef/exceptions.rb +2 -24
- data/lib/chef/file_content_management/tempfile.rb +8 -1
- data/lib/chef/formatters/base.rb +0 -7
- data/lib/chef/http.rb +12 -19
- data/lib/chef/http/json_input.rb +12 -1
- data/lib/chef/json_compat.rb +45 -64
- data/lib/chef/knife.rb +2 -5
- data/lib/chef/knife/bootstrap.rb +2 -2
- data/lib/chef/knife/bootstrap/archlinux-gems.erb +2 -2
- data/lib/chef/knife/bootstrap/centos5-gems.erb +2 -2
- data/lib/chef/knife/bootstrap/chef-aix.erb +2 -2
- data/lib/chef/knife/bootstrap/chef-full.erb +2 -2
- data/lib/chef/knife/bootstrap/fedora13-gems.erb +2 -2
- data/lib/chef/knife/bootstrap/ubuntu10.04-apt.erb +2 -2
- data/lib/chef/knife/bootstrap/ubuntu10.04-gems.erb +2 -2
- data/lib/chef/knife/bootstrap/ubuntu12.04-gems.erb +2 -2
- data/lib/chef/knife/cookbook_site_download.rb +1 -1
- data/lib/chef/knife/cookbook_site_install.rb +10 -34
- data/lib/chef/knife/cookbook_site_list.rb +1 -1
- data/lib/chef/knife/cookbook_site_search.rb +1 -1
- data/lib/chef/knife/cookbook_site_share.rb +3 -3
- data/lib/chef/knife/cookbook_site_show.rb +3 -3
- data/lib/chef/knife/cookbook_site_unshare.rb +1 -1
- data/lib/chef/knife/cookbook_upload.rb +1 -1
- data/lib/chef/knife/core/subcommand_loader.rb +0 -24
- data/lib/chef/knife/core/ui.rb +8 -7
- data/lib/chef/knife/deps.rb +2 -3
- data/lib/chef/knife/serve.rb +2 -1
- data/lib/chef/local_mode.rb +105 -0
- data/lib/chef/mixin/file_class.rb +1 -4
- data/lib/chef/mixin/shell_out.rb +15 -0
- data/lib/chef/mixin/windows_architecture_helper.rb +0 -16
- data/lib/chef/node.rb +1 -1
- data/lib/chef/platform/query_helpers.rb +1 -5
- data/lib/chef/policy_builder/expand_node_object.rb +3 -0
- data/lib/chef/provider.rb +2 -0
- data/lib/chef/provider/cookbook_file.rb +0 -1
- data/lib/chef/provider/deploy.rb +0 -1
- data/lib/chef/provider/deploy/revision.rb +1 -1
- data/lib/chef/provider/env.rb +10 -25
- data/lib/chef/provider/env/windows.rb +23 -10
- data/lib/chef/provider/execute.rb +0 -3
- data/lib/chef/provider/file.rb +0 -3
- data/lib/chef/provider/git.rb +0 -6
- data/lib/chef/provider/group/dscl.rb +9 -27
- data/lib/chef/provider/group/gpasswd.rb +0 -3
- data/lib/chef/provider/group/groupmod.rb +0 -4
- data/lib/chef/provider/group/suse.rb +0 -3
- data/lib/chef/provider/group/usermod.rb +0 -3
- data/lib/chef/provider/link.rb +22 -5
- data/lib/chef/provider/log.rb +15 -4
- data/lib/chef/provider/mdadm.rb +0 -3
- data/lib/chef/provider/mount/mount.rb +0 -2
- data/lib/chef/provider/mount/solaris.rb +0 -2
- data/lib/chef/provider/package.rb +0 -1
- data/lib/chef/provider/package/apt.rb +0 -3
- data/lib/chef/provider/package/dpkg.rb +0 -1
- data/lib/chef/provider/package/easy_install.rb +0 -4
- data/lib/chef/provider/package/freebsd/base.rb +0 -3
- data/lib/chef/provider/package/freebsd/pkgng.rb +0 -2
- data/lib/chef/provider/package/freebsd/port.rb +0 -2
- data/lib/chef/provider/package/ips.rb +0 -3
- data/lib/chef/provider/package/paludis.rb +0 -5
- data/lib/chef/provider/package/portage.rb +0 -2
- data/lib/chef/provider/package/rpm.rb +2 -4
- data/lib/chef/provider/package/rubygems.rb +0 -4
- data/lib/chef/provider/package/smartos.rb +0 -3
- data/lib/chef/provider/package/windows/msi.rb +0 -2
- data/lib/chef/provider/package/yum.rb +0 -4
- data/lib/chef/provider/package/zypper.rb +0 -3
- data/lib/chef/provider/registry_key.rb +0 -2
- data/lib/chef/provider/remote_directory.rb +0 -1
- data/lib/chef/provider/remote_file.rb +0 -1
- data/lib/chef/provider/remote_file/cache_control_data.rb +1 -3
- data/lib/chef/provider/remote_file/content.rb +0 -1
- data/lib/chef/provider/remote_file/fetcher.rb +0 -2
- data/lib/chef/provider/remote_file/ftp.rb +0 -1
- data/lib/chef/provider/resource_update.rb +0 -3
- data/lib/chef/provider/service/freebsd.rb +0 -3
- data/lib/chef/provider/service/init.rb +0 -3
- data/lib/chef/provider/service/macosx.rb +0 -1
- data/lib/chef/provider/service/redhat.rb +0 -2
- data/lib/chef/provider/service/simple.rb +0 -3
- data/lib/chef/provider/service/solaris.rb +0 -3
- data/lib/chef/provider/service/systemd.rb +15 -14
- data/lib/chef/provider/service/windows.rb +0 -3
- data/lib/chef/provider/subversion.rb +0 -2
- data/lib/chef/provider/template.rb +0 -2
- data/lib/chef/provider/template/content.rb +0 -1
- data/lib/chef/provider/user/dscl.rb +156 -549
- data/lib/chef/provider/user/solaris.rb +0 -1
- data/lib/chef/provider/user/useradd.rb +0 -3
- data/lib/chef/provider/whyrun_safe_ruby_block.rb +1 -1
- data/lib/chef/providers.rb +0 -1
- data/lib/chef/resource.rb +1 -4
- data/lib/chef/resource/freebsd_package.rb +2 -10
- data/lib/chef/resource/lwrp_base.rb +1 -12
- data/lib/chef/resource/user.rb +0 -18
- data/lib/chef/resource_collection.rb +1 -1
- data/lib/chef/resource_reporter.rb +10 -10
- data/lib/chef/resources.rb +0 -1
- data/lib/chef/role.rb +3 -3
- data/lib/chef/run_list.rb +1 -1
- data/lib/chef/tasks/chef_repo.rake +131 -264
- data/lib/chef/user.rb +1 -1
- data/lib/chef/util/path_helper.rb +2 -2
- data/lib/chef/version.rb +9 -1
- data/lib/chef/win32/api/system.rb +0 -9
- data/spec/data/bootstrap/test-hints.erb +1 -1
- data/spec/data/bootstrap/test.erb +1 -1
- data/spec/functional/dsl/reboot_pending_spec.rb +53 -58
- data/spec/functional/knife/cookbook_delete_spec.rb +3 -3
- data/spec/functional/knife/exec_spec.rb +1 -1
- data/spec/functional/mixin/shell_out_spec.rb +48 -0
- data/spec/functional/resource/base.rb +0 -10
- data/spec/functional/resource/group_spec.rb +1 -5
- data/spec/functional/resource/link_spec.rb +8 -0
- data/spec/functional/resource/{user/useradd_spec.rb → user_spec.rb} +1 -1
- data/spec/integration/knife/chef_fs_data_store_spec.rb +3 -3
- data/spec/integration/knife/chef_repo_path_spec.rb +1 -6
- data/spec/integration/knife/chef_repository_file_system_spec.rb +1 -1
- data/spec/integration/knife/chefignore_spec.rb +1 -1
- data/spec/integration/knife/common_options_spec.rb +50 -3
- data/spec/integration/knife/cookbook_api_ipv6_spec.rb +1 -1
- data/spec/integration/knife/delete_spec.rb +1 -1
- data/spec/integration/knife/deps_spec.rb +1 -1
- data/spec/integration/knife/diff_spec.rb +3 -3
- data/spec/integration/knife/download_spec.rb +3 -3
- data/spec/integration/knife/list_spec.rb +1 -1
- data/spec/integration/knife/raw_spec.rb +1 -11
- data/spec/integration/knife/redirection_spec.rb +1 -1
- data/spec/integration/knife/serve_spec.rb +2 -2
- data/spec/integration/knife/show_spec.rb +1 -1
- data/spec/integration/knife/upload_spec.rb +9 -9
- data/spec/spec_helper.rb +0 -9
- data/spec/support/pedant/pedant_config.rb +2 -1
- data/spec/support/pedant/run_pedant.rb +2 -1
- data/spec/support/platform_helpers.rb +5 -24
- data/spec/support/shared/integration/integration_helper.rb +2 -1
- data/spec/support/shared/matchers.rb +17 -0
- data/spec/tiny_server.rb +1 -2
- data/spec/unit/api_client_spec.rb +3 -3
- data/spec/unit/application_spec.rb +9 -32
- data/spec/unit/config_fetcher_spec.rb +1 -1
- data/spec/unit/cookbook/metadata_spec.rb +3 -7
- data/spec/unit/cookbook/synchronizer_spec.rb +441 -226
- data/spec/unit/cookbook_loader_spec.rb +1 -1
- data/spec/unit/cookbook_uploader_spec.rb +160 -0
- data/spec/unit/cookbook_version_spec.rb +0 -4
- data/spec/unit/data_bag_item_spec.rb +1 -5
- data/spec/unit/data_bag_spec.rb +1 -5
- data/spec/unit/deprecation_spec.rb +1 -1
- data/spec/unit/dsl/recipe_spec.rb +12 -0
- data/spec/unit/encrypted_data_bag_item_spec.rb +7 -14
- data/spec/unit/environment_spec.rb +3 -7
- data/spec/unit/exceptions_spec.rb +0 -6
- data/spec/unit/http/json_input_spec.rb +128 -0
- data/spec/unit/json_compat_spec.rb +17 -58
- data/spec/unit/knife/client_create_spec.rb +3 -3
- data/spec/unit/knife/configure_client_spec.rb +6 -5
- data/spec/unit/knife/cookbook_delete_spec.rb +1 -1
- data/spec/unit/knife/cookbook_download_spec.rb +5 -5
- data/spec/unit/knife/cookbook_metadata_from_file_spec.rb +1 -0
- data/spec/unit/knife/cookbook_metadata_spec.rb +1 -1
- data/spec/unit/knife/cookbook_site_download_spec.rb +10 -11
- data/spec/unit/knife/cookbook_site_install_spec.rb +116 -161
- data/spec/unit/knife/cookbook_site_share_spec.rb +8 -8
- data/spec/unit/knife/cookbook_upload_spec.rb +3 -2
- data/spec/unit/knife/core/bootstrap_context_spec.rb +3 -3
- data/spec/unit/knife/core/subcommand_loader_spec.rb +1 -66
- data/spec/unit/knife/data_bag_from_file_spec.rb +2 -1
- data/spec/unit/knife/tag_create_spec.rb +3 -3
- data/spec/unit/knife/tag_delete_spec.rb +3 -3
- data/spec/unit/knife/user_create_spec.rb +1 -1
- data/spec/unit/knife_spec.rb +14 -14
- data/spec/unit/lwrp_spec.rb +1 -21
- data/spec/unit/mixin/shell_out_spec.rb +92 -0
- data/spec/unit/node_spec.rb +0 -4
- data/spec/unit/platform/query_helpers_spec.rb +0 -23
- data/spec/unit/provider/env/windows_spec.rb +34 -70
- data/spec/unit/provider/env_spec.rb +11 -76
- data/spec/unit/provider/group/dscl_spec.rb +1 -38
- data/spec/unit/provider/log_spec.rb +18 -0
- data/spec/unit/provider/package/rpm_spec.rb +0 -12
- data/spec/unit/provider/remote_file/cache_control_data_spec.rb +1 -1
- data/spec/unit/provider/service/systemd_service_spec.rb +44 -27
- data/spec/unit/provider/user/dscl_spec.rb +264 -660
- data/spec/unit/provider/user/useradd_spec.rb +0 -1
- data/spec/unit/provider/whyrun_safe_ruby_block_spec.rb +2 -2
- data/spec/unit/provider_spec.rb +12 -0
- data/spec/unit/recipe_spec.rb +0 -41
- data/spec/unit/resource_collection_spec.rb +1 -5
- data/spec/unit/resource_reporter_spec.rb +3 -51
- data/spec/unit/resource_spec.rb +3 -14
- data/spec/unit/rest_spec.rb +1 -4
- data/spec/unit/role_spec.rb +0 -10
- data/spec/unit/run_list_spec.rb +1 -5
- data/spec/unit/user_spec.rb +1 -5
- metadata +20 -100
- data/lib/chef/mixin/windows_env_helper.rb +0 -56
- data/lib/chef/provider/dsc_script.rb +0 -175
- data/lib/chef/resource/dsc_script.rb +0 -126
- data/lib/chef/streaming_cookbook_uploader.rb +0 -205
- data/lib/chef/util/dsc/configuration_generator.rb +0 -115
- data/lib/chef/util/dsc/lcm_output_parser.rb +0 -133
- data/lib/chef/util/dsc/local_configuration_manager.rb +0 -141
- data/lib/chef/util/dsc/resource_info.rb +0 -26
- data/lib/chef/util/powershell/cmdlet.rb +0 -136
- data/lib/chef/util/powershell/cmdlet_result.rb +0 -46
- data/spec/data/mac_users/10.7-8.plist.xml +0 -559
- data/spec/data/mac_users/10.7-8.shadow.xml +0 -11
- data/spec/data/mac_users/10.7.plist.xml +0 -559
- data/spec/data/mac_users/10.7.shadow.xml +0 -11
- data/spec/data/mac_users/10.8.plist.xml +0 -559
- data/spec/data/mac_users/10.8.shadow.xml +0 -21
- data/spec/data/mac_users/10.9.plist.xml +0 -560
- data/spec/data/mac_users/10.9.shadow.xml +0 -21
- data/spec/functional/provider/whyrun_safe_ruby_block_spec.rb +0 -51
- data/spec/functional/resource/dsc_script_spec.rb +0 -382
- data/spec/functional/resource/env_spec.rb +0 -182
- data/spec/functional/resource/user/dscl_spec.rb +0 -199
- data/spec/functional/util/powershell/cmdlet_spec.rb +0 -113
- data/spec/support/lib/chef/resource/zen_follower.rb +0 -46
- data/spec/support/shared/shared_examples.rb +0 -10
- data/spec/unit/chef_fs/data_handler/group_handler_spec.rb +0 -63
- data/spec/unit/formatters/base_spec.rb +0 -48
- data/spec/unit/provider/dsc_script_spec.rb +0 -174
- data/spec/unit/resource/dsc_script_spec.rb +0 -98
- data/spec/unit/util/dsc/configuration_generator_spec.rb +0 -171
- data/spec/unit/util/dsc/lcm_output_parser_spec.rb +0 -169
- data/spec/unit/util/dsc/local_configuration_manager_spec.rb +0 -139
- data/spec/unit/util/powershell/cmdlet_spec.rb +0 -106
@@ -23,7 +23,6 @@
|
|
23
23
|
<script type="text/javascript" src="_static/jquery.js"></script>
|
24
24
|
<script type="text/javascript" src="_static/underscore.js"></script>
|
25
25
|
<script type="text/javascript" src="_static/doctools.js"></script>
|
26
|
-
<link rel="shortcut icon" href="_static/chef.ico"/>
|
27
26
|
|
28
27
|
|
29
28
|
</head>
|
@@ -65,11 +64,11 @@
|
|
65
64
|
<dt><tt class="docutils literal"><span class="pre">--concurrency</span></tt></dt>
|
66
65
|
<dd>The number of allowed concurrent connections. Default: <tt class="docutils literal"><span class="pre">10</span></tt>.</dd>
|
67
66
|
<dt><tt class="docutils literal"><span class="pre">--diff-filter=[(A|D|M|T)...[*]]</span></tt></dt>
|
68
|
-
<dd>
|
67
|
+
<dd>Use to select only files that have been added (<tt class="docutils literal"><span class="pre">A</span></tt>), deleted (<tt class="docutils literal"><span class="pre">D</span></tt>), modified (<tt class="docutils literal"><span class="pre">M</span></tt>), and/or have had their type changed (<tt class="docutils literal"><span class="pre">T</span></tt>). Any combination of filter characters may be used, including no filter characters. Use <tt class="docutils literal"><span class="pre">*</span></tt> to select all paths if a file matches other criteria in the comparison. Default value: <tt class="docutils literal"><span class="pre">nil</span></tt>.</dd>
|
69
68
|
<dt><tt class="docutils literal"><span class="pre">--name-only</span></tt></dt>
|
70
|
-
<dd>
|
69
|
+
<dd>Use to show only the names of modified files.</dd>
|
71
70
|
<dt><tt class="docutils literal"><span class="pre">--name-status</span></tt></dt>
|
72
|
-
<dd>
|
71
|
+
<dd>Use to show only the names of files with a status of <tt class="docutils literal"><span class="pre">Added</span></tt>, <tt class="docutils literal"><span class="pre">Deleted</span></tt>, <tt class="docutils literal"><span class="pre">Modified</span></tt>, or <tt class="docutils literal"><span class="pre">Type</span> <span class="pre">Changed</span></tt>.</dd>
|
73
72
|
<dt><tt class="docutils literal"><span class="pre">--no-recurse</span></tt></dt>
|
74
73
|
<dd>Use <tt class="docutils literal"><span class="pre">--no-recurse</span></tt> to disable listing a directory recursively. Default: <tt class="docutils literal"><span class="pre">--recurse</span></tt>.</dd>
|
75
74
|
<dt><tt class="docutils literal"><span class="pre">--repo-mode</span> <span class="pre">MODE</span></tt></dt>
|
@@ -23,7 +23,6 @@
|
|
23
23
|
<script type="text/javascript" src="_static/jquery.js"></script>
|
24
24
|
<script type="text/javascript" src="_static/underscore.js"></script>
|
25
25
|
<script type="text/javascript" src="_static/doctools.js"></script>
|
26
|
-
<link rel="shortcut icon" href="_static/chef.ico"/>
|
27
26
|
|
28
27
|
|
29
28
|
</head>
|
@@ -64,16 +63,16 @@
|
|
64
63
|
<dd>The number of allowed concurrent connections. Default: <tt class="docutils literal"><span class="pre">10</span></tt>.</dd>
|
65
64
|
<dt><tt class="docutils literal"><span class="pre">--cookbook-version</span> <span class="pre">VERSION</span></tt></dt>
|
66
65
|
<dd>The version of a cookbook to download.</dd>
|
67
|
-
<dt><tt class="docutils literal"><span class="pre">--[no-]force</span></tt></dt>
|
68
|
-
<dd>Use <tt class="docutils literal"><span class="pre">--force</span></tt> to download files even when the file on the hard drive is identical to the object on the server (role, cookbook, etc.). By default, files are compared to see if they have equivalent content, and local files are only overwritten if they are different. Default: <tt class="docutils literal"><span class="pre">--no-force</span></tt>.</dd>
|
69
66
|
<dt><tt class="docutils literal"><span class="pre">-n</span></tt>, <tt class="docutils literal"><span class="pre">--dry-run</span></tt></dt>
|
70
|
-
<dd>
|
67
|
+
<dd>Use to take no action and only print out results. Default: <tt class="docutils literal"><span class="pre">false</span></tt>.</dd>
|
71
68
|
<dt><tt class="docutils literal"><span class="pre">--[no-]diff</span></tt></dt>
|
72
|
-
<dd>
|
73
|
-
<dt><tt class="docutils literal"><span class="pre">--[no-]
|
74
|
-
<dd>Use <tt class="docutils literal"><span class="pre">--
|
69
|
+
<dd>Use to download only new and modified files. Set to <tt class="docutils literal"><span class="pre">false</span></tt> to download all files. Default: <tt class="docutils literal"><span class="pre">--diff</span></tt>.</dd>
|
70
|
+
<dt><tt class="docutils literal"><span class="pre">--[no-]force</span></tt></dt>
|
71
|
+
<dd>Use <tt class="docutils literal"><span class="pre">--force</span></tt> to download files even when the file on the hard drive is identical to the object on the server (role, cookbook, etc.). By default, files are compared to see if they have equivalent content, and local files are only overwritten if they are different. Default: <tt class="docutils literal"><span class="pre">--no-force</span></tt>.</dd>
|
75
72
|
<dt><tt class="docutils literal"><span class="pre">--[no-]purge</span></tt></dt>
|
76
73
|
<dd>Use <tt class="docutils literal"><span class="pre">--purge</span></tt> to delete local files and directories that do not exist on the Chef server. By default, if a role, cookbook, etc. does not exist on the Chef server, the local file for said role will be left alone and NOT deleted. Default: <tt class="docutils literal"><span class="pre">--no-purge</span></tt>.</dd>
|
74
|
+
<dt><tt class="docutils literal"><span class="pre">--[no-]recurse</span></tt></dt>
|
75
|
+
<dd>Use <tt class="docutils literal"><span class="pre">--no-recurse</span></tt> to disable downloading a directory recursively. Default: <tt class="docutils literal"><span class="pre">--recurse</span></tt>.</dd>
|
77
76
|
<dt><tt class="docutils literal"><span class="pre">--repo-mode</span> <span class="pre">MODE</span></tt></dt>
|
78
77
|
<dd>The layout of the local chef-repo. Possible values: <tt class="docutils literal"><span class="pre">static</span></tt>, <tt class="docutils literal"><span class="pre">everything</span></tt>, or <tt class="docutils literal"><span class="pre">hosted_everything</span></tt>. Use <tt class="docutils literal"><span class="pre">static</span></tt> for just roles, environments, cookbooks, and data bags. By default, <tt class="docutils literal"><span class="pre">everything</span></tt> and <tt class="docutils literal"><span class="pre">hosted_everything</span></tt> are dynamically selected depending on the server type. Default: <tt class="docutils literal"><span class="pre">everything</span></tt> / <tt class="docutils literal"><span class="pre">hosted_everything</span></tt>.</dd>
|
79
78
|
</dl>
|
@@ -23,7 +23,6 @@
|
|
23
23
|
<script type="text/javascript" src="_static/jquery.js"></script>
|
24
24
|
<script type="text/javascript" src="_static/underscore.js"></script>
|
25
25
|
<script type="text/javascript" src="_static/doctools.js"></script>
|
26
|
-
<link rel="shortcut icon" href="_static/chef.ico"/>
|
27
26
|
|
28
27
|
|
29
28
|
</head>
|
@@ -23,7 +23,6 @@
|
|
23
23
|
<script type="text/javascript" src="_static/jquery.js"></script>
|
24
24
|
<script type="text/javascript" src="_static/underscore.js"></script>
|
25
25
|
<script type="text/javascript" src="_static/doctools.js"></script>
|
26
|
-
<link rel="shortcut icon" href="_static/chef.ico"/>
|
27
26
|
|
28
27
|
|
29
28
|
</head>
|
@@ -60,7 +59,7 @@
|
|
60
59
|
<p>This argument has the following options:</p>
|
61
60
|
<dl class="docutils">
|
62
61
|
<dt><tt class="docutils literal"><span class="pre">-a</span></tt>, <tt class="docutils literal"><span class="pre">--all</span></tt></dt>
|
63
|
-
<dd>
|
62
|
+
<dd>Use to upload all environments found at the specified path.</dd>
|
64
63
|
<dt><tt class="docutils literal"><span class="pre">-m</span></tt>, <tt class="docutils literal"><span class="pre">--mismatch</span></tt></dt>
|
65
64
|
<dd>Use to show only matching versions.</dd>
|
66
65
|
</dl>
|
@@ -214,7 +213,7 @@ windows 1.0.0 4.1.2
|
|
214
213
|
<p>This argument has the following options:</p>
|
215
214
|
<dl class="docutils">
|
216
215
|
<dt><tt class="docutils literal"><span class="pre">-a</span></tt>, <tt class="docutils literal"><span class="pre">--all</span></tt></dt>
|
217
|
-
<dd>
|
216
|
+
<dd>Use to upload all environments found at the specified path.</dd>
|
218
217
|
</dl>
|
219
218
|
</div>
|
220
219
|
<div class="section" id="id9">
|
@@ -246,7 +245,7 @@ windows 1.0.0 4.1.2
|
|
246
245
|
<p>This argument has the following options:</p>
|
247
246
|
<dl class="docutils">
|
248
247
|
<dt><tt class="docutils literal"><span class="pre">-w</span></tt>, <tt class="docutils literal"><span class="pre">--with-uri</span></tt></dt>
|
249
|
-
<dd>
|
248
|
+
<dd>Use to show the corresponding URIs.</dd>
|
250
249
|
</dl>
|
251
250
|
</div>
|
252
251
|
<div class="section" id="id12">
|
@@ -23,7 +23,6 @@
|
|
23
23
|
<script type="text/javascript" src="_static/jquery.js"></script>
|
24
24
|
<script type="text/javascript" src="_static/underscore.js"></script>
|
25
25
|
<script type="text/javascript" src="_static/doctools.js"></script>
|
26
|
-
<link rel="shortcut icon" href="_static/chef.ico"/>
|
27
26
|
|
28
27
|
|
29
28
|
</head>
|
@@ -23,7 +23,6 @@
|
|
23
23
|
<script type="text/javascript" src="_static/jquery.js"></script>
|
24
24
|
<script type="text/javascript" src="_static/underscore.js"></script>
|
25
25
|
<script type="text/javascript" src="_static/doctools.js"></script>
|
26
|
-
<link rel="shortcut icon" href="_static/chef.ico"/>
|
27
26
|
|
28
27
|
|
29
28
|
</head>
|
@@ -23,7 +23,6 @@
|
|
23
23
|
<script type="text/javascript" src="_static/jquery.js"></script>
|
24
24
|
<script type="text/javascript" src="_static/underscore.js"></script>
|
25
25
|
<script type="text/javascript" src="_static/doctools.js"></script>
|
26
|
-
<link rel="shortcut icon" href="_static/chef.ico"/>
|
27
26
|
|
28
27
|
|
29
28
|
</head>
|
@@ -59,21 +58,21 @@
|
|
59
58
|
<p>This subcommand has the following options:</p>
|
60
59
|
<dl class="docutils">
|
61
60
|
<dt><tt class="docutils literal"><span class="pre">-1</span></tt></dt>
|
62
|
-
<dd>
|
61
|
+
<dd>Use to show only one column of results. Default: <tt class="docutils literal"><span class="pre">false</span></tt>.</dd>
|
63
62
|
<dt><tt class="docutils literal"><span class="pre">--chef-repo-path</span> <span class="pre">PATH</span></tt></dt>
|
64
63
|
<dd>The path to the chef-repo. This setting will override the default path to the chef-repo. Default: same value as specified by <tt class="docutils literal"><span class="pre">chef_repo_path</span></tt> in client.rb.</dd>
|
65
64
|
<dt><tt class="docutils literal"><span class="pre">--concurrency</span></tt></dt>
|
66
65
|
<dd>The number of allowed concurrent connections. Default: <tt class="docutils literal"><span class="pre">10</span></tt>.</dd>
|
67
66
|
<dt><tt class="docutils literal"><span class="pre">-d</span></tt></dt>
|
68
|
-
<dd>
|
67
|
+
<dd>Use to prevent a directory’s children from showing when a directory matches a pattern. Default value: <tt class="docutils literal"><span class="pre">false</span></tt>.</dd>
|
69
68
|
<dt><tt class="docutils literal"><span class="pre">-f</span></tt>, <tt class="docutils literal"><span class="pre">--flat</span></tt></dt>
|
70
69
|
<dd>Use to show a list of file names. Set to <tt class="docutils literal"><span class="pre">false</span></tt> to view ls-like output. Default: <tt class="docutils literal"><span class="pre">false</span></tt>.</dd>
|
71
70
|
<dt><tt class="docutils literal"><span class="pre">--local</span></tt></dt>
|
72
|
-
<dd>
|
71
|
+
<dd>Use to return only the contents of the local directory. Default: <tt class="docutils literal"><span class="pre">false</span></tt>.</dd>
|
73
72
|
<dt><tt class="docutils literal"><span class="pre">-p</span></tt></dt>
|
74
|
-
<dd>
|
73
|
+
<dd>Use to show directories with trailing slashes (/). Default: <tt class="docutils literal"><span class="pre">false</span></tt>.</dd>
|
75
74
|
<dt><tt class="docutils literal"><span class="pre">-R</span></tt></dt>
|
76
|
-
<dd>
|
75
|
+
<dd>Use to list directories recursively. Default: <tt class="docutils literal"><span class="pre">false</span></tt>.</dd>
|
77
76
|
<dt><tt class="docutils literal"><span class="pre">--repo-mode</span> <span class="pre">MODE</span></tt></dt>
|
78
77
|
<dd>The layout of the local chef-repo. Possible values: <tt class="docutils literal"><span class="pre">static</span></tt>, <tt class="docutils literal"><span class="pre">everything</span></tt>, or <tt class="docutils literal"><span class="pre">hosted_everything</span></tt>. Use <tt class="docutils literal"><span class="pre">static</span></tt> for just roles, environments, cookbooks, and data bags. By default, <tt class="docutils literal"><span class="pre">everything</span></tt> and <tt class="docutils literal"><span class="pre">hosted_everything</span></tt> are dynamically selected depending on the server type. Default: <tt class="docutils literal"><span class="pre">everything</span></tt> / <tt class="docutils literal"><span class="pre">hosted_everything</span></tt>.</dd>
|
79
78
|
</dl>
|
@@ -23,7 +23,6 @@
|
|
23
23
|
<script type="text/javascript" src="_static/jquery.js"></script>
|
24
24
|
<script type="text/javascript" src="_static/underscore.js"></script>
|
25
25
|
<script type="text/javascript" src="_static/doctools.js"></script>
|
26
|
-
<link rel="shortcut icon" href="_static/chef.ico"/>
|
27
26
|
|
28
27
|
|
29
28
|
</head>
|
@@ -235,7 +234,7 @@
|
|
235
234
|
<p>This argument has the following options:</p>
|
236
235
|
<dl class="docutils">
|
237
236
|
<dt><tt class="docutils literal"><span class="pre">-w</span></tt>, <tt class="docutils literal"><span class="pre">--with-uri</span></tt></dt>
|
238
|
-
<dd>
|
237
|
+
<dd>Use to show the corresponding URIs.</dd>
|
239
238
|
</dl>
|
240
239
|
</div>
|
241
240
|
<div class="section" id="id15">
|
@@ -255,8 +254,14 @@ rs-123456
|
|
255
254
|
</div>
|
256
255
|
<div class="section" id="run-list-add">
|
257
256
|
<h2>run_list add<a class="headerlink" href="#run-list-add" title="Permalink to this headline">¶</a></h2>
|
258
|
-
<p>A run-list
|
259
|
-
<
|
257
|
+
<p>A run-list defines all of the configuration settings that are necessary for a node that is under management by Chef to be put into the desired state. A run-list is:</p>
|
258
|
+
<ul class="simple">
|
259
|
+
<li>An ordered list of roles and/or recipes that are run in an exact order; if a recipe appears more than once in the run-list, the chef-client will never run that recipe twice</li>
|
260
|
+
<li>Always specific to the node on which it runs, though it is possible for many nodes to have run-lists that are similar or even identical</li>
|
261
|
+
<li>Stored as part of the node object on the Chef server</li>
|
262
|
+
<li>Maintained using Knife and uploaded to the Chef server or via the Chef Manage user interface</li>
|
263
|
+
</ul>
|
264
|
+
<p>The <tt class="docutils literal"><span class="pre">run_list</span> <span class="pre">add</span></tt> argument is used to add run-list items (roles or recipes) to a node.</p>
|
260
265
|
<p>A run-list must be in one of the following formats: fully qualified, cookbook, or default. Both roles and recipes must be in quotes, for example:</p>
|
261
266
|
<div class="highlight-ruby"><div class="highlight"><pre><span class="s1">'role[ROLE_NAME]'</span>
|
262
267
|
</pre></div>
|
@@ -282,6 +287,8 @@ rs-123456
|
|
282
287
|
<dl class="docutils">
|
283
288
|
<dt><tt class="docutils literal"><span class="pre">-a</span> <span class="pre">ITEM</span></tt>, <tt class="docutils literal"><span class="pre">--after</span> <span class="pre">ITEM</span></tt></dt>
|
284
289
|
<dd>Use this to add the run list item after the specified run list item.</dd>
|
290
|
+
<dt><tt class="docutils literal"><span class="pre">-b</span> <span class="pre">ITEM</span></tt>, <tt class="docutils literal"><span class="pre">--before</span> <span class="pre">ITEM</span></tt></dt>
|
291
|
+
<dd>Use this to add the run list item before the specified run list item.</dd>
|
285
292
|
</dl>
|
286
293
|
</div>
|
287
294
|
<div class="section" id="id18">
|
@@ -316,7 +323,7 @@ rs-123456
|
|
316
323
|
</div>
|
317
324
|
<div class="section" id="run-list-remove">
|
318
325
|
<h2>run_list remove<a class="headerlink" href="#run-list-remove" title="Permalink to this headline">¶</a></h2>
|
319
|
-
<p>The <tt class="docutils literal"><span class="pre">run_list</span> <span class="pre">remove</span></tt> argument is used to remove run
|
326
|
+
<p>The <tt class="docutils literal"><span class="pre">run_list</span> <span class="pre">remove</span></tt> argument is used to remove run-list items (roles or recipes) from a node. A recipe must be in one of the following formats: fully qualified, cookbook, or default. Both roles and recipes must be in quotes, for example: <tt class="docutils literal"><span class="pre">'role[ROLE_NAME]'</span></tt> or <tt class="docutils literal"><span class="pre">'recipe[COOKBOOK::RECIPE_NAME]'</span></tt>. Use a comma to separate roles and recipes when removing more than one, like this: <tt class="docutils literal"><span class="pre">'recipe[COOKBOOK::RECIPE_NAME],COOKBOOK::RECIPE_NAME,role[ROLE_NAME]'</span></tt>.</p>
|
320
327
|
<div class="section" id="id19">
|
321
328
|
<h3>Syntax<a class="headerlink" href="#id19" title="Permalink to this headline">¶</a></h3>
|
322
329
|
<p>This argument has the following syntax:</p>
|
@@ -364,7 +371,7 @@ rs-123456
|
|
364
371
|
<dt><tt class="docutils literal"><span class="pre">-m</span></tt>, <tt class="docutils literal"><span class="pre">--medium</span></tt></dt>
|
365
372
|
<dd>Display more, but not all, of a node’s data when searching using the default summary format.</dd>
|
366
373
|
<dt><tt class="docutils literal"><span class="pre">-r</span></tt>, <tt class="docutils literal"><span class="pre">--run-list</span></tt></dt>
|
367
|
-
<dd>
|
374
|
+
<dd>Use to show only the run-list.</dd>
|
368
375
|
</dl>
|
369
376
|
</div>
|
370
377
|
<div class="section" id="id24">
|
@@ -23,7 +23,6 @@
|
|
23
23
|
<script type="text/javascript" src="_static/jquery.js"></script>
|
24
24
|
<script type="text/javascript" src="_static/underscore.js"></script>
|
25
25
|
<script type="text/javascript" src="_static/doctools.js"></script>
|
26
|
-
<link rel="shortcut icon" href="_static/chef.ico"/>
|
27
26
|
|
28
27
|
|
29
28
|
</head>
|
@@ -23,7 +23,6 @@
|
|
23
23
|
<script type="text/javascript" src="_static/jquery.js"></script>
|
24
24
|
<script type="text/javascript" src="_static/underscore.js"></script>
|
25
25
|
<script type="text/javascript" src="_static/doctools.js"></script>
|
26
|
-
<link rel="shortcut icon" href="_static/chef.ico"/>
|
27
26
|
|
28
27
|
|
29
28
|
</head>
|
@@ -23,7 +23,6 @@
|
|
23
23
|
<script type="text/javascript" src="_static/jquery.js"></script>
|
24
24
|
<script type="text/javascript" src="_static/underscore.js"></script>
|
25
25
|
<script type="text/javascript" src="_static/doctools.js"></script>
|
26
|
-
<link rel="shortcut icon" href="_static/chef.ico"/>
|
27
26
|
|
28
27
|
|
29
28
|
</head>
|
@@ -227,7 +226,7 @@
|
|
227
226
|
<p>This argument has the following options:</p>
|
228
227
|
<dl class="docutils">
|
229
228
|
<dt><tt class="docutils literal"><span class="pre">-w</span></tt>, <tt class="docutils literal"><span class="pre">--with-uri</span></tt></dt>
|
230
|
-
<dd>
|
229
|
+
<dd>Use to show the corresponding URIs.</dd>
|
231
230
|
</dl>
|
232
231
|
</div>
|
233
232
|
<div class="section" id="id15">
|
@@ -23,7 +23,6 @@
|
|
23
23
|
<script type="text/javascript" src="_static/jquery.js"></script>
|
24
24
|
<script type="text/javascript" src="_static/underscore.js"></script>
|
25
25
|
<script type="text/javascript" src="_static/doctools.js"></script>
|
26
|
-
<link rel="shortcut icon" href="_static/chef.ico"/>
|
27
26
|
|
28
27
|
|
29
28
|
</head>
|
@@ -94,7 +93,7 @@ win2k8-dev
|
|
94
93
|
<dt><tt class="docutils literal"><span class="pre">-b</span> <span class="pre">ROW</span></tt>, <tt class="docutils literal"><span class="pre">--start</span> <span class="pre">ROW</span></tt></dt>
|
95
94
|
<dd>The row at which return results will begin.</dd>
|
96
95
|
<dt><tt class="docutils literal"><span class="pre">-i</span></tt>, <tt class="docutils literal"><span class="pre">--id-only</span></tt></dt>
|
97
|
-
<dd>
|
96
|
+
<dd>Use to show only matching object IDs.</dd>
|
98
97
|
<dt><tt class="docutils literal"><span class="pre">INDEX</span></tt></dt>
|
99
98
|
<dd>The name of the index to be queried: <tt class="docutils literal"><span class="pre">client</span></tt>, <tt class="docutils literal"><span class="pre">environment</span></tt>, <tt class="docutils literal"><span class="pre">node</span></tt>, <tt class="docutils literal"><span class="pre">role</span></tt>, or <tt class="docutils literal"><span class="pre">DATA_BAG_NAME</span></tt>. Default index: <tt class="docutils literal"><span class="pre">node</span></tt>.</dd>
|
100
99
|
<dt><tt class="docutils literal"><span class="pre">-l</span></tt>, <tt class="docutils literal"><span class="pre">--long</span></tt></dt>
|
@@ -106,7 +105,7 @@ win2k8-dev
|
|
106
105
|
<dt><tt class="docutils literal"><span class="pre">-q</span> <span class="pre">SEARCH_QUERY</span></tt>, <tt class="docutils literal"><span class="pre">--query</span> <span class="pre">SEARCH_QUERY</span></tt></dt>
|
107
106
|
<dd>Use to protect search queries that start with a hyphen (-). A <tt class="docutils literal"><span class="pre">-q</span></tt> query may be specified as an argument or an option, but not both.</dd>
|
108
107
|
<dt><tt class="docutils literal"><span class="pre">-r</span></tt>, <tt class="docutils literal"><span class="pre">--run-list</span></tt></dt>
|
109
|
-
<dd>
|
108
|
+
<dd>Use to show only the run-list.</dd>
|
110
109
|
<dt><tt class="docutils literal"><span class="pre">-R</span> <span class="pre">INT</span></tt>, <tt class="docutils literal"><span class="pre">--rows</span> <span class="pre">INT</span></tt></dt>
|
111
110
|
<dd>The number of rows to be returned.</dd>
|
112
111
|
<dt><tt class="docutils literal"><span class="pre">SEARCH_QUERY</span></tt></dt>
|
@@ -0,0 +1,79 @@
|
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
2
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
3
|
+
|
4
|
+
|
5
|
+
<html xmlns="http://www.w3.org/1999/xhtml">
|
6
|
+
<head>
|
7
|
+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
8
|
+
|
9
|
+
<title>knife serve — chef-client Man Pages</title>
|
10
|
+
|
11
|
+
<link rel="stylesheet" href="_static/guide.css" type="text/css" />
|
12
|
+
<link rel="stylesheet" href="_static/pygments.css" type="text/css" />
|
13
|
+
|
14
|
+
<script type="text/javascript">
|
15
|
+
var DOCUMENTATION_OPTIONS = {
|
16
|
+
URL_ROOT: './',
|
17
|
+
VERSION: '',
|
18
|
+
COLLAPSE_INDEX: false,
|
19
|
+
FILE_SUFFIX: '.html',
|
20
|
+
HAS_SOURCE: true
|
21
|
+
};
|
22
|
+
</script>
|
23
|
+
<script type="text/javascript" src="_static/jquery.js"></script>
|
24
|
+
<script type="text/javascript" src="_static/underscore.js"></script>
|
25
|
+
<script type="text/javascript" src="_static/doctools.js"></script>
|
26
|
+
|
27
|
+
|
28
|
+
</head>
|
29
|
+
<body>
|
30
|
+
<div style="background-color: #212c35; text-align: left; padding: 0px 0px 0px 0px">
|
31
|
+
<a href="http://docs.opscode.com/"><img src="_static/chef_html_logo.png" border="0" alt="Chef"/></a>
|
32
|
+
</div>
|
33
|
+
|
34
|
+
|
35
|
+
|
36
|
+
|
37
|
+
<div class="document">
|
38
|
+
<div class="documentwrapper">
|
39
|
+
|
40
|
+
<div class="body">
|
41
|
+
|
42
|
+
<div class="section" id="knife-serve">
|
43
|
+
<h1>knife serve<a class="headerlink" href="#knife-serve" title="Permalink to this headline">¶</a></h1>
|
44
|
+
<p>The <strong>knife serve</strong> subcommand is used to run a persistent chef-zero against the local chef-repo. (chef-zero is a lightweight Chef server that runs in-memory on the local machine.) This is the same as running the chef-client executable with the <tt class="docutils literal"><span class="pre">--local-mode</span></tt> option. The <tt class="docutils literal"><span class="pre">chef_repo_path</span></tt> is located automatically and the Chef server will bind to port <tt class="docutils literal"><span class="pre">8900</span></tt> by default. <strong>knife serve</strong> will print the URL for the local Chef server, so that it may be added to the knife.rb file.</p>
|
45
|
+
<div class="section" id="syntax">
|
46
|
+
<h2>Syntax<a class="headerlink" href="#syntax" title="Permalink to this headline">¶</a></h2>
|
47
|
+
<p>This subcommand has the following syntax:</p>
|
48
|
+
<div class="highlight-bash"><div class="highlight"><pre><span class="nv">$ </span>knife serve <span class="o">(</span>options<span class="o">)</span>
|
49
|
+
</pre></div>
|
50
|
+
</div>
|
51
|
+
</div>
|
52
|
+
<div class="section" id="options">
|
53
|
+
<h2>Options<a class="headerlink" href="#options" title="Permalink to this headline">¶</a></h2>
|
54
|
+
<div class="admonition note">
|
55
|
+
<p class="first admonition-title">Note</p>
|
56
|
+
<p class="last">Review the list of <a class="reference internal" href="knife_common_options.html"><em>common options</em></a> available to this (and all) Knife subcommands and plugins.</p>
|
57
|
+
</div>
|
58
|
+
<p>This command does not have any specific options.</p>
|
59
|
+
</div>
|
60
|
+
<div class="section" id="examples">
|
61
|
+
<h2>Examples<a class="headerlink" href="#examples" title="Permalink to this headline">¶</a></h2>
|
62
|
+
<p>None.</p>
|
63
|
+
</div>
|
64
|
+
</div>
|
65
|
+
|
66
|
+
|
67
|
+
</div>
|
68
|
+
|
69
|
+
</div>
|
70
|
+
|
71
|
+
|
72
|
+
<div class="clearer"></div>
|
73
|
+
</div>
|
74
|
+
|
75
|
+
|
76
|
+
|
77
|
+
|
78
|
+
</body>
|
79
|
+
</html>
|
@@ -23,7 +23,6 @@
|
|
23
23
|
<script type="text/javascript" src="_static/jquery.js"></script>
|
24
24
|
<script type="text/javascript" src="_static/underscore.js"></script>
|
25
25
|
<script type="text/javascript" src="_static/doctools.js"></script>
|
26
|
-
<link rel="shortcut icon" href="_static/chef.ico"/>
|
27
26
|
|
28
27
|
|
29
28
|
</head>
|
@@ -65,7 +64,7 @@
|
|
65
64
|
<dt><tt class="docutils literal"><span class="pre">--concurrency</span></tt></dt>
|
66
65
|
<dd>The number of allowed concurrent connections. Default: <tt class="docutils literal"><span class="pre">10</span></tt>.</dd>
|
67
66
|
<dt><tt class="docutils literal"><span class="pre">--local</span></tt></dt>
|
68
|
-
<dd>
|
67
|
+
<dd>Use to show local files instead of remote files.</dd>
|
69
68
|
<dt><tt class="docutils literal"><span class="pre">--repo-mode</span> <span class="pre">MODE</span></tt></dt>
|
70
69
|
<dd>The layout of the local chef-repo. Possible values: <tt class="docutils literal"><span class="pre">static</span></tt>, <tt class="docutils literal"><span class="pre">everything</span></tt>, or <tt class="docutils literal"><span class="pre">hosted_everything</span></tt>. Use <tt class="docutils literal"><span class="pre">static</span></tt> for just roles, environments, cookbooks, and data bags. By default, <tt class="docutils literal"><span class="pre">everything</span></tt> and <tt class="docutils literal"><span class="pre">hosted_everything</span></tt> are dynamically selected depending on the server type. Default: <tt class="docutils literal"><span class="pre">everything</span></tt> / <tt class="docutils literal"><span class="pre">hosted_everything</span></tt>.</dd>
|
71
70
|
</dl>
|
@@ -23,7 +23,6 @@
|
|
23
23
|
<script type="text/javascript" src="_static/jquery.js"></script>
|
24
24
|
<script type="text/javascript" src="_static/underscore.js"></script>
|
25
25
|
<script type="text/javascript" src="_static/doctools.js"></script>
|
26
|
-
<link rel="shortcut icon" href="_static/chef.ico"/>
|
27
26
|
|
28
27
|
|
29
28
|
</head>
|
@@ -61,7 +60,7 @@
|
|
61
60
|
<dt><tt class="docutils literal"><span class="pre">-a</span> <span class="pre">SSH_ATTR</span></tt>, <tt class="docutils literal"><span class="pre">--attribute</span> <span class="pre">SSH_ATTR</span></tt></dt>
|
62
61
|
<dd>The attribute that is used when opening the SSH connection. The default attribute is the FQDN of the host. Other possible values include a public IP address, a private IP address, or a hostname.</dd>
|
63
62
|
<dt><tt class="docutils literal"><span class="pre">-A</span></tt>, <tt class="docutils literal"><span class="pre">--forward-agent</span></tt></dt>
|
64
|
-
<dd>
|
63
|
+
<dd>Use to enable SSH agent forwarding.</dd>
|
65
64
|
<dt><tt class="docutils literal"><span class="pre">-C</span> <span class="pre">NUM</span></tt>, <tt class="docutils literal"><span class="pre">--concurrency</span> <span class="pre">NUM</span></tt></dt>
|
66
65
|
<dd>The number of allowed concurrent connections.</dd>
|
67
66
|
<dt><tt class="docutils literal"><span class="pre">-G</span> <span class="pre">GATEWAY</span></tt>, <tt class="docutils literal"><span class="pre">--ssh-gateway</span> <span class="pre">GATEWAY</span></tt></dt>
|
@@ -69,7 +68,7 @@
|
|
69
68
|
<dt><tt class="docutils literal"><span class="pre">-i</span> <span class="pre">IDENTITY_FILE</span></tt>, <tt class="docutils literal"><span class="pre">--identity-file</span> <span class="pre">IDENTIFY_FILE</span></tt></dt>
|
70
69
|
<dd>The SSH identity file used for authentication. Key-based authentication is recommended.</dd>
|
71
70
|
<dt><tt class="docutils literal"><span class="pre">-m</span></tt>, <tt class="docutils literal"><span class="pre">--manual-list</span></tt></dt>
|
72
|
-
<dd>
|
71
|
+
<dd>Use to define a search query as a space-separated list of servers. If there is more than one item in the list, put quotes around the entire list. For example: <tt class="docutils literal"><span class="pre">--manual-list</span> <span class="pre">"server01</span> <span class="pre">server</span> <span class="pre">02</span> <span class="pre">server</span> <span class="pre">03"</span></tt></dd>
|
73
72
|
<dt><tt class="docutils literal"><span class="pre">--[no-]host-key-verify</span></tt></dt>
|
74
73
|
<dd>Use <tt class="docutils literal"><span class="pre">--no-host-key-verify</span></tt> to disable host key verification. Default setting: <tt class="docutils literal"><span class="pre">--host-key-verify</span></tt>.</dd>
|
75
74
|
<dt><tt class="docutils literal"><span class="pre">OTHER</span></tt></dt>
|
@@ -23,7 +23,6 @@
|
|
23
23
|
<script type="text/javascript" src="_static/jquery.js"></script>
|
24
24
|
<script type="text/javascript" src="_static/underscore.js"></script>
|
25
25
|
<script type="text/javascript" src="_static/doctools.js"></script>
|
26
|
-
<link rel="shortcut icon" href="_static/chef.ico"/>
|
27
26
|
|
28
27
|
|
29
28
|
</head>
|
@@ -43,6 +42,10 @@
|
|
43
42
|
<div class="section" id="knife-ssl-check">
|
44
43
|
<h1>knife ssl check<a class="headerlink" href="#knife-ssl-check" title="Permalink to this headline">¶</a></h1>
|
45
44
|
<p>The <strong>knife ssl check</strong> subcommand is used to verify the SSL configuration for the Enterprise Chef and/or Open Source Chef servers, or at another location specified by a URL or URI.</p>
|
45
|
+
<div class="admonition warning">
|
46
|
+
<p class="first admonition-title">Warning</p>
|
47
|
+
<p class="last">When verification of a remote server’s SSL certificate is disabled, the chef-client will issue a warning similar to “SSL validation of HTTPS requests is disabled. HTTPS connections are still encrypted, but the chef-client is not able to detect forged replies or man-in-the-middle attacks.” To configure SSL for the chef-client, set <tt class="docutils literal"><span class="pre">ssl_verify_mode</span></tt> to <tt class="docutils literal"><span class="pre">:verify_peer</span></tt> (recommended) <strong>or</strong> <tt class="docutils literal"><span class="pre">verify_api_cert</span></tt> to <tt class="docutils literal"><span class="pre">true</span></tt> in the client.rb file.</p>
|
48
|
+
</div>
|
46
49
|
<p><strong>Syntax</strong></p>
|
47
50
|
<p>This subcommand has the following syntax:</p>
|
48
51
|
<div class="highlight-bash"><div class="highlight"><pre><span class="nv">$ </span>knife ssl check URI
|
@@ -54,7 +57,7 @@
|
|
54
57
|
<dt><tt class="docutils literal"><span class="pre">-a</span> <span class="pre">SSH_ATTR</span></tt>, <tt class="docutils literal"><span class="pre">--attribute</span> <span class="pre">SSH_ATTR</span></tt></dt>
|
55
58
|
<dd>The attribute that is used when opening the SSH connection. The default attribute is the FQDN of the host. Other possible values include a public IP address, a private IP address, or a hostname.</dd>
|
56
59
|
<dt><tt class="docutils literal"><span class="pre">-A</span></tt>, <tt class="docutils literal"><span class="pre">--forward-agent</span></tt></dt>
|
57
|
-
<dd>
|
60
|
+
<dd>Use to enable SSH agent forwarding.</dd>
|
58
61
|
<dt><tt class="docutils literal"><span class="pre">-c</span> <span class="pre">CONFIG_FILE</span></tt>, <tt class="docutils literal"><span class="pre">--config</span> <span class="pre">CONFIG_FILE</span></tt></dt>
|
59
62
|
<dd>The configuration file to use.</dd>
|
60
63
|
<dt><tt class="docutils literal"><span class="pre">-C</span> <span class="pre">NUM</span></tt>, <tt class="docutils literal"><span class="pre">--concurrency</span> <span class="pre">NUM</span></tt></dt>
|
@@ -62,11 +65,11 @@
|
|
62
65
|
<dt><tt class="docutils literal"><span class="pre">--chef-zero-port</span> <span class="pre">PORT</span></tt></dt>
|
63
66
|
<dd>The port on which chef-zero will listen.</dd>
|
64
67
|
<dt><tt class="docutils literal"><span class="pre">--[no-]color</span></tt></dt>
|
65
|
-
<dd>
|
68
|
+
<dd>Use to view colored output.</dd>
|
66
69
|
<dt><tt class="docutils literal"><span class="pre">-d</span></tt>, <tt class="docutils literal"><span class="pre">--disable-editing</span></tt></dt>
|
67
|
-
<dd>
|
70
|
+
<dd>Use to prevent the $EDITOR from being opened and to accept data as-is.</dd>
|
68
71
|
<dt><tt class="docutils literal"><span class="pre">--defaults</span></tt></dt>
|
69
|
-
<dd>
|
72
|
+
<dd>Use to have Knife use the default value instead of asking a user to provide one.</dd>
|
70
73
|
<dt><tt class="docutils literal"><span class="pre">-e</span> <span class="pre">EDITOR</span></tt>, <tt class="docutils literal"><span class="pre">--editor</span> <span class="pre">EDITOR</span></tt></dt>
|
71
74
|
<dd>The $EDITOR that is used for all interactive commands.</dd>
|
72
75
|
<dt><tt class="docutils literal"><span class="pre">-E</span> <span class="pre">ENVIRONMENT</span></tt>, <tt class="docutils literal"><span class="pre">--environment</span> <span class="pre">ENVIRONMENT</span></tt></dt>
|
@@ -82,7 +85,7 @@
|
|
82
85
|
<dt><tt class="docutils literal"><span class="pre">-k</span> <span class="pre">KEY</span></tt>, <tt class="docutils literal"><span class="pre">--key</span> <span class="pre">KEY</span></tt></dt>
|
83
86
|
<dd>The private key that Knife will use to sign requests made by the API client to the Chef server.</dd>
|
84
87
|
<dt><tt class="docutils literal"><span class="pre">-m</span></tt>, <tt class="docutils literal"><span class="pre">--manual-list</span></tt></dt>
|
85
|
-
<dd>
|
88
|
+
<dd>Use to define a search query as a space-separated list of servers. If there is more than one item in the list, put quotes around the entire list. For example: <tt class="docutils literal"><span class="pre">--manual-list</span> <span class="pre">"server01</span> <span class="pre">server</span> <span class="pre">02</span> <span class="pre">server</span> <span class="pre">03"</span></tt></dd>
|
86
89
|
<dt><tt class="docutils literal"><span class="pre">--[no-]host-key-verify</span></tt></dt>
|
87
90
|
<dd>Use <tt class="docutils literal"><span class="pre">--no-host-key-verify</span></tt> to disable host key verification. Default setting: <tt class="docutils literal"><span class="pre">--host-key-verify</span></tt>.</dd>
|
88
91
|
<dt><tt class="docutils literal"><span class="pre">OTHER</span></tt></dt>
|
@@ -92,7 +95,7 @@
|
|
92
95
|
<dt><tt class="docutils literal"><span class="pre">-P</span> <span class="pre">PASSWORD</span></tt>, <tt class="docutils literal"><span class="pre">--ssh-password</span> <span class="pre">PASSWORD</span></tt></dt>
|
93
96
|
<dd>The SSH password. This can be used to pass the password directly on the command line. If this option is not specified (and a password is required) Knife will prompt for the password.</dd>
|
94
97
|
<dt><tt class="docutils literal"><span class="pre">--print-after</span></tt></dt>
|
95
|
-
<dd>
|
98
|
+
<dd>Use to show data after a destructive operation.</dd>
|
96
99
|
<dt><tt class="docutils literal"><span class="pre">-s</span> <span class="pre">URL</span></tt>, <tt class="docutils literal"><span class="pre">--server-url</span> <span class="pre">URL</span></tt></dt>
|
97
100
|
<dd>The URL for the Chef server.</dd>
|
98
101
|
<dt><tt class="docutils literal"><span class="pre">SEARCH_QUERY</span></tt></dt>
|
@@ -108,9 +111,9 @@
|
|
108
111
|
<dt><tt class="docutils literal"><span class="pre">-x</span> <span class="pre">USER_NAME</span></tt>, <tt class="docutils literal"><span class="pre">--ssh-user</span> <span class="pre">USER_NAME</span></tt></dt>
|
109
112
|
<dd>The SSH user name.</dd>
|
110
113
|
<dt><tt class="docutils literal"><span class="pre">-y</span></tt>, <tt class="docutils literal"><span class="pre">--yes</span></tt></dt>
|
111
|
-
<dd>
|
114
|
+
<dd>Use to respond to all confirmation prompts with “Yes”. Knife will not ask for confirmation.</dd>
|
112
115
|
<dt><tt class="docutils literal"><span class="pre">-z</span></tt>, <tt class="docutils literal"><span class="pre">--local-mode</span></tt></dt>
|
113
|
-
<dd>
|
116
|
+
<dd>Use to run the chef-client in local mode. This allows all commands that work against the Chef server to also work against the local chef-repo.</dd>
|
114
117
|
</dl>
|
115
118
|
<p><strong>Examples</strong></p>
|
116
119
|
<p>The following examples show how to use this Knife subcommand:</p>
|