Results 1 to 7 of 7

Thread: Headless installation on amazon cloud instance questions...

Hybrid View

  1. #1
    Join Date
    Apr 2013
    Posts
    5
    Rep Power
    2

    Question Headless installation on amazon cloud instance questions...

    I'm preparing to move to Amazon (via RightScale) from our existing infrastructure which in short is Plesk. I'm just starting to play around with the Zimbra Open Source installer and I've got a couple questions to start...

    1. First, I've used wget to get started, just wondering if there's a YUM archive I could be using instead?
    2. Since this is going to be a headless install, are there command line options available to "auto-accept" the license questions, and further (I'm stuck at this point due to an issue with our /etc/hosts) if there are further questions during installation, how can I provide input values to them?

    Thanks to anyone that can lend a hand here.

    Kevin.

  2. #2
    Join Date
    Dec 2009
    Location
    Michigan
    Posts
    454
    Rep Power
    5

    Default

    A headless install means that there is no monitor.

    You can still install Zimbra via ssh. The installer is texted based and will work just fine. All of my Zimbra installs are headless.

    But, to show what command line options the installer supports you can run:

    ./install.sh --help

    Doug
    Ben Franklin quote:

    "Those who would give up Essential Liberty to purchase a little Temporary Safety, deserve neither Liberty nor Safety."

  3. #3
    Join Date
    Apr 2013
    Posts
    5
    Rep Power
    2

    Default

    Thanks for your response Doug, much appreciated.

    First, WRT to "Headless Install", I was aware what a headless install was, just put it in there so anyone reviewing was clear that I was doing this via SSH at the command line... less confusion = better answers

    Thanks for the "--help" reference, duh, should have figured that. That said, amongst the various "Skip..." options, I don't see one that would skip the first (two, since it seems to be asked twice) questions: "Do you agree with the terms of the software license agreement? [N]".

    I'm going to be writing either a "RightScript" or Chef script to automate the install of Zimbra, storing the persistent content like mail and accounts on an EBS volume so we can cycle the server when needed and not have to worry about manual interference. So I need to be able to force the installer to skip questions like this. It's unclear in the help if this is something I can include in a "defaultsfile", do you happen to know if there's a reference for this? I'm going to go do my own search, but for the benefit of others in my situation, let's get it up here if possible.

    Thanks again!

  4. #4
    Join Date
    Apr 2013
    Posts
    5
    Rep Power
    2

    Default

    I've found the following thread here in the forums with the example 'defaultsfile' contents: http://www.zimbra.com/forums/install...-attended.html

    But I still don't see anything that would indicate skipping the license agreement question? I'll keep looking...

  5. #5
    Join Date
    Apr 2013
    Posts
    5
    Rep Power
    2

    Default

    Although not very obvious, it seems that using a defaultsfile at all skips that question, now onto the next install error...

  6. #6
    Join Date
    Sep 2006
    Location
    Illinois
    Posts
    374
    Rep Power
    9

    Default

    ecommunities

    Did you come up with a Chef recipe to install Zimbra with a "defaultsfile"? I'm curious because I'm building up the same thing now and that's about the only thing I don't have automated except for provisioning the vm with a VMDK for /opt/zimbra.

    Matt

  7. #7
    Join Date
    Apr 2013
    Posts
    5
    Rep Power
    2

    Default

    Hey Matt, I'm using RightScale's platform so I've got bash scripts at my disposal when creating my server templates, not entirely familiar with all that Chef offers but if you can, here's the script I crafted, there's use of some environment variables as well as a few of my own that I use with RightScale's platform but you'll get the idea anyhow. A previous script downloads a copy of Zimbra I designate into the /tmp dir which is where this one starts, nothing magical going on Hope it helps.

    Code:
    #!/bin/bash
    #
    # Description: Reboot safe Zimbra CS Installer
    #
    # Test for a reboot,  if this is a reboot just skip this script.
    #
    if test "$RS_REBOOT" = "true" ; then
      echo "Skip Zimbra Install on reboot."
      logger -t zimbra::install "Skip Zimbra Install on reboot."
      exit 0
    fi
    
    #
    #  This portion of the RightScript runs only on first Launch boot.
    #
    #  TODO: Update settings to exclude anything relating to setting up new domains, since the
    #        attachment of an EC2 EBS Volume and restoration of the account DB will re-establish
    #        all required domains.
    #
    
    cd /tmp/zcs*
    
    cat >> ./zimbra.defaults << EOF
    AVUSER=admin@$ZIMBRA_FQDN
    CREATEADMIN=admin@$ZIMBRA_FQDN
    CREATEDOMAIN=$ZIMBRA_FQDN
    DOCREATEADMIN=yes
    DOCREATEDOMAIN=yes
    DOTRAINSA=yes
    ENABLEDEFAULTBACKUP=yes
    EXPANDMENU=no
    HOSTNAME=$ZIMBRA_FQDN
    JAVAHOME=/opt/zimbra/java
    LDAPHOST=$ZIMBRA_FQDN
    MODE=https
    MTAAUTHHOST=$ZIMBRA_FQDN
    NOTEBOOKACCOUNT=wiki@$ZIMBRA_FQDN
    UPGRADE=no
    REMOVE=no
    RUNAV=yes
    RUNSA=yes
    SMTPDEST=admin@$ZIMBRA_FQDN
    SMTPHOST=$ZIMBRA_FQDN
    SMTPNOTIFY=yes
    SMTPSOURCE=admin@$ZIMBRA_FQDN
    SNMPNOTIFY=yes
    SNMPTRAPHOST=$ZIMBRA_FQDN
    SPELLURL=http://$ZIMBRA_FQDN:7780/aspell.php
    STARTSERVERS=yes
    TRAINSAHAM=ham@$ZIMBRA_FQDN
    TRAINSASPAM=spam@$ZIMBRA_FQDN
    USEIMAPPROXY=no
    USESPELL=yes
    INSTALL_PACKAGES="zimbra-core zimbra-apache zimbra-ldap zimbra-logger zimbra-mta zimbra-snmp zimbra-spell zimbra-store zimbra-archiving zimbra-proxy"
    CREATEADMINPASS=$ZIMBRA_ADMIN_PASSWORD
    SQLROOTPASS=$DBADMIN_PASSWORD
    LDAPREPPASS=$ZIMBRA_ADMIN_PASSWORD
    LDAPPOSTPASS=$ZIMBRA_ADMIN_PASSWORD
    LDAPAMAVISPASS=$ZIMBRA_ADMIN_PASSWORD
    LDAPROOTPASS=$ZIMBRA_ADMIN_PASSWORD
    LDAPADMINPASS=$ZIMBRA_ADMIN_PASSWORD
    EOF
    
    ./install.sh zimbra.defaults
    
    exit 0
    Last edited by phoenix; 06-06-2013 at 04:07 AM. Reason: insert code tags

Similar Threads

  1. Replies: 9
    Last Post: 01-17-2011, 05:40 AM
  2. zimbra on EC2 instance from amazon
    By frdt in forum Virtualization
    Replies: 3
    Last Post: 11-01-2010, 12:42 PM
  3. Zimbra + Amazon EC2 Questions
    By physikal in forum Installation
    Replies: 2
    Last Post: 09-30-2010, 02:32 PM
  4. Amazon EC2 Cloud spammed
    By bmw in forum Administrators
    Replies: 1
    Last Post: 10-14-2009, 04:29 PM
  5. Remote Backup to Cloud Storage/Amazon S3
    By kd55 in forum Installation
    Replies: 11
    Last Post: 05-04-2009, 05:29 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •