Learning SaltStack

Learning SaltStack

Build, manage, and secure your infrastructure by utilizing the power of SaltStack About This Book First book in the market to incorporate all the latest features of SaltStack. Leverage the power of SaltStack for building, managing and securing your infrastructure. Effectively use commands and control the state of your infrastructure in a jiffy. Who This Book Is For This book is aimed at System Administrators who are looking forward to manage their infrastructure using SaltStack with no prior knowledge about it. What You Will Learn Install Salt on your servers Run commands on all or some of your minions instantly from a central managing server Write custom Salt modules to handle your infrastructure's unique needs Define the state of your infrastructure and use Salt to enforce that state. Create platform-agnostic state definitions for greater flexibility and power Manage virtual servers on public or private clouds using Salt Cloud Use the event system in Salt to create a reactive and self-healing infrastructure In Detail SaltStack is one of the best infrastructure management platforms available. It provides powerful tools for defining and enforcing the state of your infrastructure in a clear, concise way. With this book learn how to use these tools for your own infrastructure by understanding the core pieces of Salt. In this book we will take you from the initial installation of Salt, through running their first commands, and then talk about extending Salt for individual use cases. From there you will explore the state system inside of Salt, learning to define the desired state of our infrastructure in such a way that Salt can enforce that state with a single command. Finally, you will learn about some of the additional tools that salt provides, including salt-cloud, the reactor, and the event system. Well finish by exploring how to get involved with salt and what's new in the salt community. Finally, by the end of the book, you'll be able to build a reliable, scalable, secure, high-performance infrastructure and fully utilize the power of cloud computing. Style and approach This will be a comprehensive guide on SaltStack along with installation and setting up of Salt on couple of platforms. Then enlightening the readers about remote execution system and configuration management system and ending with concepts of security and best practices.

Mastering SaltStack

Mastering SaltStack

Take charge of SaltStack to automate and configure your enterprise-grade environments About This Book Automate tasks effectively and take charge of your infrastructure Effectively scale Salt to manage thousands of machines and tackle everyday problems Explore Salt's inner workings and advance your knowledge of it Who This Book Is For This book is ideal for IT professionals and ops engineers who already manage groups of servers, but would like to expand their knowledge and gain expertise with SaltStack. This book explains the advanced features and concepts of Salt. A basic knowledge of Salt is required in order to get to grips with advanced Salt features. What You Will Learn Automate tasks effectively, so that your infrastructure can run itself Start building more complex concepts Master user-level internals Build scaling strategies Explore monitoring strategies Learn how to troubleshoot Salt and its subcomponents Explore best practices for Salt In Detail SaltStack is a powerful configuration management and automation suite designed to manage servers and tens of thousands of nodes. This book showcases Salt as a very powerful automation framework. We will review the fundamental concepts to get you in the right frame of mind, and then explore Salt in much greater depth. You will explore Salt SSH as a powerful tool and take Salt Cloud to the next level. Next, you'll master using Salt services with ease in your infrastructure. You will discover methods and strategies to scale your infrastructure properly. You will also learn how to use Salt as a powerful monitoring tool. By the end of this book, you will have learned troubleshooting tips and best practices to make the entire process of using Salt pain-free and easy. Style and approach This book follows a step-by-step conversational tone. Topics are covered in detail through examples and a user-friendly approach.

Hands-On Linux Administration on Azure

Explore the essential Linux administration skills you need to deploy and manage Azure-based workloads

Hands-On Linux Administration on Azure

