Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Management Zabbix with Terraform

246 views

Published on

I will present Terraform, a tool that allows you to manage the infrastructure as a code. We will know the characteristics, features, history and paradigm shift. Two cases of use of Terraform will be demonstrated: How to manage the installation of Zabbix with Docker containers and how to interact with the Zabbix API.

Published in: Technology
  • Be the first to comment

  • Be the first to like this

Management Zabbix with Terraform

  1. 1. Managing with Aécio Pires
  2. 2. 2 Aboutme... http://aeciopires.com ● Support Analyst ● Master Studant in Information Technology – IFPB ● Information Security Specialist - iDEZ ● Technologist in Computer Networks - IFPB Book’s Author:
  3. 3. Theculture Talk: A relação entre o ágil e o DevOps Marcell Castelo Branco https://www.youtube.com/watch?v=XrRrc37lUzk Talk: O poder da abstração: desafios técnicos e culturais do “Ops” para o DevOps Daniel Requena https://t.co/soyugYTeC3 3
  4. 4. Changingtheparadigm 4
  5. 5. Viewingyourinfra Fromthephysicalpointofview 5
  6. 6. Viewingyourinfra Fromthelogicalpointofview 6 Reference: http://www.outsourceworkgroup.com/index.php/en/managed-it-service/infrastructure-management
  7. 7. Viewingyourinfra SomeIaaSthatabstract 7
  8. 8. Viewingyourinfra Sometoolsthatabstract 8Reference: https://www.thorntech.com/2018/04/15-infrastructure-as-code-tools
  9. 9. Infrastructure asCode 9
  10. 10. 10 Infra as Code - IaC Uses techniques, practices, and tools from the software development world, this allows actions to be properly tested before they are applied in production.
  11. 11. 11 Infra as Code - IaC So we can think of versioning, continuous integration, refactoring, pair programming and other techniques to develop our infra.
  12. 12. 12
  13. 13. 13 Whatis ? It is a tool that manages the infrastructure as code provisioning a complete environment for an application to work, whether in a cloud, LAN, conteiner or desktop. It is not a configuration management tool ...
  14. 14. 14 It is not a configuration management tool ... Refence: https://goo.gl/nC4fgY
  15. 15. enable... 15 ● Plan, ● Build, ● Expose, ● Modify, ● Apply versioning, ● Delete, ● Manage an infrastructure (from components needed to run an application to a datacenter). ● Can manage IaaS, SaaS, storage, network devices, DNS entries and more...
  16. 16. 16 History
  17. 17. History 17 ● First release publised in 2014. ● Current version: 0.11.13 ● Open Source: https://github.com/hashicorp/terraform ● Written in Go https://en.wikipedia.org/wiki/Terraform_(software) ● Created by Mitchell Hashimoto and maintained by https://www.hashicorp.com ● License: Mozilla Public 2.0
  18. 18. Features 18 ● Support to: Windows, Linux, MacOS, Solaris, FreeBSD, OpenBSD. ● More of 125 providers: https://www.terraform.io/docs/providers/index.html https://www.terraform.io/docs/providers/type/community-index.html ● Available in version Open Source and Enterprise ● Integration with provisioners: Puppet, Ansible, SaltStack, Cheff, Shell Script… https://www.terraform.io/docs/provisioners/index.html
  19. 19. 19 Community
  20. 20. Support&Documentation 20 ● Support Enterprise: https://support.hashicorp.com/hc/en-us ● Community: https://groups.google.com/forum/#!forum/terraform-tool https://www.terraform.io/docs/extend/community/index.html ● Documentation: https://www.terraform.io/docs ● Books: https://www.oreilly.com/library/view/terraform-up-and/9781491977071/ https://www.oreilly.com/library/view/getting-started-with/9781788623537/ https://www.oreilly.com/library/view/the-terraform-book/9780988820258/ https://www.oreilly.com/library/view/getting-started-with/9781786465108/
  21. 21. 21 Sowhatdoesthathavetodo withZabbix?
  22. 22. ProvisioningandmanagingmultipleZabbixServers ascode 22 “MoreScalabilityandProductivity Fromzerotoproduction”
  23. 23. Demonstration 23
  24. 24. Demonstration 24 http://blog.aeciopires.com/conhecendo-o-terraform https://github.com/aeciopires/terraform/tree/master/docker-zabbix Server Web Agent 1 2 3 4 5 6
  25. 25. Demonstration 25 7 API 8 9 +
  26. 26. Pros&Cons 26 ● Productivity ● Efficiency ● Scalability ● Quality standard ● Integration with configuration management tools and scripts ● Versioning ● Rollback ● Documentation as Code ● Backup ● Continuous Integration ● Continuous Delivery ● Continuous Deployment In the free version of Terraform: ● No web interface ● No reporting chart, PDF, CSV... ● No visual effects ● No notifications ● Does not monitor infrastructure events
  27. 27. Futureworks 27
  28. 28. Futureworks 28 ● Zabbix Configuration as a Code in YAML files (ZCasC) (Alexey - Zabbix SIA??!!) ●https://support.zabbix.com/browse/ZBXNEXT-4863 ●https://support.zabbix.com/browse/ZBXNEXT-4862 ●https://gitlab.com/devopshq/zabbix-review-export ● Community Initiative: Terraform zabbix provider ●https://github.com/dainis/terraform-provider-zabbix ● Create a web interface free for reports, dashboards, notifications, alternative to Terraform Enterprise.
  29. 29. ScreenshotsZcasC(YAMLfiles) 29
  30. 30. References 30 ● Hashicorp Terraform https://goo.gl/UyGCTx https://goo.gl/keWFrD ● Mario J. Inga Cahuana - Infrastructure as Code with Terraform https://www.slideshare.net/mario21ic/infrastructure-as-code-with-terraform-74279471 ● Martin Schütte - Terraform: Infrastructure as Code https://www.slideshare.net/mschuett/terraform-infrastructure-as-code-78992829 ● Payam Moghaddam- State Drift Detection using Terraform https://goo.gl/QRBhtE ● Terraform - https://www.terraform.io/intro/index.html ● Yevgeniy Brikman - Why we use Terraform and not Chef, Puppet, Ansible, SaltStack, or CloudFormation https://goo.gl/wxH3pu

×