66
1 https://www.flickr.com/photos/wheatfields/3569285145

SUSE template Jan 2014 v2 ks - Open Source … · •Nagios/Icinga Monitoring integration ... SUSE_template Jan 2014 v2_ks Keywords: presentation, template, SUSE template,

  • Upload
    vandang

  • View
    215

  • Download
    0

Embed Size (px)

Citation preview

1https://www.flickr.com/photos/wheatfields/3569285145

https://en.wikipedia.org/wiki/Greenfield_project

3

https://pixabay.com/en/patchwork-fabric-padding-112548/

Using SUSE® Manager in Heterogeneous Environments

Joachim WernerSenior Product Manager, SUSE

[email protected]

Dobrin DobrevProduct Manager, SUSE

[email protected]

Let's start with the “green parts” ...

6

SUSE Enterprise Storage

Datacenter

SUSE® and Linux Workloads in the Enterprise

SUSE Manager

Public Clouds

SUSE Studio

Private Cloud

Use Cases ...

8

Automate repetitive tasks?

Generate customized reports from the data in a system?

Hook systems together that weren't built to work together?

Orchestrate several separate systems or tools?

Write your own UI because you have different needs than what the authors of the tool had in mind?

Want to create (read-only) dashboards, maybe even for mobile devices?

Want to ...

9

Then You Need APIs!

10

11

Objectives of This Session:

• Present some typical real-life scenarios that you could run into as well

• Demonstrate the power of using APIs and other ways of integration in SUSE Manager

• Provide starting points and hints for your own work

Not:

• A ready to run solution

• Comprehensive API tutorial (just the tip of the iceberg, much more to discover below sea level)

Almost no SUSECon talk can get awaywithout mentioning ...

13

14

RPM“MyApp”

1 Check insources

2 Check outsources

3 Rebuild RPM

4

SUSE Studio

Sync repository/upload RPM

5 Rebuild image

6 Redeployimage

SUSE OpenStack

Cloud

Instance 1

Instance 2

Instance 1

7 Sync repository

SUSE Manager

8 UpdateRPM

Instance 2

9 Run test

Instance 1

Instance 2

MachinerySystem Inspection

System Description

Not all projects are Greenfield Projects!

Have you missed the “magic wheel”?

17

18

19

Keep this green!

20

✔ IBM z Systems “zPXE”✔ VMware✔ OpenStack Cloud

Keep this green!

21

✔ IBM z Systems “zPXE”✔ VMware✔ OpenStack Cloud

Keep this green!

✔ Your CMDB

22

✔ IBM z Systems “zPXE”✔ VMware✔ OpenStack Cloud

Keep this green!

✔ Your CMDB

✔ Your scripts✔ Puppet✔ Chef✔ Ansible✔ Salt

23

✔ Reporting✔ Monitoring (Nagios, Icinga)✔ Read-only dashboards✔ Security scanners

Examples

25

26

“Inversion of Control” pattern

27

“Inversion of Control” pattern

28

“Inversion of Control” pattern

29

“Inversion of Control” pattern

• Puppet (Chef, etc.)• HP SA• BMC Blacelogic• Microsoft SCOM• Scripts (Bash, Python)

30

“Inversion of Control” pattern

• Puppet (Chef, etc.)• HP SA• BMC Blacelogic• Microsoft SCOM• Scripts (Bash, Python)

How you can talk to yourSUSE Manager server

32

• spacewalk-reports

• Nagios/Icinga Monitoring integration

• spacecmd

• XML-RPC API

• SQL

33

Running reports withspacewalk­report

https://www.suse.com/documentation/suse_manager/book_susemanager_install/data/s1-spacewalk-report.html

34

Using SUSE Managerwith Nagios or Icinga

https://wiki.microfocus.com/index.php/SUSE_Manager/Nagios

35

Spacecmd

• Can be used interactively or in shell scripts

• Ideal for “maintenance tasks” like creating a new user

• Not so ideal for longer scripts

SUSE® Manager API ...

37

SUSE® Manager API

• The SUSE Manager API uses XML-RPC.

• Authentication is done by requesting a session key with the “auth.login” method call

Documentation:https://www.suse.com/documentation/suse_manager/• API Reference

• Manager Quick Start Guides and reference documentation

38

We Are Going To Use Python Because ...

• xmlrpc support is built in

• http and url handling built in

• OBS client API is usable as aPython module

• optional: python-requests module

Scripting can be done in other programming languages of your choice, like

‒ Perl

‒ Ruby

‒ Java

39

Connecting to SUSE® Manager

#!/usr/bin/env python

import xmlrpclib

url = "https://servername/rpc/api"

user = "username"

password = "password"

api = xmlrpclib.Server(url, verbose=0)

session = api.auth.login(user, password)

print api.user.listUsers(session)

40

41

• spacewalk-reports

• Nagios/Icinga Monitoring integration

• spacecmd

• XML-RPC API

• SQL

Don't do that!

Manager 3

SUSE Manageras the

“Data Hub”

44

Ideas for SUSE Manager Integration ...

SUSEManager

Directories (SLEPOS, 3rd Party)(LDAP, Active Directory)● Users● Systems● Configuration● Topology