Learn to efficiently run Linux-based workloads in Azure Key Features Manage and deploy virtual machines in your Azure environment Explore various open source tools to integrate automation and orchestration Leverage Linux features to create, run, and manage containers Book Description Azure’s market share has increased massively and enterprises are adopting it rapidly. Linux is a widely-used operating system and has proven to be one of the most popular workloads on Azure. It has become crucial for Linux administrators and Microsoft professionals to be well versed with the concepts of managing Linux workloads in an Azure environment. Hands-On Linux Administration on Azure starts by introducing you to the fundamentals of Linux and Azure, after which you will explore advanced Linux features and see how they are managed in an Azure environment. Next, with the help of real-world scenarios, you will learn how to deploy virtual machines(VMs) in Azure, along with extending Azure VMs capabilities and managing them efficiently. You will then understand continuous configuration automation and use Ansible, SaltStack and Powershell DSC for orchestration. As you make your way through the chapters, you will understand containers and how they work, along with managing containers and the various tasks you can perform with them. In the concluding chapters, you will cover some Linux troubleshooting techniques on Azure, and you will also be able to monitor Linux in Azure using different open source tools. By the end of this book, you will be able to administer Linux on Azure and make the most of the important tools required for deployment. What you will learn Understand why Azure is the ideal solution for your open source workloads Master essential Linux skills and learn to find your way around the Linux environment Deploy Linux in an Azure environment Use configuration management to manage Linux in Azure Manage containers in an Azure environment Enhance Linux security and use Azure’s identity management systems Automate deployment with Azure Resource Manager (ARM) and Powershell Employ Ansible to manage Linux instances in an Azure cloud environment Who this book is for Hands-On Linux Administration on Azure is for Linux administrators and Microsoft professionals that need to deploy and manage their workloads in Azure. Prior knowledge of Linux and Azure isn't necessary.

Extending SaltStack

Extending SaltStack

Extend the power of your infrastructure and applications with Salt modules About This Book Get the most up-to-date practical resource on writing new Salt modules and extending Salt Learn through use cases and encounter both commonly-used modules as well as advanced ones Effectively troubleshoot problems and hiccups encountered while building and putting modules to work Who This Book Is For This book is for both new and existing Salt developers who are looking to build and write new Salt modules. Some prior Python development experience is expected. What You Will Learn Understand the working of Salt's Loader system Write several of the most common types of Salt modules Interact between different kinds of modules and build new ones Submit open source modules upstream to the Salt project Make Salt interact with third-party services and applications In Detail Salt already ships with a very powerful set of tools, but that doesn't mean that they all suit your needs perfectly. By adding your own modules and enhancing existing ones, you can bring the functionality that you need to increase your productivity. Extending SaltStack follows a tutorial-based approach to explain different types of modules, from fundamentals to complete and full-functioning modules. Starting with the Loader system that drives Salt, this book will guide you through the most common types of modules. First you will learn how to write execution modules. Then you will extend the configuration using the grain, pillar, and SDB modules. Next up will be state modules and then the renderers that can be used with them. This will be followed with returner and output modules, which increase your options to manage return data. After that, there will be modules for external file servers, clouds, beacons, and finally external authentication and wheel modules to manage the master. With this guide in hand, you will be prepared to create, troubleshoot, and manage the most common types of Salt modules and take your infrastructure to new heights! Style and approach This book follows a step-by-step tutorial-based approach explaining the different types of modules, from fundamentals to complete and full-functioning modules.

Practical Network Automation

A beginner's guide to automating and optimizing networks using Python, Ansible, and more, 2nd Edition

Practical Network Automation

Leverage the power of Python, Ansible and other network automation tools to make your network robust and more secure Key Features Get introduced to the concept of network automation with relevant use cases Apply Continuous Integration and DevOps to improve your network performance Implement effective automation using tools such as Python, Ansible, and more Book Description Network automation is the use of IT controls to supervise and carry out everyday network management functions. It plays a key role in network virtualization technologies and network functions. The book starts by providing an introduction to network automation, and its applications, which include integrating DevOps tools to automate the network efficiently. It then guides you through different network automation tasks and covers various data digging and performing tasks such as ensuring golden state configurations using templates, interface parsing. This book also focuses on Intelligent Operations using Artificial Intelligence and troubleshooting using chatbots and voice commands. The book then moves on to the use of Python and the management of SSH keys for machine-to-machine (M2M) communication, all followed by practical use cases. The book also covers the importance of Ansible for network automation, including best practices in automation; ways to test automated networks using tools such as Puppet, SaltStack, and Chef; and other important techniques. Through practical use-cases and examples, this book will acquaint you with the various aspects of network automation. It will give you the solid foundation you need to automate your own network without any hassle. What you will learn Get started with the fundamental concepts of network automation Perform intelligent data mining and remediation based on triggers Understand how AIOps works in operations Trigger automation through data factors Improve your data center's robustness and security through data digging Get access infrastructure through API Framework for chatbot and voice interactive troubleshootings Set up communication with SSH-based devices using Netmiko Who this book is for If you are a network engineer or a DevOps professional looking for an extensive guide to help you automate and manage your network efficiently, then this book is for you. No prior experience with network automation is required to get started, however you will need some exposure to Python programming to get the most out of this book.

