LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 02-07-2009, 05:24 PM   #1
kevinyeandel
Member
 
Registered: Jun 2008
Posts: 49

Rep: Reputation: 16
deployment/scripting/automation


Hi

I'm building a deployment bundle of a server and want to automate some tasks.

e.g. openvpn has a dependency on lzo, so there is a sequence to building all this stuff.

So, Package lzo, requires
./configure
make
make install

How do I script up:

Code:
#!/bin/bash

function do_package
{
if (configure == successful) then
  if (make == successful) then
    if (make install == successful) then return true;
    fi 
  fi
fi
return false
}

cd $PACKAGE_LZO
if (do_package == true)
{
  cd $PACKAGE_OPENVPN 
  if (do_package == true) then .........
}
I also scanned the forum and saw something about Kickstart.. any suggestions? All my servers will be centos5 clones and I can't use a xen/image.

Many thanks for any tips and advice.

Kevin]

Last edited by kevinyeandel; 02-07-2009 at 05:26 PM.
 
Old 02-08-2009, 12:28 PM   #2
raskin
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: approximately NixOS (http://nixos.org)
Posts: 1,900

Rep: Reputation: 69
Well, are you sure you cannot just install openvpn from distribution repository? In the simple case like you are describing you should have a reason not to install your software via "yum install".
 
Old 02-09-2009, 12:38 AM   #3
kevinyeandel
Member
 
Registered: Jun 2008
Posts: 49

Original Poster
Rep: Reputation: 16
To a greater degree that would solve many problems. Seems that not all packages are yum installable. I'd like to have the answer up my sleeve anyhow.

However, one thing comes to mind is that I want my distribution/configuration all sourced from the exact same tarballs for 'sanity' reasons. I guess yum has some config options for pulling down exact versions (shall have to look into that).

Most of the stuff is successfully going over via rsync from a main server.

Kevin
 
Old 02-09-2009, 12:51 AM   #4
raskin
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: approximately NixOS (http://nixos.org)
Posts: 1,900

Rep: Reputation: 69
I am very tempted now.. If you want sanity with exact same sources etc, try Nix ( http://nixos.org ).
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Server deployment phru Linux - Server 9 03-12-2008 04:11 AM
Kickstart automation deployment help bbmak Linux - Enterprise 5 02-20-2007 02:06 AM
teaching shell scripting: cool scripting examples? fax8 Linux - General 1 04-20-2006 04:29 AM
Packaging and Deployment VB lramos85 Programming 1 03-28-2005 11:44 AM
Image Deployment brokenflea Slackware 5 07-04-2004 02:41 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 08:23 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration