Learning PowerShell DSC

 
 
Packt Publishing Limited
  • 1. Auflage
  • |
  • erschienen am 21. Oktober 2015
  • |
  • 268 Seiten
 
E-Book | ePUB mit Adobe DRM | Systemvoraussetzungen
978-1-78528-188-4 (ISBN)
 
Get started with the fundamentals of PowerShell DSC and utilize its power to automate deployment and configuration of your serversAbout This BookCreate flexible and maintainable deployments using DSC configuration scripts that stand the test of timeExplore the in depth details of the core architecture, concepts, and practices used by PowerShell DSCA step-by-step guide that shows you how to start using and taking advantage of PowerShell DSCWho This Book Is ForThis 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 LearnUnderstand configuration management and why you need itCraft flexible, reusable, and maintainable configuration scripts for thousands of serversCreate custom DSC resources to manage any application or server settingApply configuration data to deploy applications to different environmentsUtilize DSC push deployments to test your configuration scripts and custom DSC resourcesInstall, configure and use DSC pull serversRun a Windows MSI packageDeploy a websiteIn DetailWindows 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 approachThis 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.
  • Englisch
  • Birmingham
  • |
  • Großbritannien
978-1-78528-188-4 (9781785281884)
1785281887 (1785281887)
weitere Ausgaben werden ermittelt
James Pogran has been working with computers in some form or fashion for over 15 years. His first job was systems administration for a large military installation. He then moved on to develop monitoring software and automate large scale Windows environments for a major managed services provider. He is currently a software engineer at Puppet Labs where he helps to make Windows automation even better with Puppet.
  • Cover
  • Copyright
  • Credits
  • About the Author
  • About the Reviewers
  • www.PacktPub.com
  • Table of Contents
  • Preface
  • Chapter 1: Learning PowerShell DSC
  • What is PowerShell DSC?
  • What is PowerShell?
  • On to PowerShell DSC
  • Why do we need Configuration Management?
  • What is DevOps?
  • DSC quick wins
  • A high level overview of DSC
  • The authoring phase
  • The staging phase
  • The execution phase
  • Why all the abstraction?
  • How does DSC help me?
  • The who
  • The what
  • The how
  • Idempotence
  • Isn't this Group Policy or SCCM?
  • DSC features
  • DSC requirements
  • DSC versions
  • PowerShell v4 DSC
  • V4 DSC language extensions
  • V4 DSC base resources
  • V4 DSC Cmdlets
  • The V4 DSC Pull Server
  • 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
  • Chapter 2: DSC Architecture
  • Overview
  • Push and pull modes
  • The push management model
  • The pull management model
  • The general workflow
  • Authoring
  • Syntax
  • Compilation
  • Staging
  • Execution
  • Push executions
  • Pull executions
  • The example workflow
  • Configuration data
  • Hardcoded data
  • Parameter-based data
  • Hashtable data
  • Local Configuration Manager
  • LCM settings
  • Configuration modes
  • Refresh modes
  • The LCM configuration
  • An example LCM configuration
  • The DSC Pull Server
  • What is a DSC Pull Server?
  • What does the Pull Server do for us?
  • Automatic and continuous configuration
  • Repository
  • Reporting
  • Security
  • Setting up a DSC Pull Server
  • Pull Server settings
  • Installing the DSC server
  • Adding MOF files to a Pull Server
  • Adding DSC Resources to a Pull Server
  • Deployment considerations
  • General observations
  • LCM gotchas
  • Deployment mode differences
  • Summary
  • Chapter 3: DSC Configuration Files
  • Defining a DSC configuration script file
  • Authoring DSC configuration files
  • DSC automatic variables
  • AllNodes
  • Node
  • ConfigurationData
  • DSC Resource import declarations
  • Import-DscResource
  • The DSC script file syntax
  • The Configuration keyword
  • The Node keyword
  • DSC Resource statements
  • The script file example
  • Defining a DSC configuration data file
  • Authoring DSC configuration data files
  • Configuration data syntax
  • The variable syntax
  • The data file syntax
  • Allowable DSC configuration content
  • Creating reusable DSC configurations
  • Nested DSC configurations
  • Nested DSC configuration syntax
  • Nested DSC configuration limitations
  • DSC composite resources
  • Why use DSC composite resources?
  • The DSC composite resource syntax
  • DSC composite resource folder structure
  • DSC composite resource drawbacks
  • Debugging and troubleshooting configuration script files
  • Using DSC event logs
  • Enabling verbose logging
  • What do DSC event logs contain?
  • Gathering events from a single DSC operation
  • Using the xDscDiagnostics module to analyze DSC logs
  • Get-xDscOperation
  • Trace-xDscOperation
  • Resetting the DSC engine cache
  • Enabling the debug mode
  • Fixing a stuck DSC run
  • Summary
  • Chapter 4: DSC Resources
  • What are DSC Resources?
  • Creating a custom PowerShell v4 DSC Resource
  • The folder structure of a v4 DSC Resource
  • The syntax of a v4 DSC Resource
  • The DSC Resource definition file
  • The DSC PowerShell module file
  • Authoring custom DSC Resources
  • Creating DSC Resources manually
  • Creating DSC Resources automatically
  • Creating a custom PowerShell v5 DSC Resource
  • PowerShell classes
  • Class-based DSC Resources
  • The folder structure of v5 DSC Resources
  • The syntax of v5 DSC Resources
  • Declaring the class
  • Schema
  • Methods
  • The advantages of a class-based DSC Resource
  • The disadvantages of a class-based DSC Resource
  • What makes a good DSC Resource
  • Idempotent
  • Do one thing well
  • Reuse code, but don't go overboard
  • Contribute back!
  • Testing custom DSC Resources
  • Using xDscResourceDesigner
  • Pester
  • Microsoft recommendations
  • How do you find DSC Resources?
  • Microsoft DSC Resource Kits
  • Installing DSC Resource Kits
  • The Microsoft PowerShell DSC GitHub repository
  • Installing DSC Resources from GitHub
  • The Microsoft PowerShell Gallery
  • PackageManagement
  • Discover DSC Resources in the PowerShell Gallery
  • Installing DSC Resources in the PowerShell Gallery
  • Custom hosting options
  • Local SMB/network share
  • NuGet IIS
  • Third-party NuGet servers
  • Summary
  • Chapter 5: Pushing DSC Configurations
  • Tooling
  • Setting things up
  • Test environments
  • Locally pushing DSC configurations
  • Setting up the test environment locally
  • Compiling configurations for local target nodes
  • Executing configurations for local target nodes
  • Remotely pushing DSC configurations
  • Setting up the test environment remotely
  • Compiling configurations for remote target nodes
  • Executing configurations for remote target nodes
  • Things you must consider when pushing DSC configurations
  • Summary
  • Chapter 6: Pulling DSC Configurations
  • Creating DSC Pull Servers
  • DSC Pull Server setup considerations
  • DSC Pull Server types
  • The Windows Management Framework version
  • Initial setup tasks
  • Installing required DSC Resources
  • SSL certificates
  • SMB share creation
  • Preparing DSC Resources for Pull Server distribution
  • Miscellaneous tasks
  • Creating a WMF 4 DSC Pull Server
  • Creating a WMF 5 DSC Pull Server
  • Validating a DSC Pull Server install
  • Testing using a web browser
  • Testing using the command line
  • Registering target nodes with a DSC Pull Server
  • Registering a WMF 4 target node
  • Registering a WMF 5 target N=node
  • Pulling DSC configurations with a DSC Pull Server
  • Pulling DSC configurations using ConfigurationIDs
  • Pulling DSC configurations using RegistrationKeys
  • DSC Pull Server and target node status
  • Checking the current LCM configuration status
  • Triggering a DSC configuration to run on a target node
  • Triggering a WMF 4 target node
  • Triggering a WMF 5 target node
  • Using DSC logging to check on the status
  • Reporting on the target node status
  • Reporting on the target node status with the DSC Pull Server
  • Summary
  • Chapter 7: Example Scenarios
  • Real life DSC usage
  • Setting up a common installation base
  • Installing software
  • A configuration management refresher
  • Complicated deployments
  • Handling change
  • Summary
  • Index