Terraform: Up & Running

Writing Infrastructure as Code

Terraform: Up & Running

Terraform has become a key player in the DevOps world for defining, launching, and managing infrastructure as code (IaC) across a variety of cloud and virtualization platforms, including AWS, Google Cloud, Azure, and more. This hands-on second edition, expanded and thoroughly updated for Terraform version 0.12 and beyond, shows you the fastest way to get up and running. Gruntwork cofounder Yevgeniy (Jim) Brikman walks you through code examples that demonstrate Terraform’s simple, declarative programming language for deploying and managing infrastructure with a few commands. Veteran sysadmins, DevOps engineers, and novice developers will quickly go from Terraform basics to running a full stack that can support a massive amount of traffic and a large team of developers. Explore changes from Terraform 0.9 through 0.12, including backends, workspaces, and first-class expressions Learn how to write production-grade Terraform modules Dive into manual and automated testing for Terraform code Compare Terraform to Chef, Puppet, Ansible, CloudFormation, and Salt Stack Deploy server clusters, load balancers, and databases Use Terraform to manage the state of your infrastructure Create reusable infrastructure with Terraform modules Use advanced Terraform syntax to achieve zero-downtime deployment

Effective DevOps with AWS

Implement continuous delivery and integration in the AWS environment, 2nd Edition

Effective DevOps with AWS

Scale and maintain outstanding performance in your AWS-based infrastructure using DevOps principles Key Features Implement continuous integration and continuous deployment pipelines on AWS Gain insight from an expert who has worked with Silicon Valley's most high-profile companies Implement DevOps principles to take full advantage of the AWS stack and services Book Description The DevOps movement has transformed the way modern tech companies work. Amazon Web Services (AWS), which has been at the forefront of the cloud computing revolution, has also been a key contributor to the DevOps movement, creating a huge range of managed services that help you implement DevOps principles. Effective DevOps with AWS, Second Edition will help you to understand how the most successful tech start-ups launch and scale their services on AWS, and will teach you how you can do the same. This book explains how to treat infrastructure as code, meaning you can bring resources online and offline as easily as you control your software. You will also build a continuous integration and continuous deployment pipeline to keep your app up to date. Once you have gotten to grips will all this, we'll move on to how to scale your applications to offer maximum performance to users even when traffic spikes, by using the latest technologies, such as containers. In addition to this, you'll get insights into monitoring and alerting, so you can make sure your users have the best experience when using your service. In the concluding chapters, we'll cover inbuilt AWS tools such as CodeDeploy and CloudFormation, which are used by many AWS administrators to perform DevOps. By the end of this book, you'll have learned how to ensure the security of your platform and data, using the latest and most prominent AWS tools. What you will learn Implement automatic AWS instance provisioning using CloudFormation Deploy your application on a provisioned infrastructure with Ansible Manage infrastructure using Terraform Build and deploy a CI/CD pipeline with Automated Testing on AWS Understand the container journey for a CI/CD pipeline using AWS ECS Monitor and secure your AWS environment Who this book is for Effective DevOps with AWS is for you if you are a developer, DevOps engineer, or you work in a team which wants to build and use AWS for software infrastructure. Basic computer science knowledge is required to get the most out of this book.

Terraform

Up and Running : Writing Infrastructure as Code

Terraform

"Gruntwork cofounder Yevgeniy (Jim) Brikman walks you through dozens of code examples that demonstrate how to use Terraform's simple, declarative programming language to deploy and manage infrastructure with just a few commands. Whether you're a novice developer, aspiring DevOps engineer, or veteran sysadmin, this book will take you from Terraform basics to running a full tech stack capable of supporting a massive amount of traffic and a large team of developers."--Page [4] of cover.