31
WebGIS Automation Using Chef Cherry Lin Pavel Bobov March 8–11, 2016 | Palm Springs, CA Esri Developer Summit

WebGIS Automation Using Chef

Embed Size (px)

Citation preview

Page 1: WebGIS Automation Using Chef

WebGIS Automation Using ChefCherry Lin

Pavel Bobov

March 8–11, 2016 | Palm Springs, CA

Esri Developer Summit

Page 2: WebGIS Automation Using Chef

Quick Survey

1. Esri Software

2. IT automation experience

3. Chef

Page 3: WebGIS Automation Using Chef

Agenda

• Why WebGIS Automation

• Chef and WebGIS Automation

• Deployment Options

• ArcGIS Chef Cookbook

Page 4: WebGIS Automation Using Chef

Why WebGIS Automation

Page 5: WebGIS Automation Using Chef

ArcGIS is a BIG platform

Web GIS

Standard…

GEE… …

ArcGIS is a BIG platform Desktop Web Device

GIS Server Sites

Online Content and Services

Portal

ArcGIS is a BIG platform

Desktop/Pro

ArcGIS Web Adaptor

ArcGISWeb Adaptor

ArcGIS Data

Store/Big Data Store

Page 6: WebGIS Automation Using Chef

RecoveryProduction

Dev QA

Business – Critical Deployments

• Reliable infrastructure- Repeatable- Testable

• Fast Disaster Recovery

• Moving between data centers

Page 7: WebGIS Automation Using Chef

• Disposable machines

• Rapid auto-scalingArcGIS

ArcGIS

ArcGIS

Cloud Environments

Page 8: WebGIS Automation Using Chef

• Simplifies deployment and upgrade procedures

• Focus more on GIS tasks

• From Esri: Ready-to-use tools with minimum requirements to start

Everybody

Page 9: WebGIS Automation Using Chef

Chef and WebGIS Automation

Page 10: WebGIS Automation Using Chef

Chef

• One of the fast growing IT automation platforms

• Supported on Windows and Linux

• Open source

Page 11: WebGIS Automation Using Chef

Some Chef Components

• Recipes

• Cookbook

• Attributes, resources, providers……

• Chef-server, client, solo

Page 12: WebGIS Automation Using Chef

Demo: WebGISDeployment using Chef

Page 13: WebGIS Automation Using Chef

What did Chef just do?

• Install IIS if it’s not installed. • Configure IIS (Tomcat on Linux) with https using the provided CA cert or generate a

self-signed cert.• ArcGIS Server: Install; Authorize; Create site.• WA: Install; Configure for ArcGIS Server.• Data Store: Install; Register it with ArcGIS Server.• Portal for ArcGIS: Install; Authorize; Create Portal.• WA: Install; Configure for Portal.• Federate ArcGIS Server with Portal.• Set the ArcGIS Server as the hosting Server.

Page 14: WebGIS Automation Using Chef

What are steps?

• 5 steps at

https://github.com/Esri/arcgis-cookbook/wiki/Get-Started-With-ArcGIS-Cookbook

Page 15: WebGIS Automation Using Chef

Other Deployment Options

Page 16: WebGIS Automation Using Chef

HA WebGIS

……….

Registered

Federated

Page 17: WebGIS Automation Using Chef

All on Different Machines

Registered

Page 18: WebGIS Automation Using Chef

Server GIS

Page 19: WebGIS Automation Using Chef

Other ArcGIS Software

Page 20: WebGIS Automation Using Chef

ArcGIS Chef Cookbook

Page 21: WebGIS Automation Using Chef

Supported ArcGIS Software

• ArcGIS Server• ArcGIS Data Store• Portal for ArcGIS• ArcGIS Web Adaptor• ArcGIS Pro• ArcGIS Desktop• ArcGIS License Manager• ArcGIS GeoEvent Extension for Server

Page 22: WebGIS Automation Using Chef

Supported Platforms

• Windows 7• Windows 8 (8.1)

- 8.1 requires .Net Framework 3.5

• Windows Server 2008 (R2)• Windows Server 2012 (R2)• Ubuntu LTS 14.04 (when deploying ArcGIS for Server on Amazon Web Services)• RHEL 6.5 • RHEL 7.0

Page 23: WebGIS Automation Using Chef

• system Ensures system requirements

• all_installed Installs Server, Data Store, Portal, and Web Adaptors

• iis Enables required IIS features and configures HTTPS binding

• server Installs and configures ArcGIS Server

• server_wa Installs Web Adaptor and configures it with ArcGIS Server

• portal Installs and configures Portal for ArcGIS

• portal_wa Installs Web Adaptor and configures it with Portal for ArcGIS

• datastore Installs and configures ArcGIS Data Store

• egdb Registers GeoDatabases with server

• federation Federates ArcGIS Server with Portal for ArcGIS

• ……

ArcGIS Cookbook Recipes

Chef uses Ruby as its reference language.

Page 24: WebGIS Automation Using Chef

Demo: Explore ArcGIS cookbook

Page 25: WebGIS Automation Using Chef

Define You Own

Page 26: WebGIS Automation Using Chef

Define You Own

Page 27: WebGIS Automation Using Chef

Advanced Chef Deployment Options

• Community Chef cookbooks• New Cookbooks• Chef-Server• Test Kitchen• Packer• ……

Combine with other community cookbooks

Pick the recipes you need

Take ready to use ArcGIS cookbooks

Write new recipes

Write your own cookbook

Page 28: WebGIS Automation Using Chef

• Doc:- External:

- https://github.com/Esri/arcgis-cookbook/wiki/Get-Started-With-ArcGIS-Cookbook

• Issues/Contributes:- Contact Tech Support

10.4 Resources

Page 29: WebGIS Automation Using Chef

• Building your first WebGIS- Friday (3/11/2015) 8:30am

DevSummit Session

Page 30: WebGIS Automation Using Chef

Please Take Our Survey! – No more memorizing Session ID numbers!!

Download the Esri Events app and find your event

Select the session youattended

Scroll down to the “Feedback” section

Complete Answers,add a Comment,

and Select “Submit”

Page 31: WebGIS Automation Using Chef