官术网_书友最值得收藏!

Infrastructure as Code

Traditionally, infrastructure has been managed manually. At best, there would be a user interface which could assist in creating and configuring compute instances. For most of the users who begin their journey with a cloud, a web-based dashboard is the first and most convenient way to interact. However, such a manual method is error prone. Some of the most commonly faced problems are:

  • Requirement for more personnel to manage infrastructure round the clock
  • Probability of errors and inconsistencies due to human involvement
  • Lack of repeatability and auditability

Creating Infrastructure as Code addresses these concerns and helps in more than one way. A well maintained code base will allow us to refer to the infrastructure state, not only at the present but also at various points in the past.

Ansible helps us code various aspects of infrastructure including provisioning, configuring, and eventually, retiring. Ansible supports coding over 20 cloud providers and self-managed infrastructure setups. Due to its open nature, existing providers can be enhanced and customized and new providers can be added easily.

Once we start managing Infrastructure as Code, we open ourselves to the possibility of a lot of automation. While this book focuses on creating and managing the infrastructure, the possibilities are limitless. We can:

  • Raise an alarm if a critical machine becomes unreachable.
  • Personnel who do not have access to infrastructure can still help by coding the infrastructure. A code review exercise could help to enforce best practices.
  • We can scale infrastructure dynamically based on our requirements.
  • In case of a disaster, we can create replacements quickly.
  • Passing knowledge of best practices within and outside the organization becomes easier.

Throughout this book, we will create our infrastructure from Ansible code and demonstrate its usability and repeatability.

主站蜘蛛池模板: 图木舒克市| 和政县| 伊春市| 九龙城区| 高清| 梅河口市| 肃北| 东莞市| 连城县| 海安县| 普兰店市| 南宫市| 安宁市| 高安市| 东海县| 桓仁| 罗山县| 台南县| 长丰县| 莫力| 遂川县| 民乐县| 苏州市| 巩义市| 鲁山县| 大新县| 西畴县| 凉城县| 沂源县| 赤水市| 牙克石市| 华容县| 五指山市| 德兴市| 和龙市| 谢通门县| 凤庆县| 竹溪县| 利津县| 永济市| 三都|