サクサク読めて、アプリ限定の機能も多数!
トップへ戻る
Pixel 9
docs.chef.io
Chef Habitat is a workload-packaging, orchestration, and deployment system that allows you to build, package, deploy, and manage applications and services without worrying about which infrastructure your application will deploy on, and without any rewriting or refactoring if you switch to a different infrastructure. Habitat separates the platform-independent parts of your application—the build dep
docs-archive.chef.io
Release Notes: chef-client 12.1¶ Chef is a powerful automation platform that transforms infrastructure into code. Whether you’re operating in the cloud, on-premises, or in a hybrid environment, Chef automates how infrastructure is configured, deployed, and managed across your network, no matter its size. This diagram shows how you develop, test, and deploy your Chef code. What’s New¶ The following
yum_package 'name' do allow_downgrade true, false # default value: true arch String, Array flush_cache Hash # default value: {"before"=>false, "after"=>false} options String, Array package_name String, Array source String timeout String, Integer version String, Array yum_binary String action Symbol # defaults to :install if not specified end where: yum_package is the resource.name is the name give
Use Test Kitchen to automatically test cookbooks across any combination of platforms and test suites: Test suites are defined in a kitchen.yml file. See the configuration documentation for options and syntax information.Supports cookbook testing across many cloud providers and virtualization technologies.Uses a comprehensive set of operating system base images from Chef’s Bento project.The key con
This page lists plugins for Ohai plugins and Chef Infra Client handlers that are developed and maintained by the Chef community. OhaiOhai is a tool for collecting system configuration data, which it then provides to Chef Infra Client to use in cookbooks. Chef Infra Client runs Ohai at the start of every Chef Infra run to determine system state. The attributes that Ohai collects are called automati
This page is generated from the Chef Infra Client source code. To suggest a change, edit the group.rb file and submit a pull request to the Chef Infra Client repository. All Infra resources page Use the group resource to manage a local group. Syntax The full syntax for all of the properties that are available to the group resource is: group 'name' do append true, false # default value: false comme
Elements of good approaches to building cookbooks and recipes that are reliable include: A consistent syntax pattern when constructing recipesUsing the same patterns in RubyUsing resources included in Chef Infra Client or community cookbooks before creating custom onesIdeally, the best way to debug a recipe is to not have to debug it in the first place. That said, the following sections discuss va
file 'name' do atomic_update true, false backup Integer, false # default value: 5 checksum String content String force_unlink true, false # default value: false group Integer, String inherits true, false # default value: true manage_symlink_source true, false mode Integer, String owner Integer, String path String # default value: 'name' unless specified rights Integer, String verify String, Block,
This page is generated from the Chef Infra Client source code. To suggest a change, edit the bash.rb file and submit a pull request to the Chef Infra Client repository. All Infra resources page Use the bash resource to execute scripts using the Bash interpreter. This resource may also use any of the actions and properties that are available to the execute resource. Commands that are executed with
This page is generated from the Chef Infra Client source code. To suggest a change, edit the cookbook_file.rb file and submit a pull request to the Chef Infra Client repository. All Infra resources page Use the cookbook_file resource to transfer files from a sub-directory of COOKBOOK_NAME/files/ to a specified path located on a host that is running Chef Infra Client. The file is selected according
System RequirementsMinimum system requirements: RAM: 4GBDisk: 8GBAdditional memory and storage space may be necessary to take advantage of Chef Workstation tools such as Test Kitchen which creates and manages virtualized test environments.Additional Chef Workstation App Requirements: On Linux, you must have a graphical window manager running with support for system tray icons. For some distributio
Chef Infra Client 18.5.0https://packages.chef.io/release-notes/chef/18.5.0.mdSecurityUpdated OpenSSL to 3.0.9 for all platforms except macOS, Windows, and AIX.Amazon Linux and Ubuntu now support FIPS on ARM processors.Resource Updateschef_client_config resourceFixed the ERB template used to generate client.rb files with the chef_client_config resource. When the the policy_persist_run_list and mini
Data bags store global variables as JSON data. Data bags are indexed for searching and can be loaded by a cookbook or accessed during a search.Create a data bagYou can create a data bag in two ways: using knife or manually. We recommend using knife, but as long as you create the data bag folders and item JSON files correctly, either method is safe and effective. Create a data bag with knifeUse the
This page is generated from the Chef Infra Client source code. To suggest a change, edit the template.rb file and submit a pull request to the Chef Infra Client repository. All Infra resources page A cookbook template is an Embedded Ruby (ERB) template that is used to dynamically generate static text files. Templates may contain Ruby expressions and statements, and are a great way to manage config
Ohai is a tool for collecting system configuration data, which it then provides to Chef Infra Client to use in cookbooks. Chef Infra Client runs Ohai at the start of every Chef Infra run to determine system state. The attributes that Ohai collects are called automatic attributes. Chef Infra Client uses these attributes to ensure that nodes are in the desired state after each configuration run. The
chef_gem 'name' do clear_sources true, false gem_binary String include_default_source true, false options String, Hash, Array package_name String source String, Array timeout String, Integer version String action Symbol # defaults to :install if not specified end where: chef_gem is the resource.name is the name given to the resource block.action identifies which steps Chef Infra Client will take t
directory 'name' do group String, Integer inherits true, false mode String, Integer owner String, Integer path String # defaults to 'name' if not specified recursive true, false rights Hash action Symbol # defaults to :create if not specified end where: directory is the resource.name is the name given to the resource block.action identifies which steps Chef Infra Client will take to bring the node
Use a handler to identify situations that arise during a Chef Infra Client run, and then tell Chef Infra Client how to handle these situations when they occur.There are three types of handlers: exceptionAn exception handler is used to identify situations that have caused a Chef Infra Client run to fail. An exception handler can be loaded at the start of a Chef Infra Client run by adding a recipe t
This page is generated from the Chef Infra Client source code. To suggest a change, edit the execute.rb file and submit a pull request to the Chef Infra Client repository. All Infra resources page Use the execute resource to execute a single command. Commands that are executed with this resource are (by their nature) not idempotent, as they are typically unique to the environment in which they are
This page is generated from the Chef Infra Client source code. To suggest a change, edit the git.rb file and submit a pull request to the Chef Infra Client repository. All Infra resources page Use the git resource to manage source control resources that exist in a git repository. git version 1.6.5 (or higher) is required to use all of the functionality in the git resource. Syntax A git resource bl
chef-solo is a command that executes Chef Infra Client in a way that does not require the Chef Infra Server to converge cookbooks. chef-solo uses Chef Infra Client’s Chef local mode, and does not support the following functionality present in Chef Infra Client / server configurations: Centralized distribution of cookbooksA centralized API that interacts with and integrates infrastructure component
A cookbook is the fundamental unit of configuration and policy distribution in Chef Infra. A cookbook defines a scenario and contains everything that is required to support that scenario: Recipes that specify which Chef Infra built-in resources to use, as well as the order in which they are to be appliedAttribute values, which allow environment-based configurations such as dev or production.Custom
PrerequisitesThe Chef Infra Server has the following prerequisites: An x86_64 compatible system architecture; Red Hat Enterprise Linux and CentOS may require updates prior to installationA resolvable hostname that is specified using a FQDN or an IP addressA connection to Network Time Protocol (NTP) to prevent clock driftIf host-based firewalls (iptables, ufw, etc.) are being used, ensure that port
A role is a way to define certain patterns and processes that exist across nodes in an organization as belonging to a single job function. Each role consists of zero (or more) attributes and a run-list. Each node can have zero (or more) roles assigned to it. When a role is run against a node, the configuration details of that node are compared against the attributes of the role, and then the conte
This page is generated from the Chef Infra Client source code. To suggest a change, edit the user.rb file and submit a pull request to the Chef Infra Client repository. All Infra resources page Use the user resource to add users, update existing users, remove users, and to lock/unlock user passwords. System attributes are collected by Ohai at the start of every Chef Infra Client run. By design, th
An attribute is a specific detail about a node. Attributes are used by Chef Infra Client to understand: The current state of the nodeWhat the state of the node was at the end of the previous Chef Infra Client runWhat the state of the node should be at the end of the current Chef Infra Client runAttributes are defined by: The node as saved on the Chef Infra ServerAttributes passed using JSON on the
All resources (including custom resources) share a set of common actions, properties, conditional executions, notifications, and relative path options. ActionsThe following actions may be used with any resource: :nothingThis resource block does not act unless notified by another resource to take action. Once notified, this resource block either runs immediately or is queued up to run at the end of
A cookbook template is an Embedded Ruby (ERB) template that is used to dynamically generate static text files. Templates may contain Ruby expressions and statements, and are a great way to manage configuration files. Use the template resource to add cookbook templates to recipes; place the corresponding Embedded Ruby (ERB) template file in a cookbook’s /templates directory.The templates directory
New in Chef Infra Client 17 Chef Infra Client’s Compliance Phase lets you automatically execute compliance audits and view the results as part of any Chef Infra Client Run. The Compliance Phase replaces the legacy audit cookbook and works with your existing audit cookbook attributes. You can also set up the Compliance Phase for new cookbooks. See Compliance Phase documentation to upgrade. Chef Inf
次のページ
このページを最初にブックマークしてみませんか?
『Chef Documentation』の新着エントリーを見る
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く