Dateiformat: EPUB
Kopierschutz: Adobe-DRM (Digital Rights Management)

Systemvoraussetzungen:

Computer (Windows; MacOS X; Linux): Installieren Sie bereits vor dem Download die kostenlose Software Adobe Digital Editions (siehe E-Book Hilfe).

Tablet/Smartphone (Android; iOS): Installieren Sie bereits vor dem Download die kostenlose App Adobe Digital Editions (siehe E-Book Hilfe).

E-Book-Reader: Bookeen, Kobo, Pocketbook, Sony, Tolino u.v.a.m. (nicht Kindle)

Das Dateiformat EPUB ist sehr gut für Romane und Sachbücher geeignet - also für "fließenden" Text ohne komplexes Layout. Bei E-Readern oder Smartphones passt sich der Zeilen- und Seitenumbruch automatisch den kleinen Displays an. Mit Adobe-DRM wird hier ein "harter" Kopierschutz verwendet. Wenn die notwendigen Voraussetzungen nicht vorliegen, können Sie das E-Book leider nicht öffnen. Daher müssen Sie bereits vor dem Download Ihre Lese-Hardware vorbereiten.

Weitere Informationen finden Sie in unserer E-Book Hilfe.


Download (sofort verfügbar)

40,53 €
inkl. 19% MwSt.
Download / Einzel-Lizenz
ePUB mit Adobe DRM
siehe Systemvoraussetzungen
E-Book bestellen

Unsere Web-Seiten verwenden Cookies. Mit der Nutzung dieser Web-Seiten erklären Sie sich damit einverstanden. Mehr Informationen finden Sie in unserem Datenschutzhinweis. Ok