ТЕМА: Elgin :azure devops artifacts pricing - Кабринский Эдуард

Elgin :azure devops artifacts pricing - Кабринский Эдуард 2 років 10 місяців тому #29911

Chef developer - Kabrinskiy Eduard


<h1>Chef developer</h1>
<p>[youtube]</p>
Chef developer <a href="remmont.com">Top headlines</a> Chef developer
<h1>An Overview of Chef Infra</h1>
<p>Chef Infra 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 Infra automates how infrastructure is configured, deployed, and managed across your network, no matter its size.</p>
<p>This diagram shows how you develop, test, and deploy your Chef Infra code.</p>
<p style="clear: both"><img src="docs.chef.io/images/start_chef.png" /></p>
<p><ul>
<li><strong>Chef Workstation</strong> is the location where users interact with Chef Infra. With Chef Workstation, users can author and test cookbooks using tools such as Test Kitchen and interact with the Chef Infra Server using the knife and chef command line tools.</li>
<li><strong>Chef Infra Client nodes</strong> are the machines that are managed by Chef Infra. The Chef Infra Client is installed on each node and is used to configure the node to its desired state.</li>
<li><strong>Chef Infra Server</strong> acts as a hub for configuration data. Chef Infra Server stores cookbooks, the policies that are applied to nodes, and metadata that describes each registered node that is being managed by Chef. Nodes use the Chef Infra Client to ask the Chef Infra Server for configuration details, such as recipes, templates, and file distributions.</li>
</ul>
</p>
<h2>Chef Infra Components</h2>
<p>The following diagram shows the relationships between the various elements of Chef Infra, including the nodes, the server, and the workstation. These elements work together to provide the Chef Infra Client the information and instruction that it needs so that it can do its job. As you are reviewing the rest of this topic, use the icons in the tables to refer back to this image.</p>
<p style="clear: both"><img src="docs.chef.io/images/chef_overview.svg" /></p>
<p>Chef Infra has the following major components:</p>
<p> <table> <thead> <tr > <th>Component</th> <th>Description</th> </tr> </th> <tbody> <tr ></p>
<p> </p>
<p> </p>
<p> </p>
<p>One (or more) workstations are configured to allow users to author, test, and maintain cookbooks.</p>
<p>Workstation systems run the Chef Workstation package which includes tools such as Chef Infra Client, Chef InSpec, Test Kitchen, ChefSpec, Cookstyle, and other tools necessary for developing and testing your infrastructure with Chef products.</p>
<p>Cookbooks are uploaded to the Chef Infra Server from these workstations. Some cookbooks are custom to the organization and others are based on community cookbooks available from the Chef Supermarket.</p>
<p>Ruby is the programming language that is the authoring syntax for cookbooks. Most recipes are simple patterns (blocks that define properties and values that map to specific configuration items like packages, files, services, templates, and users. The full power of Ruby is available for when you need a programming language.</p>
<p> </p>
<p> </p>
<p><td>A node is any device—physical, virtual, cloud, network device, etc.—that is under management by Chef Infra.</p>
<p>Chef Infra Client is installed on each node that is managed with Chef Infra. Chef Infra Client configures the node locally by performing the tasks specified in the run-list. Chef Infra Client will also pull down any required configuration data from the Chef Infra Server during a Chef Infra Client run.</p>
<p> </p>
<p>The Chef Infra Server acts as a hub of information. Cookbooks and policy settings are uploaded to the Chef Infra Server by users from workstations. (Policy settings may also be maintained from the Chef Infra Server itself, via the Chef management console web user interface.)</p>
<p>The Chef Infra Client accesses the Chef Infra Server from the node on which it's installed to get configuration data, performs searches of historical Chef Infra Client run data, and then pulls down the necessary configuration data. After a Chef Infra Client run is finished, the Chef Infra Client uploads updated run data to the Chef Infra Server.</p>
<p></tr> <tr > <td> </td> <td>Chef Supermarket is the location in which community cookbooks are shared and managed. Cookbooks that are part of the Chef Supermarket may be used by any Chef user. How community cookbooks are used varies from organization to organization.</td> </tr> </tbody> </table> </p>
<p>Chef Infra Client run reporting, compliance reporting, high availability configurations, and Chef Infra Server replication are available as part of Chef Automate.</p>
<p>The following sections discuss these elements (and their various components) in more detail.</p>
<h2>Workstations</h2>
<p>A workstation is your local computer running Chef Workstation that you use to author cookbooks, interact with the Chef Infra Server, and interact with nodes.</p>
<p>The workstation is where users do most of their work, including:</p>
<p><ul>
<li>Developing and testing cookbooks</li>
<li>Keeping the Chef Infra repository synchronized with version source control</li>
<li>Configuring organizational by including defining and applying Policyfiles or Policy Groups</li>
<li>Interacting with nodes, as (or when) required, such as performing a bootstrap operation</li>
</ul>
</p>
<h3>Chef Workstation Components and Tools</h3>
<p>Some important tools and components of Chef Workstation include:</p>
<p> <table> <thead> <tr > <th>Component</th> <th>Description</th> </tr> </th> <tbody> <tr > <td> </td></p>
<p>Chef Workstation contains everything that is needed to start using Chef Infra and Chef InSpec:</p>
<p><ul>
<li>Chef Infra Client</li>
<li>Chef InSpec</li>
<li>chef and knife command line tools</li>
<li>Testing tools such as Test Kitchen, ChefSpec, and Cookstyle</li>
<li>Everything else needed to author cookbooks and upload them to the Chef Infra Server</li>
</ul>
</td></tr><tr ></p>
<p> </p>
<p> </p>
<p>Chef Workstation includes important command-line tools:</p>
<p><ul>
<li>Chef Infra: Use the chef command-line tool to work with items in a chef-repo, which is the primary location in which cookbooks are authored, tested, and maintained, and from which policy is uploaded to the Chef Infra Server</li>
<li>Knife: Use the knife command-line tool to interact with nodes or work with objects on the Chef Infra Server</li>
<li>Chef Infra Client: an agent that configures your nodes</li>
<li>Test Kitchen: a testing harness for rapid validation of Chef code</li>
<li>Chef InSpec: Chef's open source security & compliance automation framework</li>
<li>chef-run: a tool for running ad-hoc tasks</li>
<li>Chef Workstation App: for updating and managing your chef tools</li>
</ul>
</td></tr><tr ></p>
<p> </p>
<p>The chef-repo is the repository structure in which cookbooks are authored, tested, and maintained:</p>
<p><ul>
<li>Cookbooks contain recipes, attributes, custom resources, libraries, files, templates, tests, and metadata</li>
<li>The chef-repo should be synchronized with a version control system (such as git), and then managed as if it were source code</li>
</ul>
</p>
<p>The directory structure within the chef-repo varies. Some organizations prefer to keep all of their cookbooks in a single chef-repo, while other organizations prefer to use a chef-repo for every cookbook.</p>
</tr> <tr > <td> </td>
<p>Use Test Kitchen to automatically test cookbooks across any combination of platforms and test suites:</p>
<p><ul>
<li>Test suites are defined in a kitchen.yml file. See the configuration documentation for options and syntax information.</li>
<li>Supports cookbook testing across many cloud providers and virtualization technologies.</li>
<li>Uses a comprehensive set of operating system base images from Chef’s Bento project.</li>
</ul>
</td></tr><tr ><td> </td></p>
<p>Use ChefSpec to simulate the convergence of resources on a node:</p>
<p><ul>
<li>Is an extension of RSpec, a behavior-driven development (BDD) framework for Ruby</li>
<li>Is the fastest way to test resources and recipes</li>
</ul>
</td></tr></tbody></table></p>
<h2>Cookbooks</h2>
<p>A cookbook is the fundamental unit of configuration and policy distribution. A cookbook defines a scenario and contains everything that is required to support that scenario:</p>
<p><ul>
<li>Recipes that specify the resources to use and the order in which they are to be applied</li>
<li>Attribute values</li>
<li>File distributions</li>
<li>Templates</li>
<li>Extensions to Chef, such as custom resources and libraries</li>
</ul>
</p>
<p>The Chef Infra Client uses Ruby as its reference language for creating cookbooks and defining recipes, with an extended DSL for specific resources. A reasonable set of resources are available to the Chef Infra Client, enough to support many of the most common infrastructure automation scenarios; however, this DSL can also be extended when additional resources and capabilities are required.</p>
<h3>Components</h3>
<p>Cookbooks are comprised of the following components:</p>
<p> <table> <thead> <tr > <th>Component</th> <th>Description</th> </tr> </th> <tbody> <tr > <td> </td> <td>An attribute can be defined in a cookbook (or a recipe) and then used to override the default settings on a node. When a cookbook is loaded during a Chef Infra Client run, these attributes are compared to the attributes that are already present on the node. Attributes that are defined in attribute files are first loaded according to cookbook order. For each cookbook, attributes in the default.rb file are loaded first, and then additional attribute files (if present) are loaded in lexical sort order. When the cookbook attributes take precedence over the default attributes, Chef Infra Client applies those new settings and values during a Chef Infra Client run on the node.</td> </tr> <tr > <td> </td> <td>Use the <strong>cookbook_file</strong> 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 to file specificity, which allows different source files to be used based on the hostname, host platform (operating system, distro, or as appropriate), or platform version. Files that are located in the COOKBOOK_NAME/files/default sub-directory may be used on any platform.</td> </tr> <tr > <td> </td> <td>A library allows arbitrary Ruby code to be included in a cookbook. The most common use for libraries is to write helpers that are used throughout recipes and custom resources. A library file is a Ruby file that is located within a cookbook’s /libraries directory. Because a library is built using Ruby, anything that can be done with Ruby can be done in a library file, including advanced functionality such as extending built-in Chef classes.</td> </tr> <tr > <td> </td> <td>Every cookbook requires a small amount of metadata. A file named metadata.rb is located at the top of every cookbook directory structure. The contents of the metadata.rb file provides information that helps Chef Infra Client and Server correctly deploy cookbooks to each node.</td> </tr> <tr ></p>
<p> </p>
<p> </p>
<p>A recipe is the most fundamental configuration element within the organization. A recipe:</p>
<p><ul>
<li>Is authored using Ruby, which is a programming language designed to read and behave in a predictable manner</li>
<li>Is mostly a collection of resources, defined using patterns (resource names, attribute-value pairs, and actions); helper code is added around this using Ruby, when needed</li>
<li>Must define everything that is required to configure part of a system</li>
<li>Must be stored in a cookbook</li>
<li>May be included in another recipe</li>
<li>May use the results of a search query and read the contents of a data bag (including an encrypted data bag)</li>
<li>May have a dependency on one (or more) recipes</li>
<li>Must be added to a run-list before it can be used by Chef Infra Client</li>
<li>Is always executed in the same order as listed in a run-list</li>
</ul>
</p>
<p>The Chef Infra Client will run a recipe only when asked. When the Chef Infra Client runs the same recipe more than once, the results will be the same system state each time. When a recipe is run against a system, but nothing has changed on either the system or in the recipe, the Chef Infra Client won't change anything.</p>
<p>The Recipe DSL is a Ruby DSL that is primarily used to declare resources from within a recipe. The Recipe DSL also helps ensure that recipes interact with nodes (and node properties) in the desired manner. Most of the methods in the Recipe DSL are used to find a specific parameter and then tell Chef Infra Client what action(s) to take, based on whether that parameter is present on a node.</td> </tr> <tr ></p>
<p> </p>
<p>A resource is a statement of configuration policy that:</p>
<p><ul>
<li>Describes the desired state for a configuration item</li>
<li>Declares the steps needed to bring that item to the desired state</li>
<li>Specifies a resource type—such as package , template , or service</li>
<li>Lists additional details (also known as resource properties), as necessary</li>
<li>Are grouped into recipes, which describe working configurations</li>
</ul>
</p>
<p>Chef has many built-in resources that cover all of the most common actions across all of the most common platforms. You can build your own resources to handle any situation that isn't covered by a built-in resource.</p>
<p></tr> <tr > <td> </td> <td>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 <strong>template</strong> resource to add cookbook templates to recipes; place the corresponding Embedded Ruby (ERB) template file in a cookbook’s /templates directory.</td> </tr> <tr > <td> </td> <td>Testing cookbooks improves the quality of those cookbooks by ensuring they are doing what they are supposed to do and that they are authored in a consistent manner. Unit and integration testing validates the recipes in cookbooks. Syntax testing---often called linting---validates the quality of the code itself. The following tools are popular tools used for testing Chef recipes: Test Kitchen, ChefSpec, and Cookstyle.</td> </tr> </tbody> </table> </p>
<h2>Nodes</h2>
<p>A node is any device—physical, virtual, cloud, network device, etc.—that is under management by Chef Infra.</p>
<h3>Node Types</h3>
<p>The types of nodes that can be managed by Chef include, but are not limited to, the following:</p>
<p> <table> <thead> <tr > <th>Node Type</th> <th>Description</th> </tr> </th> <tbody> <tr > <td> </td> <td>A physical node is typically a server or a virtual machine, but it can be any active device attached to a network that is capable of sending, receiving, and forwarding information over a communications channel. In other words, a physical node is any active device attached to a network that can run a Chef Infra Client and also allow that Chef Infra Client to communicate with a Chef Infra Server.</td> </tr> <tr > <td> </td> <td>A cloud-based node is hosted in an external cloud-based service, such as Amazon Web Services (AWS), OpenStack, Rackspace, Google Compute Engine, or Microsoft Azure. Plugins are available for knife that provide support for external cloud-based services. knife can use these plugins to create instances on cloud-based services. Once created, Chef Infra Client can be used to deploy, configure, and maintain those instances.</td> </tr> <tr > <td> </td> <td>A virtual node is a machine that runs only as a software implementation, but otherwise behaves much like a physical machine.</td> </tr> <tr > <td> </td> <td>A network node is any networking device---a switch, a router---that is being managed by a Chef Infra Client, such as networking devices by Juniper Networks, Arista, Cisco, and F5. Use Chef to automate common network configurations, such as physical and logical Ethernet link properties and VLANs, on these devices.</td> </tr> <tr > <td> </td> <td>Containers are an approach to virtualization that allows a single operating system to host many working configurations, where each working configuration---a container---is assigned a single responsibility that is isolated from all other responsibilities. Containers are popular as a way to manage distributed and scalable applications and services.</td> </tr> </tbody> </table> </p>
<h3>Chef on Nodes</h3>
<p>The key components of nodes that are under management by Chef include:</p>
<p> <table> <thead> <tr > <th>Component</th> <th>Description</th> </tr> </th> <tbody> <tr ></p>
<p> </p>
<p>Chef Infra Client is an agent that runs locally on every node that is under management by Chef Infra Server. When Chef Infra Client runs, performs all of the steps required for bringing a node into the expected state, including:</p>
<p><ul>
<li>Registering and authenticating the node with Chef Infra Server</li>
<li>Building the node object</li>
<li>Synchronizing cookbooks</li>
<li>Compiling the resource collection by loading each of the required cookbooks, including recipes, attributes, and all other dependencies</li>
<li>Taking the appropriate and required actions to configure the node</li>
<li>Looking for exceptions and notifications, handling each as required</li>
</ul>
Chef Infra Client authenticates with the Chef Infra Server using RSA public key-pairs each time a Chef Infra Client needs access to data that is stored on the Chef Infra Server. This prevents any node from accessing data that it shouldn’t and it ensures that only nodes that are properly registered with the Chef Infra Server can be managed.</td></tr><tr ><td> </td></p>
<p>Ohai is a tool that is used to collect system configuration data, which is provided to Chef Infra Client for use within cookbooks. Ohai is run by Chef Infra Client at the beginning of every Chef run to determine system state. Ohai includes many built-in plugins to detect common configuration details as well as a plugin model for writing custom plugins.</p>
<p>The types of attributes Ohai collects include but are not limited to:</p>
<p><ul>
<li>Operating System</li>
<li>Network</li>
<li>Memory</li>
<li>Disk</li>
<li>CPU</li>
<li>Kernel</li>
<li>Host names</li>
<li>Fully qualified domain names</li>
<li>Virtualization</li>
<li>Cloud provider metadata</li>
</ul>
</p>
<p>Attributes that are collected by Ohai are automatic level attributes, in that these attributes are used by Chef Infra Client to ensure that these attributes remain unchanged after Chef Infra Client is done configuring the node.</p>
<h2>The Chef Infra Server</h2>
<p>The Chef Infra Server acts as a hub for configuration data. The Chef Infra Server stores cookbooks, the policies that are applied to nodes, and metadata that describes each registered node that is being managed by Chef Infra Client. Nodes use Chef Infra Client to ask the Chef Infra Server for configuration details, such as recipes, templates, and file distributions. Chef Infra Client then does as much of the configuration work as possible on the nodes themselves (and not on the Chef Infra Server). This scalable approach distributes the configuration effort throughout the organization.</p>
<p> <table> <thead> <tr > <th>Feature</th> <th>Description</th> </tr> </th> <tbody> <tr > <td> </td> <td>Search indexes allow queries to be made for any type of data that is indexed by the Chef Infra Server, including data bags (and data bag items), environments, nodes, and roles. A defined query syntax is used to support search patterns like exact, wildcard, range, and fuzzy. A search is a full-text query that can be done from several locations, including from within a recipe, by using the search subcommand in knife, the search method in the Recipe DSL, the search box in the Chef management console, and by using the /search or /search/INDEX endpoints in the Chef Infra Server API. The search engine is based on Elasticsearch and is run from the Chef Infra Server.</td> </tr> <tr > <td> </td></p>
<p>Chef management console is a web-based interface for the Chef Infra Server that provides users a way to manage the following objects:</p>
<p><ul>
<li>Nodes</li>
<li>Cookbooks and recipes</li>
<li>Roles</li>
<li>Stores of JSON data (data bags), including encrypted data</li>
<li>Environments</li>
<li>Searching of indexed data</li>
<li>User accounts and user data for the individuals who have permission to log on to and access the Chef server</li>
</ul>
</td></tr><tr ><td> </td><td>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.</td></tr><tr ><td> </td><td>Policy defines how business and operational requirements, processes, and production workflows map to objects that are stored on the Chef Infra Server. Policy objects on the Chef Infra Server include roles, environments, and cookbook versions.</td></tr></tbody></table></p>
<h3>Policy</h3>
<p>Policy maps business and operational requirements, process, and workflow to settings and objects stored on the Chef Infra Server:</p>
<p><ul>
<li>Roles define server types, such as “web server” or “database server”</li>
<li>Environments define process, such as “dev”, “staging”, or “production”</li>
<li>Certain types of data—passwords, user account data, and other sensitive items—can be placed in data bags, which are located in a secure sub-area on the Chef Infra Server that can only be accessed by nodes that authenticate to the Chef Infra Server with the correct SSL certificates</li>
<li>The cookbooks (and cookbook versions) in which organization-specific configuration policies are maintained</li>
</ul>
</p>
<p>Some important aspects of policy include:</p>
<p> <table> <thead> <tr > <th>Feature</th> <th>Description</th> </tr> </th> <tbody> <tr > <td> </td> <td>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 contents of that role’s run-list are applied to the node’s configuration details. When a Chef Infra Client runs, it merges its own attributes and run-lists with those contained within each assigned role.</td> </tr> <tr > <td> </td> <td>An environment is a way to map an organization’s real-life workflow to what can be configured and managed when using Chef Infra. This mapping is accomplished by setting attributes and pinning cookbooks at the environment level. With environments, you can change cookbook configurations depending on the system’s designation. For example, by designating different staging and production environments, you can then define the correct URL of a database server for each environment. Environments also allow organizations to move new cookbook releases from staging to production with confidence by stepping releases through testing environments before entering production.</td> </tr> <tr > <td> </td></p>
<p>A cookbook version represents a set of functionality that is different from the cookbook on which it is based. A version may exist for many reasons, such as ensuring the correct use of a third-party component, updating a bug fix, or adding an improvement. A cookbook version is defined using syntax and operators, may be associated with environments, cookbook metadata, and/or run-lists, and may be frozen (to prevent unwanted updates from being made).</p>
<p>A cookbook version is maintained just like a cookbook, with regard to source control, uploading it to the Chef Infra Server, and how Chef Infra Client applies that cookbook when configuring nodes.</p>
</tr> <tr > <td> </td>
<p>A run-list defines all of the information necessary for Chef to configure a node into the desired state. A run-list is:</p>
<p><ul>
<li>An ordered list of roles and/or recipes that are run in the exact order defined in the run-list; if a recipe appears more than once in the run-list, Chef Infra Client will not run it twice</li>
<li>Always specific to the node on which it runs; nodes may have a run-list that is identical to the run-list used by other nodes</li>
<li>Stored as part of the node object on the Chef server</li>
<li>Maintained using knife and then uploaded from the workstation to the Chef Infra Server, or maintained using Chef Automate</li>
</ul>
</td></tr></tbody></table></p>
<h2>Conclusion</h2>
<p>Chef is a thin DSL (domain-specific language) built on top of Ruby. This approach allows Chef to provide just enough abstraction to make reasoning about your infrastructure easy. Chef includes a built-in taxonomy of all the basic resources one might configure on a system, plus a defined mechanism to extend that taxonomy using the full power of the Ruby language. Ruby was chosen because it provides the flexibility to use both the simple built-in taxonomy, as well as being able to handle any customization path your organization requires.</p>
<h2>Chef developer</h2>

<h3>Chef developer</h3>
<p>[youtube]</p>
Chef developer <a href="remmont.com">Live news</a> Chef developer
<h4>Chef developer</h4>
An Overview of Chef Infra Chef Infra is a powerful automation platform that transforms infrastructure into code. Whether you’re operating in the cloud, on-premises, or in a hybrid environment,
<h5>Chef developer</h5>
Chef developer <a href="remmont.com">Chef developer</a> Chef developer
SOURCE: <h6>Chef developer</h6> <a href="dev-ops.engineer/">Chef developer</a> Chef developer
#tags#[replace: -,-Chef developer] Chef developer#tags#
top news
  • MISSISSIPPI-Dal
  • MISSISSIPPI-Dal аватар
  • Немає на сайті
  • Платиновий учасник
  • Дописи: 552
  • Репутація: 0
Адміністратор заборонив доступ на запис.
Час відкриття сторінки: 0.053 секунд