Book description
Get started with the fundamentals of PowerShell DSC and utilize its power to automate deployment and configuration of your servers
About This Book
- Create flexible and maintainable deployments using DSC configuration scripts that stand the test of time
- Explore the in depth details of the core architecture, concepts, and practices used by PowerShell DSC
- A step-by-step guide that shows you how to start using and taking advantage of PowerShell DSC
Who This Book Is For
This book is intended for system administrators, developers, or engineers who are responsible for configuration management and automation and wish to learn PowerShell Desired State Configuration for efficient management, configuration and deployment of systems and applications.
What You Will Learn
- Understand configuration management and why you need it
- Craft flexible, reusable, and maintainable configuration scripts for thousands of servers
- Create custom DSC resources to manage any application or server setting
- Apply configuration data to deploy applications to different environments
- Utilize DSC push deployments to test your configuration scripts and custom DSC resources
- Install, configure and use DSC pull servers
- Run a Windows MSI package
- Deploy a website
In Detail
Windows PowerShell is a task-based command-line shell and scripting language designed especially for system administration. PowerShell DSC is a new management platform that enables you to deploy and manage configuration data for software services and manage the environment in which these services run.
This book begins with an overview of the basics of PowerShell DSC by covering the architecture and components of the Desired Sate Configuration. It will then familiarize you with the set of PowerShell language extensions and new PowerShell commands. It will help you understand and create DSC configurations with the help of practical examples, and to create DSC custom resources for your custom applications. Finally, you will learn to deploy a real world application using PowerShell DSC. By the end of the book, you will have better knowledge about the powerful Desired State Configuration platform, which helps you to achieve continuous delivery, and efficient management and easy deployment of data for systems.
Style and approach
This book is an in-depth guide to using PowerShell DSC, full of real-world experiences and best practices using PowerShell DSC. The topics are explained and build on one another other to provide a holistic learning experience. At the end, all the features learned will be used to create a real world application deployment using DSC.
Table of contents
-
Learning PowerShell DSC
- Table of Contents
- Learning PowerShell DSC
- Credits
- About the Author
- About the Reviewers
- www.PacktPub.com
- Preface
-
1. Introduction to PowerShell DSC
- What is PowerShell DSC?
- Why do we need Configuration Management?
- DSC quick wins
- A high level overview of DSC
- Why all the abstraction?
- How does DSC help me?
- DSC features
- PowerShell v4 DSC
-
PowerShell v5 DSC
- v5 DSC language extensions
- v5 DSC base resources
- v5 DSC Cmdlets
-
v5 improvements
- The PowerShell ISE
- Partial configurations and dependencies
- Class-based DSC Resources
- DSC built-in support for help
- DSC run as credential support
- DSC resource side-by-side installation
- DSC resource script debugging
- The separation of node and configuration IDs
- DSC LCM MetaConfig updates
- DSC LCM rich state information
- DSC LCM RefreshMode values
- DSC status from a central location
- Summary
- 2. DSC Architecture
-
3. DSC Configuration Files
- Defining a DSC configuration script file
- Defining a DSC configuration data file
- Creating reusable DSC configurations
- Debugging and troubleshooting configuration script files
- Summary
-
4. DSC Resources
- What are DSC Resources?
- Creating a custom PowerShell v4 DSC Resource
- Creating a custom PowerShell v5 DSC Resource
- What makes a good DSC Resource
- Testing custom DSC Resources
- How do you find DSC Resources?
- Summary
- 5. Pushing DSC Configurations
-
6. Pulling DSC Configurations
- Creating DSC Pull Servers
- Validating a DSC Pull Server install
- Registering target nodes with a DSC Pull Server
- Pulling DSC configurations with a DSC Pull Server
- DSC Pull Server and target node status
- Summary
- 7. Example Scenarios
- Index
Product information
- Title: Learning PowerShell DSC
- Author(s):
- Release date: October 2015
- Publisher(s): Packt Publishing
- ISBN: 9781783980703
You might also like
book
Learning PowerShell DSC - Second Edition
A learning guide to get you started with PowerShell DSC. About This Book Create flexible and …
book
Pro PowerShell Desired State Configuration: An In-Depth Guide to Windows PowerShell DSC
Use Windows PowerShell Desired State Configuration (DSC) to configure your infrastructure on-premises and in the cloud. …
book
PowerShell in Depth, Second Edition
PowerShell in Depth, Second Edition is the go-to reference for administrators working with Windows PowerShell. Every …
video
Learning Windows PowerShell
In this Learning Windows PowerShell training course, expert author Mark Long will teach you how to …