System management with Spacewalk



Similar documents
System management with Spacewalk

Open Source Datacenter Conference 2011 System Management with RHN Satellite. Dirk Herrmann, Solution Architect, Red Hat

TUT19344 Managing RH/CentOS with SUSE Manager

Red Hat Network Satellite in a Nutshell...

Continuous security audit automation with Spacewalk, Puppet, Mcollective and SCAP

Red Hat Network Satellite (On System z) 18-JUNE CAVMEN Meeting

Managing your Red Hat Enterprise Linux guests with RHN Satellite

System Management with Spacewalk

Best Practices for Deploying and Managing Linux with Red Hat Network

Preparing for the Installation

From Idea to Working Deployment:

Installation Guide. Copyright (c) 2015 The OpenNMS Group, Inc. OpenNMS SNAPSHOT Last updated :19:20 EDT

SUSE Manager. A Comprehensive Linux Server Management the Linux Way. Name. Title

Red Hat Network Satellite 5.4 Installation Guide. Red Hat Network Satellite

VMware vcenter Log Insight Security Guide

Intelligent Power Protector User manual extension for Microsoft Virtual architectures: Hyper-V 6.0 Manager Hyper-V Server (R1&R2)

Dell UPS Local Node Manager USER'S GUIDE EXTENSION FOR MICROSOFT VIRTUAL ARCHITECTURES Dellups.com

Syncplicity On-Premise Storage Connector

IBM Endpoint Manager Version 9.1. Patch Management for Red Hat Enterprise Linux User's Guide

