万本电子书0元读

万本电子书0元读

顶部广告

OpenStack Administration with Ansible 2 - Second Edition电子书

售       价:¥

5人正在读 | 0人评论 9.8

作       者:Walter Bentley

出  版  社:Packt Publishing

出版时间:2016-12-01

字       数:136.6万

所属分类: 进口书 > 外文原版书 > 电脑/网络

温馨提示:数字商品不支持退换货,不提供源文件,不支持导出打印

为你推荐

  • 读书简介
  • 目录
  • 累计评论(0条)
  • 读书简介
  • 目录
  • 累计评论(0条)
Orchestrate and automate your OpenStack cloud operator tasks with Ansible 2.0 About This Book Automate real-world OpenStack cloud operator administrative tasks Construct a collection of the latest automation code to save time on managing your OpenStack cloud Manage containers on your cloud and check the health of your cloud using Nagios Who This Book Is For This book is aimed at OpenStack-based cloud operators and infrastructure and sys administrators who have some knowledge of OpenStack and are seeking to automate taxing and manual tasks. This book is also for people new to automating cloud operations in general and the DevOps practice in particular. What You Will Learn Efficiently execute OpenStack administrative tasks Familiarize yourself with how Ansible 2 works and assess the defined best practices Create Ansible 2 playbooks and roles Automate tasks to customize your OpenStack cloud Review OpenStack automation considerations when automating administrative tasks Examine and automate advanced OpenStack tasks and designated use cases Get a high-level overview of OpenStack and current production-ready projects Explore OpenStack CLI tools and learn how to use them In Detail Most organizations are seeking methods to improve business agility because they have realized just having a cloud is not enough. Being able to improve application deployments, reduce infrastructure downtime, and eliminate daily manual tasks can only be accomplished through some sort of automation. We start with a brief overview of OpenStack and Ansible 2 and highlight some best practices. Each chapter will provide an introduction to handling various Cloud Operator administration tasks such as managing containers within your cloud; setting up/utilizing open source packages for monitoring; creating multiple users/tenants; taking instance snapshots; and customizing your cloud to run multiple active regions. Each chapter will also supply a step-by-step tutorial on how to automate these tasks with Ansible 2. Packed with real-world OpenStack administrative tasks, this book will walk you through working examples and explain how these tasks can be automated using one of the most popular open source automation tools on the market today. Style and approach This book is a concise, fast-paced guide filled with real-world scenarios that will execute OpenStack administrative tasks efficiently. It serves as a quick reference guide for not just OpenStack functions, but also for creating future Ansible code.
目录展开

OpenStack Administration with Ansible 2 Second Edition

OpenStack Administration with Ansible 2 Second Edition

Credits

About the Author

About the Reviewer

www.PacktPub.com

Why subscribe?

Customer Feedback

Preface

What this book covers

What you need for this book

Who this book is for

Conventions

Reader feedback

Customer support

Downloading the example code

Errata

Piracy

Questions

1. Introduction to OpenStack

An overview of OpenStack

The OpenStack Foundation

Reviewing the OpenStack services

OpenStack Compute (code-name Nova)

OpenStack Object Storage (code-name Swift)

OpenStack Image Service (code-name Glance)

OpenStack Identity (code-name Keystone)

OpenStack Dashboard (code-name Horizon)

OpenStack Networking (code-name Neutron)

OpenStack Block Storage (code-name Cinder)

OpenStack Orchestration (code-name Heat)

OpenStack Telemetry (code-name Ceilometer)

OpenStack Database (code-name Trove)

OpenStack Data Processing (code-name Sahara)

OpenStack Bare Metal Provisioning (code-name Ironic)

Other optional services

OpenStack supporting components

Features and benefits

Fully distributed architecture

Using commodity hardware

Scaling horizontally or vertically

Meeting high availability requirements

Compute isolation and multi-dc Support

Robust role-based access control

Working examples – listing the services

Listing the OpenStack services

Via API

Via CLI

Summary

2. Introduction to Ansible

Ansible 2.0 overview

What are playbooks, roles, and modules?

Playbooks

Roles

Modules

Setting up the environment

Upgrading to Ansible 2.0

New OpenStack client authentication

Variables and facts

Variables

Setting variable placeholders

Defining variable values

Registering variables

Facts

Defining the inventory

Dynamic inventory

Blocks

Strategies

Cloud integrations

Summary

3. Creating Multiple Users/Projects

Creating users and projects

Manually creating users and projects

Creating a user

Creating a project

Assigning a role and project access to users

Automation considerations

Defining variables globally or per role

OpenStack API or CLI?

Where to run Ansible

Coding the playbooks and roles

Reviewing playbooks and roles

Summary

4. Customizing Your Clouds Quotas

Defining and creating quotas

Manually creating quotas

Setting up default quotas

Resetting quota values

Automation considerations

Coding the playbooks and roles

Reviewing playbooks and roles

Summary

5. Snapshot Your Cloud

Defining backups and snapshots

Manually creating backups and snapshots

Restoring an instance backup

Automation considerations

Coding the playbooks and roles

Reviewing playbooks and roles

Summary

6. Migrating Instances

Instance migration

Manually migrating instances

Migrating an instance to a specific compute node

Automation considerations

Coding the playbooks and roles

Role details

Variable details

Playbook details

Reviewing playbook and role

Summary

7. Managing Containers on Your Cloud

The container concept explained

Building and deploying containers

Building containers with Ansible Container

Automation considerations

Step 1

Step 2

Step 3

Step 4

Deploying Kubernetes on OpenStack

Automation considerations

Managing CoreOS and Docker with Ansible

Automation considerations

Coding the playbooks and roles

Deploying Nova LXD on OpenStack

Automation considerations

Reviewing playbooks and roles

Summary

8. Setting Up Active-Active Regions

Reviewing OpenStack high availability scenarios

Multiple data centers

Single data center

Availability Zones

Why to use Active-Active cloud regions?

Setting up Active-Active cloud regions

Region endpoint inventory

Admin region configurations

Creating service user accounts on the Admin region

Creating services on the Admin region

Registering each region's endpoints to the Admin region

Adjusting the Admin regions' identity endpoint

Active region configurations

Coding the playbooks and roles

Setting up the Admin region

Setting up Active regions

Reviewing playbooks and roles

Summary

9. Inventory Your Cloud

Collecting cloud metrics

User report

Project report

Network report

Volume report

Cloud-at-a-Glance report

Coding the playbooks and roles

cloud-inventory

cloud-usage

user-inventory

project-inventory

network-inventory

volume-inventory

Reviewing playbooks and roles

Summary

10. Health Check Your Cloud with Nagios

Monitoring the cloud

OpenStack service processes

Infrastructure services

MariaDB and Galera

RabbitMQ

Core OpenStack services

Service and process check examples

Setting up Nagios and import checks

Collect your metrics via SNMP

Coding the playbooks and roles

snmp-config

install-nagios

nagios-plugins

install-nconf

nconf-post-install

create-nagios-user

infra-plugin-config

nagios-post-install

Reviewing playbook and role

Summary

累计评论(0条) 0个书友正在讨论这本书 发表评论

发表评论

发表评论,分享你的想法吧!

买过这本书的人还买过

读了这本书的人还在读

回顶部