Se ha denunciado esta presentación.
Utilizamos tu perfil de LinkedIn y tus datos de actividad para personalizar los anuncios y mostrarte publicidad más relevante. Puedes cambiar tus preferencias de publicidad en cualquier momento.
© 2016, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Dario Rivera
Senior Solutions Architect
Announci...
What to expect from this session?
Understand how configuration management lets you refer
to your infrastructure as code
Un...
Background
Moving to the cloud and AWS allows you to provision and
manage infrastructure in new ways:
• Scale can be achie...
What is configuration management?
A practice in which code is used to define and maintain the
state of both new and existi...
Why do I need configuration management?
• Store your configuration information in one place
• Spin up blank resources that...
Compute Resources
Operating System and
Host Configuration
Application Configuration
Amazon Elastic Compute
Cloud (EC2)
On-...
Infrastructure needs ongoing management
• Package updates?
• New software?
• New configurations?
• New app deployments?
• ...
Ongoing management requires proper tooling
Some common challenges:
• Changing a vhost configuration on every web server ac...
What is Chef Automate?
• Refer to your infrastructure as code (cookbooks & recipes)
• Consistently install, configure, man...
How does it work?
• Simple client-server
architecture
• Connecting resources to a
Chef server
• Resources pull
configurati...
How can you set this up?
1. Setup the Chef server with cookbooks, recipes roles.
2. Install the Chef client on the instanc...
How does it look like?
• The Chef client pulls
configuration updates from the
Chef server every 30 minutes.
• The Chef cli...
Support for community tools
• ChefDK
• Knife
• Chef Client
• Community cookbooks and recipes
• TestKitchen
Chef recipe example – configure Apache
# Install Apache and start the service.
httpd_service ‘default' do
listen_ports ['8...
Chef recipe example – configure Apache
# Create the document root directory.
directory '/var/www/default/public_html' do
r...
Chef recipe example – configure PHP
# Install the mod_php5 Apache module.
httpd_module 'php5' do
instance ‘default'
end
# ...
Get visibility into the state of your nodes
Visibility – A view into convergence, compliance, cookbooks, recipes and more.
Not only a Configuration Management tool
Workflow – A continuous delivery pipeline of infrastructure and applications.
Not only a Configuration Management tool
Compliance - Discovery and analysis of compliance risks across environments
AWS OpsWorks
for Chef Automate
What is AWS OpsWorks for Chef Automate?
The place you go to for configuration management on AWS
Offers a fully managed Che...
How can I create an AWS managed Chef server?
Easy to get started, get a Chef Automate server in 10 minutes.
What else can I set up?
Setup a weekly maintenance window
• Automatic security updates
• Automatic Chef version upgrades
What else can I set up?
Setup a daily/weekly backup schedule
What else is left for me to do?
Nothing, this is a fully managed configuration management
service:
• Automatic backups
• A...
What other benefits do I get from the service?
• Automatic instance to Chef server registration
• Secure and easy scaling ...
Where does it come in the tool chain?
• Bootstrap instances with the right configuration
• Update the configuration of run...
Live Demo
How do I get started?
 Grab some community cookbooks
https://supermarket.chef.io/
 Learn more
https://www.chef.io/automa...
Thank you!
Introduction to OpsWorks for Chef Automate
Próxima SlideShare
Cargando en…5
×

Introduction to OpsWorks for Chef Automate

226 visualizaciones

Publicado el

by Dario Rivera, Solutions Architect, AWS

  • Sé el primero en comentar

  • Sé el primero en recomendar esto

Introduction to OpsWorks for Chef Automate

  1. 1. © 2016, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Dario Rivera Senior Solutions Architect Announcing AWS OpsWorks for Chef Automate Configuration Management on AWS
  2. 2. What to expect from this session? Understand how configuration management lets you refer to your infrastructure as code Understand how AWS can help you use configuration management to save time Discover the best practices of setting up your infrastructure, host configuration, and application
  3. 3. Background Moving to the cloud and AWS allows you to provision and manage infrastructure in new ways: • Scale can be achieved without complicated capacity planning • Infrastructure can be provisioned in minutes • You are now a part of a fast moving environment that requires constant attention
  4. 4. What is configuration management? A practice in which code is used to define and maintain the state of both new and existing resources throughout their entire life cycle.
  5. 5. Why do I need configuration management? • Store your configuration information in one place • Spin up blank resources that work perfectly every time • Make changes things in a single place and propagate them • Create dev and test environments that mimic your production
  6. 6. Compute Resources Operating System and Host Configuration Application Configuration Amazon Elastic Compute Cloud (EC2) On-premises compute resources (Servers) … Files Directories Networking Symlinks Mounts Registry Key Users Groups Packages Filesystems … Application dependencies Application configuration Service registration Credentials …
  7. 7. Infrastructure needs ongoing management • Package updates? • New software? • New configurations? • New app deployments? • Environment specific changes? • Run commands across all hosts? • Be on top of all running resources?
  8. 8. Ongoing management requires proper tooling Some common challenges: • Changing a vhost configuration on every web server across multiple environments (dev, stage, prod) • Installing a package on certain hosts to test out newer versions • Changing LDAP config on every running Amazon EC2 Linux host What tools can I use to tackle some of these challenges?
  9. 9. What is Chef Automate? • Refer to your infrastructure as code (cookbooks & recipes) • Consistently install, configure, manage, deploy and scale applications • Align resources with specific policies • Save time by automating manual tasks
  10. 10. How does it work? • Simple client-server architecture • Connecting resources to a Chef server • Resources pull configuration updates from the Chef server Config A Config B
  11. 11. How can you set this up? 1. Setup the Chef server with cookbooks, recipes roles. 2. Install the Chef client on the instance (or server). 3. Register the instance with the Chef server as a Chef node. 4. Assign node with a role (e.g. web server, app server, db server). 5. The Chef client pulls the recipes from Chef server (based on role). 6. The Chef server determines the applicable recipes (by role). 7. The Chef client applies the recipes on the node by doing a “Chef run”. 8. The Chef client pulls the Chef server every 30 minutes.
  12. 12. How does it look like? • The Chef client pulls configuration updates from the Chef server every 30 minutes. • The Chef client will only make configuration changes when the node is out of spec. • The Chef client can react to changes using by using Chef search.
  13. 13. Support for community tools • ChefDK • Knife • Chef Client • Community cookbooks and recipes • TestKitchen
  14. 14. Chef recipe example – configure Apache # Install Apache and start the service. httpd_service ‘default' do listen_ports ['81', '82'] threadlimit '4096' action [:create, :start] end # Add the site configuration. httpd_config ‘default' do instance ‘default' source ‘mysite.conf.erb' notifies :restart, 'httpd_service[default]' end .....
  15. 15. Chef recipe example – configure Apache # Create the document root directory. directory '/var/www/default/public_html' do recursive true end # Write the home page. file '/var/www/default/public_html/index.html' do content '<html>This is a placeholder</html>' mode '0644' owner 'web_admin' group 'web_admin' end .....
  16. 16. Chef recipe example – configure PHP # Install the mod_php5 Apache module. httpd_module 'php5' do instance ‘default' end # Install php5-mysql. package 'php5-mysql' do action :install notifies :restart, 'httpd_service[default]' end
  17. 17. Get visibility into the state of your nodes Visibility – A view into convergence, compliance, cookbooks, recipes and more.
  18. 18. Not only a Configuration Management tool Workflow – A continuous delivery pipeline of infrastructure and applications.
  19. 19. Not only a Configuration Management tool Compliance - Discovery and analysis of compliance risks across environments
  20. 20. AWS OpsWorks for Chef Automate
  21. 21. What is AWS OpsWorks for Chef Automate? The place you go to for configuration management on AWS Offers a fully managed Chef Automate server OpsWorks
  22. 22. How can I create an AWS managed Chef server? Easy to get started, get a Chef Automate server in 10 minutes.
  23. 23. What else can I set up? Setup a weekly maintenance window • Automatic security updates • Automatic Chef version upgrades
  24. 24. What else can I set up? Setup a daily/weekly backup schedule
  25. 25. What else is left for me to do? Nothing, this is a fully managed configuration management service: • Automatic backups • Automatic security updates • Automatic Chef software updates You can focus on writing cookbooks and recipes that meet your needs.
  26. 26. What other benefits do I get from the service? • Automatic instance to Chef server registration • Secure and easy scaling using Auto Scaling Groups • No separate license fees, only pay for what you use • Supports both Amazon EC2 and on-prem resources • Best practices, AWS support and guidance
  27. 27. Where does it come in the tool chain? • Bootstrap instances with the right configuration • Update the configuration of running instances • Assure instances comply with a pre-defined policy • A part of your Continues Integration and Continues Delivery pipeline
  28. 28. Live Demo
  29. 29. How do I get started?  Grab some community cookbooks https://supermarket.chef.io/  Learn more https://www.chef.io/automate/ Get started https://aws.amazon.com/opsworks/
  30. 30. Thank you!

×