万本电子书0元读

万本电子书0元读

顶部广告

OpenStack Administration with Ansible电子书

售       价:¥

3人正在读 | 0人评论 9.8

作       者:Walter Bentley

出  版  社:Packt Publishing

出版时间:2016-01-28

字       数:113.7万

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

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

为你推荐

  • 读书简介
  • 目录
  • 累计评论(0条)
  • 读书简介
  • 目录
  • 累计评论(0条)
Design, build, and automate 10 real-world OpenStack administrative tasks with AnsibleAbout This BookAutomate real-world OpenStack cloud operator administrative tasksConstruct a collection of automation code to save time on managing your OpenStack cloudUse this step-by-step tutorial to automate such tasks with AnsibleWho This Book Is ForIf you are an OpenStack-based cloud operator and/or infrastructure administrator and are interested in automating administrative functions, then this book is exactly what you are looking for. Having a functioning OpenStack environment is helpful, but most certainly not necessary.What You Will LearnEfficiently execute OpenStack administrative tasksFamiliarize yourself with how Ansible works and assess the defined best practicesCreate Ansible playbooks and rolesAutomate tasks to customize your OpenStack cloudReview OpenStack automation considerations when automating administrative tasksExamine and automate advanced OpenStack tasks and designated use casesGet a high-level overview of OpenStack and the current production-ready projectsDeep dive into OpenStack CLI tools and find out how to use themIn DetailMost 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.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—Ansible.We will start with a brief overview of OpenStack and Ansible and highlight some best practices. Each chapter will provide an introduction to handling various Cloud Operator administration tasks such as creating multiple users/tenants, setting up Multi-Tenant Isolation, customizing your clouds quotas, taking instance snapshots, evacuating compute hosts for maintenance, and running cloud health checks, and a step-by-step tutorial on how to automate these tasks with Ansible.Style and approachThis easy-to-follow reference guide is packed with examples of real-world OpenStack administration tasks; each task is explained in detail and then subsequently turned into automation code.
目录展开

OpenStack Administration with Ansible

Table of Contents

OpenStack Administration with Ansible

Credits

About the Author

Acknowledgments

About the Reviewer

www.PacktPub.com

Support files, eBooks, discount offers, and more

Why subscribe?

Free access for Packt account holders

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. An Introduction to OpenStack

OpenStack overview

The OpenStack foundation

Reviewing the OpenStack services

OpenStack Compute (codename Nova)

OpenStack Object Storage (codename Swift)

OpenStack Image Service (codename Glance)

OpenStack Identity (codename Keystone)

OpenStack Dashboard (codename Horizon)

OpenStack Networking (codename Neutron)

OpenStack Block Storage (codename Cinder)

OpenStack Orchestration (codename Heat)

OpenStack Telemetry (codename Ceilometer)

OpenStack Database (codename Trove)

OpenStack Data Processing (codename Sahara)

OpenStack Bare Metal Provisioning (codename Ironic)

OpenStack supporting components

Features and benefits

Fully distributed architecture

Uses commodity hardware

Scale horizontally or vertically

Meets high availability requirements

Compute isolation and multi-DC support

Robust role-based access control

Working examples – list the services and endpoints

Listing the OpenStack services

Via API

Via CLI

Listing the OpenStack endpoints

Via API

Via CLI

Summary

2. An Introduction to Ansible

Ansible overview

What are playbooks, roles, and modules?

Playbooks

Roles

Modules

Variables and facts

Variables

Setting variable placeholders

Defining variable values

Registering variables

Facts

Defining the inventory

Dynamic inventory

Summary

3. Creating Multiple Users/Tenants

Creating users and tenants

Manually creating users and tenants

Creating a user

Creating a tenant

Assigning users role and tenant access

Automation considerations

Defining variables globally or per role

The OpenStack API or CLI

Where to run Ansible

Coding the playbook and roles

The playbook and role review

Summary

4. Customizing Your Cloud's Quotas

Define and create quotas

Creating quotas manually

Setting up default quotas

Reset quota values

Automation considerations

Coding the playbook and roles

Playbook and role review

Summary

5. Snapshot Your Cloud

Define backups and snapshots

Creating backups and snapshots manually

Restore an instance backup

Automation considerations

Coding the playbook and roles

Playbook and role review

Summary

6. Migrating Instances

Instance migration

Manually migrating instances

Migrating an instance to a specific compute node

Automation considerations

Coding the playbook and roles

Playbook and role review

Summary

7. Setting up Isolated Tenants

Multi-tenant isolation explained

Setting up multi-tenant isolation

Pre-configuration steps

Step 1

Step 2

Tenant configuration steps

Step 1 – create a new or use an existing tenant

Step 2 – create new host aggregate

Step 3 – add hosts to the new host aggregate

Step 4 – update host aggregate metadata

Step 5 – create a custom flavor to include the tenant filter

Step 6 – apply volume type quotas

Automation considerations

Coding the playbook and roles

Playbook and role review

Summary

8. Deploying OpenStack Features

Multiple hypervisor support

What is Docker (aka Docker Engine)?

Setting up Docker and nova-docker

Docker configuration

Install Docker on a new compute node

Configuring nova-docker

Step 1 – install nova-docker

Step 2 – update the Nova compute_driver parameter

Step 3 – add the docker.filters file to the Nova rootwrap.d folder

Step 4 – add and remove filters on the compute node(s) Nova scheduler

Step 5 – add and remove filters on the controller node(s) Nova scheduler

Step 6 – create a custom Docker flavor with extra specs

Step 7 – create a new host aggregate for the Docker compute node(s)

Step 8 – add docker to the Glance API container_formats

Coding the playbook and roles

Install Docker

nova-docker

nova-update

openstack-config

nova-scheduler

glance-update

Playbook and role review

Summary

9. Inventory Your Cloud

Collecting cloud metrics

User report

Tenant report

Network report

Volume report

Cloud-at-a-glance report

Coding the playbook and roles

cloud-inventory

cloud-usage

user-inventory

tenant-inventory

network-inventory

volume-inventory

Playbook and role review

Summary

10. Health Check Your Cloud

Monitoring the cloud

OpenStack service processes

Infrastructure services

MariaDB and Galera

RabbitMQ

Core OpenStack services

Service and process check examples

Coding the playbook and roles

cloud-infra-check

cloud-core-os-check

os-service-status

Playbook and role review

Summary

Index

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

发表评论

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

买过这本书的人还买过

读了这本书的人还在读

回顶部