[ixpmanager] Server rebuild

Brian Thompson brian.thompson at iovation.com
Sat Oct 12 01:28:33 IST 2013


Rowan,

Plugging away at your autoinstall script.  Most of it is tweaking the
conf.sh file.

I have found that it would be useful to include at least in the
documentation of all the package dependencies the script requires.

I started with ubuntu-12.10-server-i386.iso and added openssh, lamp, and
mail packages.

   1  vi /etc/locale.gen
    2  locale-gen
    3  vim /etc/locale.alias
    4  aptitude update
    5  cd /usr/local/
    6  apt-get install git
    7  vim /etc/hosts
    8  git https://github.com/rowanthorpe/ixp-autoinstall.git autoinstall
    9  git
   10  apt-get install memcached
   11  apt-get install subversion
   12  apt-get install php5-memcache
   13  apt-get install php5-snmp
   14  apt-get install php-apc
   15  git clone https://github.com/rowanthorpe/ixp-autoinstall.gitautoinstall
   16  cd autoinstall/
   17  ls
   18  vim ixp-autoinstall_conf.sh.dist
   19  ls
   20  ./ixp-autoinstall.sh
   21  cp ixp-autoinstall_conf.sh.dist ixp-autoinstall_conf.sh
   22  ./ixp-autoinstall.sh

Found pear was missing

 26  pear channel-discover pear.symfony.com
   27  apt-get install php-pear
   28  pear channel-discover pear.symfony.com
   29  pear channel-discover pear.doctrine-project.org
   30  pear install doctrine/DoctrineORM
   31  ls
   32  cd ..
   33  ls
   34  cd ..
   35  ls
   36  updatedb
   37  locate ixp
   38  cd /usr/share/php/Doctrine
   39  ln -s ../Symfony
   40  ./ixp-autoinstall.sh
   41  cd /usr/local/autoinstall/
   42  ./ixp-autoinstall.sh
   43  rm -rf /opt/ixpmanager

Found 43 very useful
Then found I needed to flip a switch in the install.sh for mysql passwords.

Then found 55 very useful

 55  mysqladmin -u root -p drop ixp

Discovered MRTG not installed.

 68  apt-get install libconfig-general-perl libnetaddr-ip-perl mrtg
   69  mkdir -p /srv/mrtg
   70  mkdir -p /srv/mrtg/members


Currently I am still on MRTG with this error.

ixp-autoinstall.sh: setting up mrtg
sed: can't read /etc/mrtg-rrd.conf: No such file or directory

I haven't been able to determine where in the recipe this file gets built.

How is my recipe differing from yours?

Thanks,
Brian


*Brian Thompson*
Senior Infrastructure Engineer // Senior Second Guesser

Direct: 503.943.6779
Mobile: 503.707.9018 // Twitter: iovation
*www.iovation.com*



On Fri, Oct 11, 2013 at 2:09 PM, Brian Thompson <brian.thompson at iovation.com
> wrote:

> I may play with it on a third machine, although this is where things go
> sideways, I am  not a programer or developer.
>
> Setting variables is one thing,  Understanding the whole script might be
> another.
>
> Thanks, I will give it a try.
>
> Brian
>
> *Brian Thompson*
> Senior Infrastructure Engineer // Senior Second Guesser
>
> Direct: 503.943.6779
> Mobile: 503.707.9018 // Twitter: iovation
> *www.iovation.com*
>
>
>
> On Fri, Oct 11, 2013 at 1:39 PM, Rowan Thorpe <rowan at rowanthorpe.com>wrote:
>
>> > I should be able to download and install IXP Manager and required
>> > libraries create database
>> >
>> > copy application.ini .htaccess, ixpmanager.conf and dump and restore
>> > mysql from old server.
>> >
>> > is this correct?
>>
>> As a point of reference (even if you don't actually use it directly,
>> but just peruse its sequence) you might find this "autoinstall" script
>> I created useful https://github.com/rowanthorpe/ixp-autoinstall
>>
>> It is portable POSIX shell. If you do actually try to use it, then
>> *do* read the comments/warnings at the top of the script, and note that
>> it will need tweaking in order to fulfil anything other than the
>> limited requirements I had (presently tested for single IXP, on single
>> server, on Debian GNU/Linux, etc). Also, I only checked it against
>> whatever is the version of IXP-Manager stated in those comments. I made
>> efforts to make it as forward-compatible as possible, but that won't
>> stretch very far. I recommend not actually running the script without
>> reading it and understanding what it does first (unless you're
>> installing to a bare/backed-up offline server).
>>
>> In its present state it is probably much more useful as a visual
>> reference than for direct use by anyone with different requirements
>> from mine, and in that regard it shows that there are quite a few extra
>> steps for bringing IXP-Manager up to a functional state (even if
>> reinstalling a running system - that is what I had to do and why I
>> wrote this script). In fact the main reason I uploaded it was that I
>> think it could be a useful reference for devs to glance at to keep
>> track of how much more of the install process needs to be internally
>> automated to reach "one-click install" state. As IXP-M's install
>> functionality advances that script should be able to shrink...
>>
>> HTH
>>
>> --
>> Rowan Thorpe
>> mailto:rowan at rowanthorpe.com
>> PGP fingerprint:
>>  BB0A 0787 C0EE BDD8 7F97  3D30 49F2 13A5 265D CCBD
>> ----
>> "There is a great difference between worry and concern. A worried
>> person sees a problem, and a concerned person solves a problem."
>>  - Harold Stephens
>> _______________________________________________
>> INEX IXP Manager mailing list
>> ixpmanager at inex.ie
>> https://www.inex.ie/mailman/listinfo/ixpmanager
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.inex.ie/pipermail/ixpmanager/attachments/20131011/4967508c/attachment.html>


More information about the ixpmanager mailing list