View
111
Download
0
Category
Preview:
DESCRIPTION
A Microsoft está dando muita importância e reconhecimento para as iniciativas OpenSource, um dos pontos que podemos salientar que colabora com essa afirmação é a quantidade de produtos OpenSource ofertados na plataforma de nuvem da Microsoft assim como a criação de uma subsidiária MSOpenTech e de uma fundação de Software livre que nasceu no Build recebendo o seu primeiro projeto o Roslyn compilador C# escrito em C#. Aproveitando o momento que vivemos de movimentação para a nuvem pública e DevOps, apresento as dificuldades de implementação e algumas soluções OpenSource de DevOps.
Citation preview
Sim, a Microsoft usa Open Source em DevOpsVinícius SouzaTechnical Evangelist@vbs_br
Traditional Development and Operations
DEV OPS
Resolving issues without DevOps
Operations gets notified of application problem.
Customer finds problem with your application.DEV OPS
There is no problem with my code, you’re either deploying wrong or there is a problem with your infrastructure.
Infrastructure looks good, must be a code problem.
What some businesses do
NEW “DEVOPS” GUY
DevOps: the three stage conversation
3 Products2 Process1 People
OPSDEV
The three ways
THE FIRST WAY
Flow/systems thinking
THE SECOND WAY
Feedback/amplify feedback loops
THE THIRD WAY
Continual experimentation and learning
(Business) (Customer)
DevOps benefits
Source: https://puppetlabs.com/
Key findings:Organizations that implemented DevOps reported:
Improved quality of software deploymentsHigh performance and reliability
Ship code 30x fasterand complete those deployments 8,000 times faster than their peers.
Have 50% fewer failuresand restore service 12 times faster than their peers.
TOP 5 TOOLS USED TO SUPPORT DEVOPS INITIATIVES
VERSION CONTROL SYSTEMS84%
CONFIGURATION MANAGEMENT 78%
TICKETING SYSTEM 68%
RESOURCE MONITORING 60%
PROVISIONING 56%
ORGANIZATIONS THAT HAVE IMPLEMENTED DEVOPS SAW THESE BENEFITS:
IMPROVED QUALITY OF SOFTWARE DEPLOYMENTS 65%
MORE FREQUENT SOFTWARE RELEASES 63%
IMPROVED VISIBILITY INTO ITPROCESS AND REQUIREMENTS
61%
CULTURAL CHANGECOLLABORATION/COOPERATION
55%
MORE RESPONSIVENESS TO BUSINESS NEEDS
55%
MORE AGILE DEVELOPMENT 51%
MORE AGILE CHANGE MANAGEMENT PROCESS
45%
IMPROVED QUALITY OF CODE 38%
Source Build
Test/issues Deployment Application
Operations
Process tools
ALM framework
Cloud
On-premises
Source Build
Test/issues Deploy App
Ops
Process tools
Open source ecosystemGitHubCodeplex
Selenium
GradleGrunt
HudsonJenkins
Configuration
Gradle
Chef
Grunt
Hudson
Travis
Jenkins
Puppet Labs
Vagrant
Fog
Alerting
Monitor
CactiZabbix
Redmine JIRA
Public Cloud
On-premises
Microsoft Azure
Linux
Puppet Labs Eclipse
VisualStudio
Linguagens
CMS
Dispositivos
Bancosde Dados
Sistemas Operacionais
Microsoft Azure
Virtual Machine management
Puppet on Azure - Architecture1. The Puppet agent process
collects information about the host it is running on, which it passes to the server.
2. The parser uses that system information and Puppet modules on local disk to compile a configuration for that particular host and returns it to the agent.
3. The agent applies that configuration locally, thus affecting the local state of the host, and files the resulting report with the server.
Build
PLA
ND
EV
ELO
P
Source
Test/Issues Deployment Application
Operations
CI & CD with Puppet + Azure VM OPERATE OPER
AT
ERELEASE RELE
AS
E
JenkinsSQL
DB
Puppet
Labs
Puppet Master
VM
cspkg
Chef and Windows Timeline
• May 2011 – Knife plugin for Windows announced
• Oct 2011 – PowerShell, IIS, SQL Server, and Windows cookbooks
• Dec 2011 – Chef Client Installer MSI for Microsoft Windows
• Feb 2012 – Integration of the registry_key resource into core Chef from the Windows cookbook
• Aug 2013 – Chef 11.6.0 release. PowerShell and Batch scripting integrated into core Chef. Chef Client released as Windows service
• Feb 2014 – knife Azure release 1.2.2
Why Chef on Azure
• Chef Community - community.opscode.com– +25,000 registered users– 1,300 individual contributors– 200 corporate contributors– 900 cookbooks
• Support for on-Premise Windows and Windows Azure in the Cloud
Chef on Azure - Architecture
• Github – knife-azure• Chef Server - .pem files
and Cookbooks• Windows Azure –
endorsed Linux packages
• New VM – loads workstation
• New workstation – loads client and recipes
Overview of Chef Resources on Windows
Same as UNIX/Linux• file, remote_file, cookbook_file, template
• directory, remote_directory
• user, group
• mount (can take CIFS paths)
• env
• service
• execute
• ruby_block
• many others...
Unique to Windows
• registry_key (new in Chef 11.0.0)
• powershell_script (new in Chef 11.6.0)
• batch (new in Chef 11.6.0)
• Automatic architecture handling (:i386 vs. :x86_64)
• Automatic Windows filesystem redirector handling (Wow64)
• Long-term roadmap: move more resources to core and out of ‘windows’ cookbook
Windows-Only Cookbooks
• By Chef:
– 7-zip
– iis
– powershell
– sql_server
– webpi
– windows
– wix
Windows Community Cookbooks
• ms_dotnet2 / 4 / 45• windows_ad (by TAMU)• msoffice• azure
# Set system’s proxy settings to be the same as used for Chefproxy = URI.parse(Chef::Config[:http_proxy])registry_key 'HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings' do values [{:name => 'ProxyEnable', :type => :reg_dword, :data => 1}, {:name => 'ProxyServer', :data => "#{proxy.host}:#{proxy.port}"}, {:name => 'ProxyOverride', :type => :reg_string, :data => '<local>'}] action :createend
registry_key example
powershell_script "rename hostname" do code <<-EOH $computer_name = Get-Content env:computername $new_name = 'test-hostname' $sysInfo = Get-WmiObject -Class Win32_ComputerSystem $sysInfo.Rename($new_name) EOHend
powershell_script example
github.com/opscode/knife-azure
MSOpenTech & DevOpsInteroperability through open source and open standards
Wholly owned subsidiary of Microsoft
Independent cadence enables a closer interaction with open source partners
Team of high skilled executives http://msopentech.com/blog/project-categories/devops/
Traditional Development and Operations
DEV OPS
Traditional Development and Operations
DEV OPS Production
Recursos
Learning
Passo a Passo: Puppet e Azure
http://aka.ms/devops_oss_ms
msdn
Video Aula: DevOps e Microsoft
Microsoft Virtual Academy
Crie sua conta gratis no Azure(trial 30 dias)
Microsoft Azure
http://azure.Microsoft.com
Hands on Lab Passo a Passo
Puppet and Chef on Azure
© 2014 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries.The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
Recommended