请输入您要查询的百科知识:

 

词条 Infrastructure as code
释义

  1. Overview

  2. Added value and advantages

  3. Types of approaches

  4. Methods

  5. Tools

     Continuous configuration automation  Community content 

  6. Relationship to DevOps

  7. See also

  8. References

{{Advert|date=March 2018}}Infrastructure as code (IaC) is the process of managing and provisioning computer data centers through machine-readable definition files, rather than physical hardware configuration or interactive configuration tools.

The IT infrastructure managed by this comprises both physical equipment such as bare-metal servers as well as virtual machines and associated configuration resources.

The definitions may be in a version control system.

It can use either scripts or declarative definitions, rather than manual processes, but the term is more often used to promote declarative approaches.

IaC approaches are promoted for cloud computing, which is sometimes marketed as infrastructure as a service (IaaS). IaC supports IaaS, but should not be confused with it.

Overview

IaC grew as a response to the difficulty posed from two pieces of technology – utility computing and second-generation web frameworks. In 2006, the launch of Amazon Web Services’ Elastic Compute Cloud and the 1.0 version of Ruby on Rails just months before[1] brought about widespread scaling problems for many enterprises, problems that were previously only witnessed by huge companies.[2] With new tools emerging to handle this ever growing field, the idea of IaC was born. The thought of modelling infrastructure with code, and then having the ability to design, implement, and deploy applications infrastructure with known software best practices appealed to software developers and IT infrastructure administrators. The ability to treat it like code and use the same tools as any other software project would allow developers to rapidly deploy applications.[3]

Added value and advantages

The value of IaC can be broken down into three measurable categories: Cost (reduction), speed (faster execution) and risk (remove errors and security violations).[4]{{not in citation given|date=March 2017}} Cost reduction aims at helping not only the enterprise financially, but also in terms of people and effort, meaning that by removing the manual component, people are able to refocus their efforts towards other enterprise tasks.{{citation needed|date=March 2017}} Infrastructure automation enables speed through faster execution when configuring your infrastructure and aims at providing visibility to help other teams across the enterprise work quickly and more efficiently. Automation removes the risk associated with human error, like manual misconfiguration; removing this can decrease downtime and increase reliability.{{citation needed|date=March 2017}} These outcomes and attributes help the enterprise move towards implementing a culture of DevOps, the combined working of development and operations.[5]

Types of approaches

There are generally three approaches to IaC: declarative (functional) vs. imperative (procedural) vs. intelligent (environment aware).{{citation needed|date=March 2017}} The difference between the declarative, the imperative and the intelligent approach is essentially 'what' versus 'how' versus 'why' . {{anchor|Declarative}}The declarative approach focuses on what the eventual target configuration should be; the {{anchor|Imperative}}imperative focuses on how the infrastructure is to be changed to meet this; the intelligent approach focuses on why the configuration should be a certain way in consideration of all the co-relationships and co-dependencies of multiple applications running on the same infrastructure typically found in production.[6] The declarative approach defines the desired state and the system executes what needs to happen to achieve that desired state. Imperative defines specific commands that need to be executed in the appropriate order to end with the desired conclusion. The intelligent determines the correct desired state before the system executes what needs to happen to achieve a desired state that does not impact co-dependent applications. Environment aware desired state is the next generation of IaC.[7]

Methods

There are two methods of IaC: 'push' and 'pull' . The main difference is the manner in which the servers are told how to be configured. In the pull method the server to be configured will pull its configuration from the controlling server. In the push method the controlling server pushes the configuration to the destination system.[8]

Tools

There are many tools that fulfill infrastructure automation capabilities and use IaC. Broadly speaking, any framework or tool that performs changes or configures infrastructure declaratively or imperatively based on a programmatic approach can be considered IaC.[9] Traditionally, server (lifecycle) automation and configuration management tools were used to accomplish IaC. Now enterprises are also using continuous configuration automation tools or stand-alone IaC frameworks, such as Microsoft’s PowerShell DSC [10] or AWS CloudFormation [11].

Continuous configuration automation

All continuous configuration automation (CCA) tools can be thought of as an extension of traditional IaC frameworks. They leverage IaC to change, configure, and automate infrastructure, and they also provide visibility, efficiency and flexibility in how infrastructure is managed.[2] These additional attributes provide enterprise-level security and compliance - making companies keen on implementing these types of tools.

Community content

An important aspect when considering CCA tools, if they are open source, is the community content. As Gartner states, the value of CCA tools is “as dependent on user-community-contributed content and support as it is on the commercial maturity and performance of the automation tooling.”[2] Vendors like Puppet and Chef, those that have been around a significant amount of time, have created their own communities. Chef has Chef Community Repository and Puppet has PuppetForge.[12] Other vendors rely on adjacent communities and leverage other IaC frameworks such as PowerShell DSC.[10] New vendors are emerging that are not content driven, but model driven with the intelligence in the product to deliver content. These visual, object-oriented systems work well for developers, but they are especially useful to production oriented DevOps and operations constituents that value models versus scripting for content. As the field continues to develop and change, the community based content will become ever important to how IaC tools are used, unless they are model driven and object oriented.

Notable CCA tools include:

Tool Released by Method Approach Written in
Pulumi Pulumi Push DeclarativeTypescript, Python, Go
ChefChefPullDeclarative and imperativeRuby
OtterInedoPushDeclarative and imperative -
PuppetPuppetPullDeclarativeRuby
SaltStackSaltStackPush and PullDeclarative and imperativePython
CFEngineCFEnginePullDeclarative -
Terraform HashiCorp Push DeclarativeGo
DSCMicrosoftPush/PullDeclarative/ImperativePowerShell
Ansible / Ansible Tower RedHat Push Declarative and imperativePython

