44
The Problem

Automations Presentation New

Embed Size (px)

DESCRIPTION

systems management system proposal

Citation preview

Page 1: Automations Presentation New

The Problem

Page 2: Automations Presentation New

Our intrepid systems administrator installs the operating system from disk

Page 3: Automations Presentation New

From other disks, the anti-virus, office suite,and other vendor-provided applications the system

needs are loaded.

Page 4: Automations Presentation New

Patches for the operating system and applications are downloaded, either directly or indirectly, and

are applied to the system.

Page 5: Automations Presentation New

What's wrong whit that?

● The CDROMs may be different versions on different installs

● The patches from external sources will amost certainly be different on different installs

● The systems administrator may not put systems together in an identical manner

● Basically no two systems will be alike● This will result in two “identical” systems with

different behavior

Page 6: Automations Presentation New

The system is released to developers, who write and compile code, and copy it to the system.

Page 7: Automations Presentation New

I said “developers.”(you could add DBAs and application owners to

this list, but you see where I'm going)

Page 8: Automations Presentation New

What's wrong with that?

● It almost guarantees that different code will be deployed to different “identical” systems

● If a system “blows up” and needs to be rebuilt, you have to throw operations resources and development resources at it to get it running again.

● If you need to re-create a system “as-built” you have to find all the sources again (this just won't happen).

Page 9: Automations Presentation New

For the next system, wash, rinse repeat.

Page 10: Automations Presentation New

And so on, and so on, until the work not only fills all the time of all the bodies, but additional bodies

are needed to keep up with the work.

Page 11: Automations Presentation New

Welcome to “meat cloud” computing. (also, you'll need managers, “senior” managers to manage them, and “Directors” to manage them.)

Page 12: Automations Presentation New

All the while, no one will really have any idea what's going on, (beyond a holistic level)

Page 13: Automations Presentation New

But what can you do?

Page 14: Automations Presentation New

Identify your “authoritative” sources of information.

Page 15: Automations Presentation New

Found 'em! Now what?

Page 16: Automations Presentation New

Umm, I think I may see the problem...

Page 17: Automations Presentation New

Let's start over...

Page 18: Automations Presentation New

What if, instead of installing operating systems and applications striaght from media, the sysadmin stored them in a “repository”?

Page 19: Automations Presentation New

And then, any time a system was built, a script would grab those packages, and install the

operating system, and the applications?

Page 20: Automations Presentation New

One small script (or recipe) for each application, describing how it should be installed.

Page 21: Automations Presentation New

Now the application (package) repository will always be changing, as will the recipies that install

the applications (packages)...

Page 22: Automations Presentation New

A “version control system” (vcs) shall be maintained for both the package repositories and

the installation scripts.

Page 23: Automations Presentation New

A host “meta-data” repository will instruct from which repository to pull packages, and which scripts to use to install and configure them.

Page 24: Automations Presentation New

Patches for the Operating Systems and applications could be staged in the appropriate repositories, and scripts written to install them.

Page 25: Automations Presentation New

Developers would need to package their applications for installation, and provide

automated scripts for installation.

Page 26: Automations Presentation New

Now when boxes need built or rebuilt, no human resources are needed other than to initiate the

process.

Page 27: Automations Presentation New

Now identify your “authoritative” sources of information...

Page 28: Automations Presentation New

Found them!

Page 29: Automations Presentation New

Now that's more like it.

Page 30: Automations Presentation New

There are 3 major components

● The package repository● The recipe store● The meta-data repository

Page 31: Automations Presentation New

The Package Repository● Nothing gets installed to a system, by hand or

in an auotmated fashion without the installer being copied to the package repository first.

● The repository will be version controlled by cloning with hard-links, and then and only then adding new content.

● The repositories versions will be given unique IDs that can be linked to hosts in the meta-data repository

● A host shall only pull from one repository, even if a new one needs to be cloned to satisfy this.

Page 32: Automations Presentation New

The Recipe Store

● The recipe store will contain recipes for installing any and everything we install.

● Every component will have a unique ID that can be tied to a host using the meta-data repository

● All recipies will be version controlled.● No items unique to a host will go in the recipe

store. ● Items unique to a host will be pulled from the

meta-data repository and “merged” with the recipe to complete the configuration

Page 33: Automations Presentation New

The meta-data repository

● The meta-data repository will describe the infrastructure at the highest level

● The meta-data repository must be able to be queried by any script or application, or by hand

● It must conform to an open standard● It must be network facing (no application tiers)● It must be secure (SSL/TLS)● It must handle authentication and authorization

internally

Page 34: Automations Presentation New

Additional components

● Monitoring rules may be added to the recipe store such that hosts tied to the monitoring rules via the meta-data repository will be monitored in the manner described in the store.

● Back-up rules may be added to the recipie store such that hosts tied to the back-up rules via the meta-data repository will back up accordingly

● Any other rules may be set up in the same manner...

Page 35: Automations Presentation New

Process flow

Page 36: Automations Presentation New

The players

Page 37: Automations Presentation New

On the “Install Inititiator”, the command is given to deploy the “Target Host.” The initiator queries the meta-data repository for the

specifics of the install

Page 38: Automations Presentation New

The meta-data repository replies with, what to install, where, and the personalization information specific to the host.

Page 39: Automations Presentation New

The install initiator (using the meta-data) instructs the target host which recipies to use to install which packages from a specific

repository.

Page 40: Automations Presentation New

The target host pulls the appropriate packages from the package repository, and the installation recipies and does the work needed

to install itself.

Page 41: Automations Presentation New

Once installation is complete the target host routinely queries the meta-data-repository and the recipie store for changes, and does any work defined therein. It is now in “configuration management”

mode.

Page 42: Automations Presentation New

If the recipe store or the meta-data repository indicate that the target host should point to a new repository, then the target host

will update it's packages accordingly. This is how patches are applied.

Page 43: Automations Presentation New

Design Terminology

● The “package repository” may be an apt repository, yum repository, a CIFS share, or a combination of them, depending on the operating system(s) you need to install

● The “recipe store” may be version-controlled shell scripts, batch files, cfengine policies, puppet manifests, or whatever you need to get the job done.

● The “meta-data repository” can be an LDAP server (or a set of them) or a bunch of YAML files in git/svn, again, whatever you need...

Page 44: Automations Presentation New

Questions?