configuration management
play

Configuration Management A True Life Story October 16, 2018 Page 1 - PowerPoint PPT Presentation

Configuration Management A True Life Story October 16, 2018 Page 1 | Configuration Management: A True Life Story John E. Picozzi Senior Drupal Architect Drupal Providence 401-228-7660 oomphinc.com 72 Clifford Street, oomph.is/jpicozzi


  1. Configuration Management A True Life Story October 16, 2018 Page 1 | Configuration Management: A True Life Story

  2. John E. Picozzi Senior Drupal Architect Drupal Providence 401-228-7660 oomphinc.com 72 Clifford Street, oomph.is/jpicozzi Providence, RI 02903 jpicozzi@oomphinc.com Page 2 | Configuration Management: A True Life Story

  3. Nathan Dentzau Senior Web Engineer @nathandentzau /nathandentzau Drupal Providence 401-228-7660 oomphinc.com 72 Clifford Street, oomph.is/ndentzau Providence, RI 02903 nate@oomphinc.com Page 3 | Configuration Management: A True Life Story

  4. What is configuration? September 1, 2016 Page 4 | Configuration Management: A True Life Story

  5. ” In Drupal, configuration is the collection of admin settings that determine how the site functions, as opposed to the content of the site. https://www.drupal.org/docs/8/configuration-management Page 5 | Configuration Management: A True Life Story

  6. Configuration vs. Content Configuration Content Content types Nodes Taxonomy vocabulary Taxonomy terms Menus Menu links Blocks Block content Media types Media Page 6 | Configuration Management: A True Life Story

  7. Other types of configuration ● Fields ● Language settings ● Views ● System settings ● Display modes ● User roles ● Image styles ● Module settings Page 7 | Configuration Management: A True Life Story

  8. Where is configuration stored? Page 8 | Configuration Management: A True Life Story

  9. Configuration Storage: Database ● Active configuration ● Stored in a relational database Changes applied immediately ● ● Benefits: ○ Performance ○ Security Page 9 | Configuration Management: A True Life Story

  10. Configuration Storage: Filesystem ● Staged configuration ● Stored on the filesystem as YAML files Changes applied by export or import ● ● Benefits: ○ Portability ○ Security Page 10 | Configuration Management: A True Life Story

  11. Configuration Manager September 1, 2016 Page 11 | Configuration Management: A True Life Story

  12. Configuration Manager ● Core module ● Import and export a single set of configuration to the filesystem ○ User Interface ○ Drush ● Install configuration from modules, profiles and themes ○ Required config ○ Optional config Page 12 | Configuration Management: A True Life Story

  13. View Differences Page 13 | Configuration Management: A True Life Story

  14. Configuration Manager: Workflow The Configuration Management module offers a linear workflow where each environment shares the same set of configuration. COMMON LOCAL DEV STAGE PROD CONFIG Page 14 | Configuration Management: A True Life Story

  15. Configuration Split September 1, 2016 Page 15 | Configuration Management: A True Life Story

  16. Configuration Split: Workflow The Configuration Split module offers a distributed workflow where each environment has an independent set of configuration built on top of a common config. COMMON CONFIG LOCAL DEV STAGE PROD Page 16 | Configuration Management: A True Life Story

  17. Configuration Split ● Contributed module ● Import and export multiple sets (splits) of configuration to the filesystem ○ User Interface ○ Drush ● Enable/disable modules or themes for different environments ● Store different configuration values for different environments ○ Complete Split / Blacklist ○ Conditional Split / Graylist Page 17 | Configuration Management: A True Life Story

  18. Why is config split helpful? Page 18 | Configuration Management: A True Life Story

  19. Complete Split Page 19 | Configuration Management: A True Life Story

  20. Conditional Split Page 20 | Configuration Management: A True Life Story

  21. Configuration Readonly September 1, 2016 Page 21 | Configuration Management: A True Life Story

  22. Configuration Readonly ● Contributed module ● Prevents administrators from editing active configuration through the User Interface ● Module can be enabled per environment with Configuration Split ● Warning: Have a solid continuous integration pipeline and testing procedures in place before enabling in a production environment. Page 22 | Configuration Management: A True Life Story

  23. Configuration Installer September 1, 2016 Page 23 | Configuration Management: A True Life Story

  24. Configuration Installer ● Contributed install profile ● Install a new instance of Drupal from an existing set of configuration ● Note: Not compatible with Configuration Split. Manually importing configuration after install works Page 24 | Configuration Management: A True Life Story

  25. Configuration & Continuous Integration September 1, 2016 Page 25 | Configuration Management: A True Life Story

  26. What is Continuous Integration? Repository The process of automating the build ● and testing of code in a shared code repository Developers can focus on code and less ● Test / Build Code on environment management Developers can confidently merge in ● code changes to a project while working on a team Website Page 26 | Configuration Management: A True Life Story

  27. Continuous Integration: Code Developers can use the Configuration ● Manager module to export Drupal configuration to version control and easily share configuration changes with other team members Developers can use the Configuration Split ● module to test configuration changes locally for different environments Code syntax validators can be executed with ● git hooks or manual invocation locally Page 27 | Configuration Management: A True Life Story

  28. Continuous Integration: Repository Developers push and pull code from a ● central code repository like Github Pull requests are created by the developer ● making the change and reviewed by other team members Automated build and tests are triggered ● when new commits are pushed Results are posted in the pull request and ● prevent developers from merging changes until tests pass Page 28 | Configuration Management: A True Life Story

  29. Continuous Integration: Test / Build Continuous integration services like ● Travis-CI can run code syntax validators, automated tests, and deployments in a CI pipeline The Configuration Installer profile can be ● used to install a new instance of Drupal testing the validity of configuration changes and to run automated functional tests If a failure occurs in any step in the pipeline, ● the build is halted Page 29 | Configuration Management: A True Life Story

  30. Continuous Integration: Website Importing configuration changes, ● database updates and entity updates handled automatically during the deployment process Developers can enable the ● Configuration Readonly module in Production Improved site reliability and uptime ● Page 30 | Configuration Management: A True Life Story

  31. Thank You! Thank you for listening. If you have any questions feel free to contact us. @nathandentzau /nathandentzau /u/johnpicozzi @JohnPicozzi /in/johnpicozzi 401-228-7660 oomph.is/jpicozzi Oomphinc.com jpicozzi@oomphinc.com @oomphinc

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend