Cargando…

Extending SaltStack.

Extend the power of your infrastructure and applications with Salt modulesAbout 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 probl...

Descripción completa

Detalles Bibliográficos
Clasificación:Libro Electrónico
Autor principal: Hall, Joseph (Autor)
Formato: Electrónico eBook
Idioma:Inglés
Publicado: Birmingham : Packt Publishing, Limited March 2016.
Temas:
Acceso en línea:Texto completo

MARC

LEADER 00000cam a2200000 4500
001 EBOOKCENTRAL_ocn951668847
003 OCoLC
005 20240329122006.0
006 m o d
007 cr |n|||||||||
008 160328e20160322enk o 000 0 eng d
040 |a COO  |b eng  |e pn  |c COO  |d EBLCP  |d HEBIS  |d VT2  |d OCLCO  |d OCLCF  |d DEBBG  |d FEM  |d IDB  |d OCLCQ  |d MERUC  |d OCLCQ  |d LVT  |d UKAHL  |d OCLCQ  |d UKMGB  |d OCLCO  |d K6U  |d OCLCQ  |d OCLCO  |d OCLCL 
015 |a GBB650141  |2 bnb 
016 7 |a 017798714  |2 Uk 
019 |a 968017079  |a 969033238 
020 |a 9781785888618 
020 |a 1785888617  |q (Trade Paper) 
020 |a 9781785888168 
020 |a 1785888161 
024 3 |a 9781785888618 
029 1 |a AU@  |b 000067111566 
029 1 |a AU@  |b 000072393230 
029 1 |a CHNEW  |b 000884529 
029 1 |a CHVBK  |b 374432295 
029 1 |a DEBBG  |b BV043893452 
029 1 |a UKMGB  |b 017798714 
035 |a (OCoLC)951668847  |z (OCoLC)968017079  |z (OCoLC)969033238 
037 |b 01201872 
050 4 |a TK5105.548 
082 0 4 |a 005.4 
049 |a UAMI 
100 1 |a Hall, Joseph,  |e author. 
245 1 0 |a Extending SaltStack. 
260 |a Birmingham :  |b Packt Publishing, Limited  |c March 2016. 
300 |a 1 online resource 
336 |a text  |b txt  |2 rdacontent 
337 |a computer  |b c  |2 rdamedia 
338 |a online resource  |b cr  |2 rdacarrier 
347 |a text file 
520 8 |a Extend the power of your infrastructure and applications with Salt modulesAbout 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 workWho This Book Is ForThis 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 applicationsIn DetailSalt 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 approachThis book follows a step-by-step tutorial-based approach explaining the different types of modules, from fundamentals to complete and full-functioning modules. 
505 0 |a Cover -- Copyright -- Credits -- Foreword -- About the Author -- About the Reviewer -- www.PacktPub.com -- Table of Contents -- Preface -- Chapter 1: Starting with the Basics -- Using plugins -- Loading modules -- Standard modules -- Virtual modules -- Lazy loading modules -- Extending the loader system -- Loading modules with Python -- Detecting grains -- Using other detection methods -- Summary -- Chapter 2: Writing Execution Modules -- Writing Salt modules -- Hidden objects -- The __virtual__() function -- Formatting your code -- Virtual modules -- Using the salt.utils library -- Cross-calling with the __salt__ dictionary -- Getting configuration parameters -- Handling imports -- Reusing code -- Logging messages -- Using the __func_alias__ dictionary -- Validating data -- Formatting strings -- The final module -- Troubleshooting execution modules -- Using salt-call -- is not available -- Summary -- Chapter 3: Extending Salt Configuration -- Setting grains dynamically -- Setting some basic grains -- (Not) cross-calling execution modules -- The final grains module -- Creating external pillars -- Configuring external pillars -- Adding an external pillar -- Another external pillar -- Troubleshooting grains and pillars -- Dynamic grains not showing up -- External pillars not showing up -- Writing SDB modules -- Getting SDB data -- Setting SDB data -- Using a descriptive docstring -- Using more complex configuration -- The final SDB module -- Using SDB modules -- Troubleshooting SDB modules -- SDB data not showing up -- Summary -- Chapter 4: Wrapping States Around Execution Modules -- Forming a state module -- Determining state -- The __virtual__() function -- Setting up defaults -- Checking for truth -- Checking for test mode -- Attempting to configure the resource -- Notifying about False -- Example: checking an HTTP service. 
505 8 |a Checking credentials -- The first stateful function -- Another stateful function -- Troubleshooting state modules -- Step 1: test for truth -- Step 2: test mode -- Step 3: applying changes -- Testing opposites -- Summary -- Chapter 5: Rendering Data -- Understanding file formats -- Serializing data -- Working with templates -- Using render pipes -- Building a serializing renderer -- The basic structure -- Building a templating renderer -- Templating with Tenjin -- Using a templating renderer -- Troubleshooting renderers -- Summary -- Chapter 6: Handling Return Data -- Returning data to external destinations -- Returning data to the master -- Listening to event data -- When returners listen to Minions -- Your first returner -- Using job caches -- The final module -- Troubleshooting returners -- Testing with salt-call -- Testing with the Master running -- Testing with runners -- Writing outputter modules -- Pickling our output -- Troubleshooting outputters -- Summary -- Chapter 7: Scripting with Runners -- Using Salt's local client -- Scripting with the local client -- Using different targets -- Combining jobs to add more logic -- The final module -- Troubleshooting runners -- Working with the salt-master service -- Timeout issues -- Summary -- Chapter 8: Adding External File Servers -- How Salt uses files -- Mimicking a filesystem -- Looking at each function -- Setting up our module -- envs() -- file_list() and dir_list() -- find_file() -- serve_file() -- update() -- file_hash() -- The final module -- Troubleshooting file servers -- Start small -- Test on a Minion -- Summary -- Chapter 9: Connecting to the Cloud -- Understanding cloud components -- Looking at the puzzle pieces -- Connection mechanism -- Listing resources -- Creating virtual machines -- Managing other resources -- Libcloud versus SDK versus direct REST API. 
505 8 |a Writing a generic cloud module -- Checking for required configuration -- Using http.query() -- A common REST API -- GET -- POST -- PATCH -- DELETE -- Setting up a _query() function -- Getting profile details -- Listing images -- Listing sizes -- Listing locations -- Listing nodes -- Querying standard node data -- Querying full node data -- Creating a VM -- Destroying VMs -- Using actions and functions -- Using actions -- Using functions -- The final cloud module -- Troubleshooting cloud modules -- Write avail_sizes() or avail_images() first -- Use shortcuts -- Summary -- Chapter 10: Monitoring with Beacons -- Watching for data -- Keeping an eye on things -- Validating configuration -- The beacon() function -- Watching for beacons -- The final beacon module -- Troubleshooting beacons -- Summary -- Chapter 11: Extending the Master -- Using external authentication -- Authenticating credentials -- Troubleshooting external authentication -- Setting auth parameters -- Testing with the salt command -- Testing with Salt API -- Managing the Master with the wheel modules -- Wrapping a wheel around runners -- The final wheel module -- Troubleshooting wheel modules -- Summary -- Appendix A : Connecting Different Modules -- Separating Master and Minion functionality -- Working with dunders -- Using the event bus -- Firing events -- Appendix B: Contributing Code Upstream -- How the community works -- Asking questions and reporting issues -- Using the mailing list -- Using IRC -- Using the issue tracker -- Using GitHub markdown -- Understanding the Salt Style Guide -- Using Pylint -- Creating pull requests on GitHub -- Using other branches -- Understanding test errors in pull requests -- Index -- Untitled. 
590 |a ProQuest Ebook Central  |b Ebook Central Academic Complete 
650 0 |a Open source software. 
650 6 |a Logiciels libres. 
650 7 |a Open source software  |2 fast 
655 4 |a System Administration; Online Services; Programming Languages. 
758 |i has work:  |a Extending SaltStack (Text)  |1 https://id.oclc.org/worldcat/entity/E39PD3pqGQGk94xDDbWJfhpK8d  |4 https://id.oclc.org/worldcat/ontology/hasWork 
776 0 8 |i Erscheint auch als:  |n Druck-Ausgabe  |t Hall, Joseph. Extending SaltStack 
856 4 0 |u https://ebookcentral.uam.elogim.com/lib/uam-ebooks/detail.action?docID=4520687  |z Texto completo 
936 |a BATCHLOAD 
938 |a Askews and Holts Library Services  |b ASKH  |n AH30485905 
938 |a ProQuest Ebook Central  |b EBLB  |n EBL4520687 
994 |a 92  |b IZTAP