Configuration ManagementDatabases(CMDB), e.g. ServiceNow● Systems● Inventory● Configuration● Topology

VirtualizationPublic or Private Cloud(e.g. VMware vCenter,OpenStack, AWS)● Systems● Topology

Monitoring (e.g. Icinga, Nagios)● Systems● State● Configuration sync● Read-only dashboards (Splunk!)

externalConfiguration ManagementSystems (Puppet, Chef, ...)● Act as an “External Node Qualifier”

OS and Container Build Systems● Provide templates and repositories● Trigger rebuilds

45

Salt ...

46

What is Salt?

• A configuration management system:“I want to keep lots of systems in defined states!”

• A (distributed) remote execution system:“Run this command on lots of systems and report the results back to me!”

• SUSE Manager 3 will use Salt• Salt will be added to SUSE Linux Enterprise Server

11 and 12 (in addition to Puppet and CFengine)

47

Why Salt?

• Combines remote execution framework (like Ansible) with declarative configuration management (like Puppet/Chef) in one tool

• Can be used without a server (“master-less”), via ssh, or with a “master” server and a “minion” daemon

• Distributed architecture fits well into use cases in retail, hybrid cloud etc.

• Fast and highly scalable

• Easy to extend (with many existing plugins for OpenStack, Docker, etc.)

• Large and rapidly growing community

Outlook: “Best Practice Exchange”?

49

Long Term Vision: Service Templates

• The vision is to ultimately be able to provide “Service Templates” for the “Software Defined Datacenter” that describe

‒ all the Linux images used in a setup that delivers a certain software service

‒ all the configuration (hardware and software, from network to credentials)

‒ SLAs (HA, sizing of hardware, performance scaling)

• Looking into TOSCA standard andHeat (OpenStack) … and of course Salt

SUSE Manager andMicrosoft System Center

51

Heterogeneity is a Fact of Life

52

Mixed Windows and Linux Infrastructures Too

53

At a Glance

• Works with System Center Ops Manager 2007 R2, 2012, and 2012 R2

• Requires installed SUSE Manager

54

SUSE Manager Management Packfor Microsoft System Center

• Connects Microsoft System Center Operations Manager to SUSE Manager

• Provides management of Windows and Linux patches from one console

• Automates Linux patch updates from System Center

• Lists Linux servers entitled for selected critical and optional updates and patches

• Schedules maintenance window to run updates on a specific Linux server or a group of Linux servers

• Patches SUSE Linux Enterprise Server and RHEL when combined with Expanded Support

55

SUSE Manager Management Pack

Streamline Multi-platform Management

• Supports management of Windows and Linux patches from the same console

• Automates Linux patch updates from System Center

• Maximizes investment in existing infrastructure, including software, hardware, and IT administration expertise

• Lowers risk of failure because of a missed patch

• Helps to ensure compliance

INCREASED EFFICIENCY REDUCED COST MINIMIZED RISK

56

Bottom Line

• The Management Pack brings simplicity to IT management

• Makes lives of admins easier

• Demo and questions

57

Wrapping Up...

Thank you.

59

➔ If you haven't yet, you should reallystart looking into usingSUSE Manager's XML-RPC API!

➔ For new projects, considerstarting with Salt!

➔ If you have Microsoft SCOM, the Management Pack delivers integration out of the box!

Thank you.

60

Send an e-mail to [email protected] with the subject “APIs rock!” to request more information and stay in touch on this topic!

61

Other talks that you may want to see

• Manager 3 roadmap

• Config mgmt in m3

• Manager z

• Salt and suse

• Apollo Optik Case Study

• DevOps …

• ...

62

https://pixabay.com/en/patchwork-fabric-padding-112548/

63

64

Corporate HeadquartersMaxfeldstrasse 590409 NurembergGermany

+49 911 740 53 0 (Worldwide)www.suse.com

Join us on:www.opensuse.org

65

Unpublished Work of SUSE LLC. All Rights Reserved.This work is an unpublished work and contains confidential, proprietary and trade secret information of SUSE LLC. Access to this work is restricted to SUSE employees who have a need to know to perform tasks within the scope of their assignments. No part of this work may be practiced, performed, copied, distributed, revised, modified, translated, abridged, condensed, expanded, collected, or adapted without the prior written consent of SUSE. Any use or exploitation of this work without authorization could subject the perpetrator to criminal and civil liability.

General DisclaimerThis document is not to be construed as a promise by any participating company to develop, deliver, or market a product. It is not a commitment to deliver any material, code, or functionality, and should not be relied upon in making purchasing decisions. SUSE makes no representations or warranties with respect to the contents of this document, and specifically disclaims any express or implied warranties of merchantability or fitness for any particular purpose. The development, release, and timing of features or functionality described for SUSE products remains at the sole discretion of SUSE. Further, SUSE reserves the right to revise this document and to make changes to its content, at any time, without obligation to notify any person or entity of such revisions or changes. All SUSE marks referenced in this presentation are trademarks or registered trademarks of Novell, Inc. in the United States and other countries. All third-party trademarks are the property of their respective owners.