Transcript
Page 1: Sim a Microsoft Utiliza OpenSource em DevOps!

Sim, a Microsoft usa Open Source em DevOpsVinícius SouzaTechnical Evangelist@vbs_br

Page 2: Sim a Microsoft Utiliza OpenSource em DevOps!

Traditional Development and Operations

DEV OPS

Page 3: Sim a Microsoft Utiliza OpenSource em DevOps!

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.

Page 4: Sim a Microsoft Utiliza OpenSource em DevOps!

What some businesses do

NEW “DEVOPS” GUY

Page 5: Sim a Microsoft Utiliza OpenSource em DevOps!

DevOps: the three stage conversation

3 Products2 Process1 People

Page 6: Sim a Microsoft Utiliza OpenSource em DevOps!

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)

Page 7: Sim a Microsoft Utiliza OpenSource em DevOps!

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%

Page 8: Sim a Microsoft Utiliza OpenSource em DevOps!

Source Build

Test/issues Deployment Application

Operations

Process tools

ALM framework

Cloud

On-premises

Page 9: Sim a Microsoft Utiliza OpenSource em DevOps!

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

Page 11: Sim a Microsoft Utiliza OpenSource em DevOps!

Virtual Machine management

Page 12: Sim a Microsoft Utiliza OpenSource em DevOps!

Virtual Machine management

http://aka.ms/devops_oss_ms

Page 13: Sim a Microsoft Utiliza OpenSource em DevOps!

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.

Page 14: Sim a Microsoft Utiliza OpenSource em DevOps!

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

Page 15: Sim a Microsoft Utiliza OpenSource em DevOps!

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

Page 16: Sim a Microsoft Utiliza OpenSource em DevOps!

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

Page 17: Sim a Microsoft Utiliza OpenSource em DevOps!

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

Page 18: Sim a Microsoft Utiliza OpenSource em DevOps!

Overview of Chef Resources on Windows

Page 19: Sim a Microsoft Utiliza OpenSource em DevOps!

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...

Page 20: Sim a Microsoft Utiliza OpenSource em DevOps!

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

Page 21: Sim a Microsoft Utiliza OpenSource em DevOps!

Windows-Only Cookbooks

• By Chef:

– 7-zip

– iis

– powershell

– sql_server

– webpi

– windows

– wix

Page 22: Sim a Microsoft Utiliza OpenSource em DevOps!

Windows Community Cookbooks

• ms_dotnet2 / 4 / 45• windows_ad (by TAMU)• msoffice• azure

Page 23: Sim a Microsoft Utiliza OpenSource em DevOps!

# 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

Page 24: Sim a Microsoft Utiliza OpenSource em DevOps!

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

Page 25: Sim a Microsoft Utiliza OpenSource em DevOps!

github.com/opscode/knife-azure

Page 26: Sim a Microsoft Utiliza OpenSource em DevOps!

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/

Page 27: Sim a Microsoft Utiliza OpenSource em DevOps!

Traditional Development and Operations

DEV OPS

Page 28: Sim a Microsoft Utiliza OpenSource em DevOps!

Traditional Development and Operations

DEV OPS Production

Page 29: Sim a Microsoft Utiliza OpenSource em DevOps!

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

Page 30: Sim a Microsoft Utiliza OpenSource em DevOps!

© 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.


Top Related