How To Install Storegrid Server On Linux On A Microsoft Ubuntu 7.5 (Amd64) Or Ubuntu (Amd86) (Amd77) (Orchestra) (For Ubuntu) (Permanent) (Powerpoint

Virtualization Management the ovirt way

PARALLELS SERVER BARE METAL 5.0 README

Kaspersky Endpoint Security 8 for Linux INSTALLATION GUIDE

NOC PS manual. Copyright Maxnet All rights reserved. Page 1/45 NOC-PS Manuel EN version 1.3

OnCommand Performance Manager 1.1

CURRENT STATE OF ICINGA

Avira Update Manager User Manual

BF2CC Daemon Linux Installation Guide

Server Monitoring. AppDynamics Pro Documentation. Version Page 1

Red Hat Network Satellite Management and automation of your Red Hat Enterprise Linux environment

Zenoss Core Installation and Upgrade

Moving to Plesk Automation 11.5

Red Hat Satellite Management and automation of your Red Hat Enterprise Linux environment

LOCKSS on LINUX. CentOS6 Installation Manual 08/22/2013

GroundWork Monitor Open Source Installation Guide

Kaspersky Anti-Virus 8.0 for Linux File Server Installation Guide

Oracle, the Oracle logo, Java, and MySQL are registered trademarks of the Oracle Corporation and/or its affiliates.

Citrix XenServer 5.6 OpenSource Xen 2.6 on RHEL 5 OpenSource Xen 3.2 on Debian 5.0(Lenny)

ZCP trunk (build 51762) Z-Admin Manual. The Z-Admin Manual

Deployment - post Xserve

SnapLogic Sidekick Guide

LOCKSS on LINUX. Installation Manual and the OpenBSD Transition 02/17/2011

Patch Management Integration

Zend Server 5.0 Reference Manual

docs.hortonworks.com

Release Notes scvenus 2.5.3

PaaS solutions evaluation

Log Correlation Engine 4.6 Quick Start Guide. January 25, 2016 (Revision 2)

SIP-DECT Knowledge Base SIP-DECT System Update

Installing Virtual Coordinator (VC) in Linux Systems that use RPM (Red Hat, Fedora, CentOS) Document # 15807A1-103 Date: Aug 06, 2012

Prepared for: How to Become Cloud Backup Provider

Installing QuickBooks Enterprise Solutions Database Manager On Different Linux Servers

Implementing Failover Capabilities in Red Hat Network Satellite

ovirt Introduction James Rankin Product Manager Red Hat Virtualization Management the ovirt way

CommandCenter Secure Gateway

Red Hat System Administration 1(RH124) is Designed for IT Professionals who are new to Linux.

Creating a dynamic software deployment solution using free/libre software

I N S T A L L A T I O N M A N U A L

Prepared for: How to Become Cloud Backup Provider

Installing and Configuring Websense Content Gateway

Installing and Configuring vcloud Connector

How To Install Acronis Backup & Recovery 11.5 On A Linux Computer

This document describes the new features of this release and important changes since the previous one.

SOA Software API Gateway Appliance 7.1.x Administration Guide

Windows Template Creation Guide. How to build your own Windows VM templates for deployment in Cloudturk.

RH033 Red Hat Linux Essentials or equivalent experience with Red Hat Linux..

Getting Started with RES Automation Manager Agent for Linux

INSTALLATION GUIDE El Jefe 2.1 Document version: June 2014

Cloud.com CloudStack Community Edition 2.1 Beta Installation Guide

ORACLE OPS CENTER: PROVISIONING AND PATCH AUTOMATION PACK

Partek Flow Installation Guide

VMware vcenter Log Insight Security Guide

Parallels Virtuozzo Containers 4.7 for Linux Readme

W3Perl A free logfile analyzer

How To Install Acronis Backup And Recovery 10 On A Computer Or Network With A Hard Drive (For A Non-Profit)

Using Red Hat Network Satellite Server to Manage Dell PowerEdge Servers

McAfee Firewall for Linux 8.0.0

Cloud-init. Marc Skinner - Principal Solutions Architect Michael Heldebrant - Solutions Architect Red Hat

Installing and Administering VMware vsphere Update Manager

HP AppPulse Active. Software Version: 2.2. Real Device Monitoring For AppPulse Active

McAfee SMC Installation Guide 5.7. Security Management Center

An Oracle White Paper June Oracle Linux Management with Oracle Enterprise Manager 12c

PostgreSQL Clustering with Red Hat Cluster Suite

AlienVault Unified Security Management (USM) 4.x-5.x. Deploying HIDS Agents to Linux Hosts

Cloud Director Installation and Configuration Guide

VMware vcenter Log Insight Getting Started Guide

Acronis Backup & Recovery 10 Server for Linux. Installation Guide

NetIQ Sentinel Quick Start Guide

nitrobit update server

Technical Note. vsphere Deployment Worksheet on page 2. Express Configuration on page 3. Single VLAN Configuration on page 5

Red Hat Enterprise Linux and management bundle for HP BladeSystem TM

Building and Managing a Standard Operating Environment

What s New in Centrify Server Suite 2014

Parallels Server Bare Metal 5.0

Rally Installation Guide

CYAN SECURE WEB APPLIANCE. User interface manual

Plexxi Control Installation Guide Release 2.1.0

Making System Administration Easier by Letting the Machines Do the Hard Work, Or, Becoming an Agile Sysadmin

GestióIP IPAM v3.0 IP address management software Installation Guide v0.1

Transcription:

Motivation Tips for managing Linux and http://www.stankowic-development.net, @stankowic_devel OpenRheinRuhr, 2014

whoami Motivation $ whoami VMware, UNIX, Linux administrator Messer Information Services GmbH $ apropos Spacewalk / RHN Satellite / SUSE Manager Icinga / OMD Enterprise Linux, SLES, VMware vsphere

Agenda Motivation 1 Motivation Requirements and necessity Spacewalk variety News 2 3 Kickstart automation Clean-up Patch reporting

Agenda Motivation Requirements and necessity Spacewalk variety News 1 Motivation Requirements and necessity Spacewalk variety News 2 3 Kickstart automation Clean-up Patch reporting

Motivation Requirements and necessity or: IT administrators tortures Requirements and necessity Spacewalk variety News Normally less administrators manage many systems Often rapid projects and requests "We need 10 servers ASAP." "We need this till the end of the week - tomorrow." "Could you just do this..."

Motivation Requirements and necessity or: IT administrators tortures Requirements and necessity Spacewalk variety News Resultat: Standards and documentation are often neglected

Motivation Requirements and necessity Product variety Requirements and necessity Spacewalk variety News Central system management is essential - but which tool? The variety is very big, some examples 1 Puppet Chef Ansible... Alternative suites: Spacewalk, Red Hat Satellite, SUSE Manager Combines amongst others software, configuration and content management 1 These tools are only offering some of the Spacewalk features

Agenda Motivation Requirements and necessity Spacewalk variety News 1 Motivation Requirements and necessity Spacewalk variety News 2 3 Kickstart automation Clean-up Patch reporting

Spacewalk variety Motivation Requirements and necessity Spacewalk variety News 2002: First version of Red Hat Network Satellite Server 2008: Satellite source code releases as Spacewalk Spacewalk is the upstream project for Red Hat Satellite Server and SUSE Manager Service contract for SUSE Manager and Red Hat Satellite needed, Spacewalk is free Features tested in Spacewalk, often adopted in the Enterprise products

Common features Motivation Requirements and necessity Spacewalk variety News Multi-client-capability Configuration management Software/update management Content provisioning/caching

Common features Motivation Requirements and necessity Spacewalk variety News System provisioning Security and license auditing Crash reporting Monitoring 2 2 Nagios / Icinga is definitely more powerful!

Differences Motivation Requirements and necessity Spacewalk variety News Spacewalk Satellite SUSE Mgr. Release 2-5 months 9-12 months? Arch i386, x86_64 + s390x + s390x, ia64, ppc/ppc64 Distro EL, Debian 3, opensuse, Fedora Database Exclusive jquery UI,, Power management 5 + RHEL + RHEL 4, SLES PostgreSQL, Oracle 10gR2/11g, RHN jquery UI, connection Power management 3 limited support 4 omits Red Hat support, SUSE Expanded Support 5 enables cobbler to kickstart hosts more efficient

Motivation Spacewalk architecture Requirements and necessity Spacewalk variety News

Motivation Spacewalk architecture Open Source Architecture Daemon Requirements and necessity Spacewalk variety News (missing in figure) osad - Open Source Architecture Daemon Real-time system management Action are started using the Jabber protocol Network port 5222/tcp needs to be opened on the client

Motivation Spacewalk architecture Additional components Requirements and necessity Spacewalk variety News tftp-server - required for client network boot cobblerd - automatic TFTP, DHCP and DNS configuration Spacewalk Proxy - software packages are cached locally, reducing load/traffic

Agenda Motivation Requirements and necessity Spacewalk variety News 1 Motivation Requirements and necessity Spacewalk variety News 2 3 Kickstart automation Clean-up Patch reporting

Motivation New in Spacewalk 2.2 Requirements and necessity Spacewalk variety News Version 2.2 was released on 07/16/2014 Enterprise Linux 7 clients are now supported 6 Read-only API user for auditing purposes Action-Chains, grouping interdependent actions 7 Updated Perl, Python and Ruby API (new calls) support now deprecated 6 Host: Enterprise Linux 5/6 7 Demo: http://turing.suse.de/%7esmoioli/action% 20Chaining%20screencast.webm

Agenda Motivation 1 Motivation Requirements and necessity Spacewalk variety News 2 3 Kickstart automation Clean-up Patch reporting

Motivation System requirements 2 GB+ memory Enterprise Linux 5/6 host 8 Spacewalk repository RHEL Server Optional channel 9 JPackage and EPEL repository 10 Fedora 20: install rpm-{build,python}, downgrade RPM libraries 11 8 Versions newer than Spacewalk 2.2 are only supporting EL6 9 Red Hat Enterprise Linux only 10 CentOS/Scientific Linux/OEL only 11 Version 4.11.1-7.fc20

Network Motivation FQDN and short name needs to be available 12 Firewall configuration tcp 80,443 - web interface tcp 5222 - task scheduling (client systems) tcp 5269 - task scheduling (Proxy) udp 69 - TFTP (Kickstart) 12 Check using hostname -s -f!

Storage capacity Motivation Storage calculation: At least 12 GB for PostgreSQL database 13 At least 6 GB for RPM packages Depending on your system landscape 250 KiB per registered system 500 KiB per software channel 230 KiB per package in software channel 13 Oracle: differing depending on version and edition

Storage capacity Example Motivation Example calculation: 10 CentOS 6 systems, 2 repositories (base + updates) 10 systems: 3 MiB (10* 250 KiB) CentOS 6 Base: 500 KiB 6367 packages: 1,4 GiB (6367 * 230 KiB) CentOS 6 Updates: 500 KiB 1103 packages: 248 MiB (1103 * 230 KiB) Summary: 1,7 GiB

Installation Motivation PostgreSQL: yum install spacewalk-{,setup-}postgresql Oracle: yum install spacewalk-{,setup,oracle} XE: use Oracle Instant client 14 Details: https://fedorahosted.org/spacewalk/ wiki/fulloraclesetup 14 The XE client isn t working at all!

Initial configuration Motivation Listing 1: Initial configuration 1 # spacewalk-setup --disconnected 2 Admin Email Address? admin@localhost 3 CA certificate password? 4 Organization? MyCompany 5... 6 ** SSL: Generation CA certificate. 7... 8 # chkconfig spacewalk-service on 9 # service spacewalk-service start

Initial configuration Motivation Disable Admin -> Spacewalk Configuration -> Disconnected Spacewalk Customize to match your company s structure Enable support? Create additional user accounts Create additional organizations and trusts...

Motivation Channels, child channels and repositories Every distribution are mapped to one or more channels Each channel can consist of multiple child channels Every channel is synchronized using a repository Channel access can be limited per system

Motivation Creating channels and Repositories Creation using web interface or spacewalk-common-channels Tool offers database popular repositories 15 Listing 2: Creating needed channels/repositories 1 # spacewalk-common-channels -u admin -a x86_64 centos6,centos6-updates 2 # spacewalk-common-channels -u admin -a i386 fedora20* 15 e.g. CentOS, EPEL, Fedora, opensuse, Oracle Linux, Spacewalk client

Motivation Channels, child channels and repositories Repository content synchronization: spacwalk-repo-sync Cronjob or taskomatic plan Listing 3: Synchronize repository 1 # /usr/bin/spacewalk-repo-sync --channel centos6-base-x86_64 --url http://mirror. centos.org/centos/6/os/x86_64/ --type yum

Motivation Channels, child channels and repositories Example

Motivation Channels, child channels and repositories Access limitation per system

Maintenance tasks Motivation Some possible system maintenance tasks: Installing, updating and removing software packages Applying errata Executing shell commands Restarting systems Updating configuration files and much more...

Maintenance tasks System Set Manager Motivation Similar systems can be grouped (web/database servers,... ) All systems of a group can be managed like a single host Facilitates maintaining big system landscapes Tip: groups per application and priority (test, development, production)

Motivation Configuration management Configuration files 16 are stored in one or more configuration channels Channels can be ordered hierarchically (depending on network/application,... ) If a configuration file is part of multiple channels the first occurrence is selected Uploading/customizing central configuration files using the WebUI 16 Symbolic links and binary files are also supported!

Motivation Configuration management WebUI offers an integrated ASCII editor Macros can insert system profile values (hostname, IP address,...) 17 Updates stored as revisions, MD5 checksum verification No automatic update rollouts 17 See Red Hat Satellite documentation

Motivation Configuration management Example Specify: File name/path Owner and file mode SELinux context custom macro delimiter (if necessary) Configuration file content Configuration files can also be uploaded

Motivation Configuration management Example - Configuration channel priorities

Motivation Configuration management Beispiel - Deploying a new revision

Agenda Motivation 1 Motivation Requirements and necessity Spacewalk variety News 2 3 Kickstart automation Clean-up Patch reporting

Motivation CEFS - CentOS Errata for Spacewalk RHEL customers are receiving errata by RHN CentOS fixes are marked as regular updates CEFS service 18 creates errata automatically (mailing lists) CEFS imports errata locally Errata information can be combined with Red Hat Security Announcements (RHSA), more details 18 Thank you very much, Steve!

Motivation CEFS - CentOS Errata for Spacewalk Example Listing 4: Import recent errata 1 $ wget -N http://cefs.steve-meier.de/errata. latest.xml 2 $./errata-import.pl --server localhost -- errata errata.latest.xml --include- channels=... --publish 1 Downloading recent definitions 2 Importing errata errata - XML file include-channels - import for these channels publish - publish errata

Motivation CEFS - CentOS Errata for Spacewalk

Agenda Motivation 1 Motivation Requirements and necessity Spacewalk variety News 2 3 Kickstart automation Clean-up Patch reporting

integration Motivation

integration Motivation Spacewalk / Red Hat Satellite are offering UNIX support 19 systems can be registered / managed like Linux hosts SUN/Oracle 8 to 10 (x86 + SPARC) officially supported Unofficially also working 20 : Oracle 11 OpenIndiana / Open Illumos derivates should also work 19 deprecated since Spacewalk 2.2 20 successfully tested

Limitations Motivation Software cannot be imported using repositories.pkg files need to be converted (solaris2mpm) and uploaded Real-time maintenance (osad) not possible, rhnsd checks periodically Remote commands unreliable on some architectures/releases Hardware / package information partially errorneous

Motivation Preparation - Spacewalk Enable support Restart Spacewalk / Red Hat Satellite Create base channel and sub-channels Create activation key and link with base channel

Motivation Installation - Download appropriate Bootstrap package 21 : http://spacewalkproject.org/solaris 22 Install OpenSSL and ZIP libraries and GCC runtime 23 Install Bootstrap package and adjust LD Library paths Register system using rhnreg_ks, optionally enable remote configuration (rhn-actions-control) 21 Use i386-sol10 for newer versions 22 on Satellite local: http://fqdn/pub/bootstrap/ 23 SUNWgccruntime, SUNWopensslr, SUNWzlib packages

Motivation Installation - Configure rhnsd (set interval) Up to 9: create / start init script /etc/init.d/rhnsd start 10+: create SMF manifest 24 (or use mine): https://github.com/stdevel/rhnsd-solman svcadm validate import rhnsd.xml svcadm enable rhnsd # ps -ef grep -i rhnsd 24 Details: http://st-devel.net/blssv

Motivation Upload packages Download.pkg package Convert package in.mpm using solaris2mpm 25 Upload file to Satellite / Spacewalk server using rhnpush 25 Use --select-arch in case of errors!

Agenda Motivation Kickstart automation Clean-up Patch reporting 1 Motivation Requirements and necessity Spacewalk variety News 2 3 Kickstart automation Clean-up Patch reporting

Motivation Kickstart automation Kickstart automation Clean-up Patch reporting Enterprise Linux needs Kickstart distribution and profile KS distribution consists of a minimal boot environment Required files are stored on DVD or network mirrors KS profile starts distribution + installation manual work needed

Motivation Kickstart automation Kickstart automation Clean-up Patch reporting mkelfs can help you! Python tool for downloading needed files from network mirrors Can also create Kickstart distributions Supports CentOS, Scientific Linux, Fedora 26 Download: https://github.com/stdevel/mkelfs 26 more distros planned!

Motivation Kickstart automation Examples Kickstart automation Clean-up Patch reporting./mkelfs.py --release 6.5 --arch x86_64 -c Downloads CentOS 6.5, x86_64, creates KS distribution Files are stored in /var/satellite/kickstart_tree./mkelfs.py -r 6.2 -a i386 -o scientific -fq Downloads ScientificLinux 6.2, i386 overwrites pre-existing files, no output

Agenda Motivation Kickstart automation Clean-up Patch reporting 1 Motivation Requirements and necessity Spacewalk variety News 2 3 Kickstart automation Clean-up Patch reporting

Clean-up Motivation Kickstart automation Clean-up Patch reporting All executed tasks are documented as actions also includes automated tasks (checking deployed configurations)! Additional researching often not required, deleting actions mostly forgotten Result: database is full unneeded information!

Clean-up Motivation Kickstart automation Clean-up Patch reporting arsa can help you! Python tool for archiving / deleting actions Good idea to run as weekly cronjob Download: https://github.com/stdevel/arsa

Clean-up Examples Motivation Kickstart automation Clean-up Patch reporting./arsa.py -l Lists completed actions (dry-run)./arsa.py -rf Archives completed and failed actions Deletes archived actions afterwards

Agenda Motivation Kickstart automation Clean-up Patch reporting 1 Motivation Requirements and necessity Spacewalk variety News 2 3 Kickstart automation Clean-up Patch reporting

Patch reporting Motivation Kickstart automation Clean-up Patch reporting Management often requests detailed patch reports Might be essential depending on the companies certification (e.g. ISO/IEC 27001:2005) Very time-consuming task depending on system landscape

Patch reporting Motivation Kickstart automation Clean-up Patch reporting satprep can help you! Python toolkit for creating detailed patch reports Reports are created as PDF using T E X Lists patch-relevant and also general system information Download: https://github.com/stdevel/satprep

Patch reporting Functionality Motivation Kickstart automation Clean-up Patch reporting Custom info keys defining meta information: SYSTEM_OWNER - System owner SYSTEM_CLUSTER - Cluster node / standalone system SYSTEM_MONITORING - monitoring state SYSTEM_MONITORING_NOTES - notes about system monitoring SYSTEM_BACKUP - Backup state...

Patch reporting Functionality Motivation Kickstart automation Clean-up Patch reporting 1 Creating a snapshot of relevant errata / patch information:./satprep_snapshot.py 2 Patching and rebooting systems 3 Creating another snapshot:./satprep_snapshot.py 4 Calculating the delta and creating PDF reports:./satprep_diff.py 20141109*.csv 5 (Sign document and be happy about having saved time)

Appendix Further information Further information I http://fedorahosted.org/spacewalk Spacewalk wiki. http://cefs.steve-meier.de CentOS Errata for Spacewalk. Steve Meier http://red.ht/1mja1q1 Manage with Spacewalk and Red Hat Satellite, Guest post in official Red Hat blog http://www.freiesmagazin.de Spacewalk articles, 08/2014 - xx/2014

Appendix Further information Thank your for your attention! Questions / feedback? Stay in touch: Twitter: @stankowic_devel Also check-out my blog for Spacewalk stuff: http://www.stankowic-development.net