Giter VIP home page Giter VIP logo

sles-suma-sp-upgrade's Introduction

Purpose

Suse Linux enterprise (unlike some other RPM based distros) has the concept of service packs and upgrading between service packs. This has introduced functionality into Suse Manager that requires large amounts of "pointing and clicking" in the GUI for performing service pack upgrades. The API, of course, can be used to work around this, which can be very helpful when performing these actions on thousands of servers.

This Ruby script handles the specific use case of interacting with the Suse Manager API for doing batched upgrades between Suse Manager service packs.

Usage and Prerequistes

This script has two major Prerequistes:

  1. Ensure the current clone channel label base names match the "new" clone channel base names*
  2. Create groups of servers to migrate

*There are example channel names hard coded in the script

In regards to usage, this is a Ruby script that's run from the command line of the Suse Manager server. Typical command line usage details are provided via the "-h" flag:

$ ./sles_batch_upgrade.rb -h
Usage: sles_batch_upgrade.rb [options]
    -g suse_manager_group_name,      suse_manager_group_name
        --group_name
    -s 2016-03-07T17:59:00,          iso8601 format: ex. 2016-03-07T17:59:00
        --schedule_time
    -d, --dry_run <true|false>       <true|false>
    -h, --help                       Displays Help

All command line flags (other than help) are mandatory and can be given in any order.

Testing

This script was used extensively with Suse Manager 2.1 to upgrade SLES 11 SP3 to 4. However, it appears that the issues that lead to the creation of this script persist in Suse Manager 3/SLES 12.

sles-suma-sp-upgrade's People

Watchers

Nathan Macey avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.