Relationship to DevOps

IaC can be a key attribute of enabling best practices in DevOps – Developers become more involved in defining configuration and Ops teams get involved earlier in the development process.[13] Tools that utilize IaC bring visibility to the state and configuration of servers and ultimately provide the visibility to users within the enterprise, aiming to bring teams together to maximize their efforts.[14] Automation in general aims to take the confusion and error-prone aspect of manual processes and make it more efficient, and productive. Allowing for better software and applications to be created with flexibility, less downtime, and an overall cost effective way for the company. IaC is intended to reduce the complexity that kills efficiency out of manual configuration. Automation and collaboration are considered central points in DevOps; Infrastructure automation tools are often included as components of a DevOps toolchain.[15]

See also

  • Configuration management
  • Orchestration

References

1. ^{{cite journal | last=Bower |first=Joseph L. | last2= Christensen | first2= Claton M. | title= Disruptive Technologies: Catching the Wave | journal= Harvard Business Review}}
2. ^{{cite report |last= Fletcher | first= Colin | last2= Cosgrove | first2=Terrence |title=Innovation Insight for Continuous Configuration Automation Tools |website=Gartner |url=http://www.gartner.com/document/3119319?ref=unauthreader | date=26 August 2015}}
3. ^{{cite journal | last= Riley| first= Chris| date= 12 November 2015 | title= Version Your Infrastructure | url= http://devops.com/2015/11/12/version-your-infrastructure/ | journal=DevOps.com}}
4. ^{{cite web | url=http://devops.com/2015/02/26/how-deploy-frequency-impacts-infrastructure-stability/ | title=How Deploy Frequency Impacts Infrastructure Stability | last= Macvittie |first= Lori | website= DevOps.com | date= 26 February 2015}}
5. ^{{cite web | url=http://devops.com/2015/05/14/moving-from-infrastructure-automation-to-true-devops/ | title= Moving from Infrastructure Automation to True DevOps | last= Phillips |first=Andrew | website= DevOps.com | date= 14 May 2015}}
6. ^{{cite web | url= https://www.scriptrock.com/blog/articles/declarative-vs.-imperative-models-for-configuration-management | title= Declarative v. Imperative Models for Configuration Management: Which Is Really Better? |website= Scriptrock.com | access-date= 14 December 2015}}
7. ^{{cite magazine |last= Loschwitz | first= Martin | date= 14 November 2014 | title= Choosing between the leading open source configuration managers | url=http://www.admin-magazine.com/Archive/2014/23/Choosing-between-the-leading-open-source-configuration-managers | magazine= Admin Network & Security | location= Lawrence, KS USA | publisher= Linux New Media USA LLC}}
8. ^{{cite web | url=http://www.networkworld.com/article/2172097/virtualization/puppet-vs--chef-vs--ansible-vs--salt.html | title= Puppet vs. Chef vs. Ansible vs. Salt| last= Venezia | first=Paul | date= 21 November 2013| website= networkworld.com | publisher= Network World | access-date=14 December 2015 }}
9. ^{{cite report |title=Garner Market Trends: DevOps – Not a Market, but Tool-Centric Philosophy That supports a Continuous Delivery Value Chain |publisher=Gartner |date=18 February 2015}}
10. ^{{cite magazine |last= Chaganti|first=Ravikanth |date= 5 January 2016 |title=DevOps, Infrastructure as Code, and PowerShell DSC: The Introduction |url=http://www.powershellmagazine.com/2016/01/05/devops-infrastructure-as-code-and-powershell-dsc-the-introduction/ |magazine= PowerShell Magazine |publisher=PowerShell Magazine |access-date=11 January 2016 }}
11. ^https://aws.amazon.com/about-aws/whats-new/2011/02/25/introducing-aws-cloudformation/
12. ^{{cite web |url=https://philsturgeon.uk/devops/2012/10/28/puppet-or-chef/ |title=Puppet or Chef? | last= Sturgeon |first= Phil | date= 28 October 2012}}
13. ^{{cite web| url= http://info.easydynamics.com/blog/continuous-integration-infrastructure-as-code |title= Continuous Integration: Infrastructure as Code in DevOps | last= Ramos | first= Martin | website= easydynamics.com | date= 4 November 2015}}
14. ^{{cite report |title=Infrastructure As Code: Fueling the Fire for Faster Application Delivery |publisher=Forrester |date=March 2015}}
15. ^{{cite report | last= Wurster | first= Laurie F. |last2= Colville | first2= Ronni J. |last3= Height| first3= Cameron | last4= Tripathi | first4= Somendra | last5= Rastogi | first5= Aditi | title= Emerging Technology Analysis: DevOps a Culture Shift, Not a Technology| publisher= Gartner }}

|page=93

}}


}}{{Use dmy dates|date=June 2017}}

7 : Agile software development|Software development process|Configuration management|Systems engineering|Orchestration software|Cloud computing|As a service

随便看

 

开放百科全书收录14589846条英语、德语、日语等多语种百科知识,基本涵盖了大多数领域的百科知识,是一部内容自由、开放的电子版国际百科全书。

 

Copyright © 2023 OENC.NET All Rights Reserved
京ICP备2021023879号 更新时间:2024/11/13 12:23:43