Customer staging/production configuration

Enfold Systems supports following Linux OS distributions:

* Ubuntu Hardy 8.04 LTS (i386, amd64)

* Ubuntu Lucid 10.04 LTS (i386, amd64)

* RedHat RHEL 5 (i386, amd64)

Enfold Systems public gpg key

Ubuntu

This section applicable for all Ubuntu versions. All repositories are signed with Enfold Systems GPG key. To use Enfold Systems repositories gpg public key should be installed to apt-get keychain. Download Enfold Systems public key:

>> wget -c http://www.enfoldsystems.com/pubkey.gpg

Install public key to apt-get key chain with following commands:

>> apt-key add ./pubkey.gpg

RedHat

Download Enfold System’s public gpg key:

>> wget -c http://www.enfoldsystems.com/pubkey.gpg
>> mv pubkey.gpg /etc/pki/rpm-gpg/RPM-GPG-KEY-enfold

Import key into RPM:

>> rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-enfold

Plone based application on Ubuntu

Plone based application requires repository with plone core package and customer specific repository.

Modify apt-get sources list file:

>> vim /etc/apt-get/sources.list

Add following lines to sources.list on staging 10.04 server:

deb http://package.enfoldsystems.com/ubuntu lucid universe
deb http://name:passwd@package.enfoldsystems.com/clients/name staging universe

Add following lines to sources.list on production 10.04 server:

deb http://package.enfoldsystems.com/ubuntu lucid universe
deb http://name:passwd@package.enfoldsystems.com/clients/clientname production universe

Add following lines to sources.list on staging 8.04 server:

deb http://package.enfoldsystems.com/ubuntu hardy universe
deb http://name:passwd@package.enfoldsystems.com/clients/name staging universe

Add following lines to sources.list on production 8.04 server:

deb http://package.enfoldsystems.com/ubuntu hardy universe
deb http://name:passwd@package.enfoldsystems.com/clients/clientname production universe

name and passwd are customer specific information and can be obtained from Enfold Systems.

Update apt-get database:

>> apt-get update

Install customer application:

>> apt-get install application

Plone3 based application on RedHat RHEL5

Create and modify enfold.repo configuration file for yum:

/etc/yum.repos.d/enfold.repo

Add following lines to ‘/etc/yum.repos.d/enfold.repo’ file for staging 64bit system:

[plone-x86_64]
name=Plone RPMs repository
baseurl=http://package.enfoldsystems.com/rhel5/x86_64
enables=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-enfold

[customer-x86_64]
name=Customer RPMs repository
baseurl=http://name:passwd@package.enfoldsystems.com/clients/name/staging/x86_64
enables=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-enfold

Add following lines to ‘/etc/yum.repos.d/enfold.repo’ file for staging 32bit system:

[plone-i386]
name=Plone RPMs repository
baseurl=http://package.enfoldsystems.com/rhel5/i386
enables=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-enfold

[customer-i386]
name=Customer RPMs repository
baseurl=http://name:passwd@package.enfoldsystems.com/clients/name/staging/i386
enables=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-enfold

Add following lines to ‘/etc/yum.repos.d/enfold.repo’ file for production 64bit system:

[plone-x86_64]
name=Plone RPMs repository
baseurl=http://package.enfoldsystems.com/rhel5/x86_64
enables=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-enfold

[customer-x86_64]
name=Customer RPMs repository
baseurl=http://name:passwd@package.enfoldsystems.com/clients/name/production/x86_64
enables=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-enfold

Add following lines to ‘/etc/yum.repos.d/enfold.repo’ file for production 32bit system:

[plone-i386]
name=Plone RPMs repository
baseurl=http://package.enfoldsystems.com/rhel5/i386
enables=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-enfold

[customer-i386]
name=Customer RPMs repository
baseurl=http://name:passwd@package.enfoldsystems.com/clients/name/staging/i386
enables=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-enfold

name and passwd are customer specific information can be obtained from Enfold Systems.

To install customer application use following commands:

>> yum clean
>> yum install application

Plone4 based application on RedHat RHEL5

Plone4 requires plython2.6, by default it is not availble for RHEL5. Customer can install python2.6 from EPEL repository:

For 32bit system:

>> rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-4.noarch.rpm
>> yum install python2.6

For 64bit systems:

>> rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm
>> yum install python2.6

Then use instruction from previous section.

Automatic installation

Ubunuty only

Put install-package.sh to /etc/cron.daily/ directory. Modify CLIENT, PACKAGE, EMAIL variables.

This script will create file in /var/log/INSTALL-$PACKAGE/ directory with output from apt-get and package configuration script. In case if package is failed to install log info sends to EMAIL address.

  • CLIENT - Client name
  • PACKAGE - Package to install
  • EMAIL - comma separated email addresses


blog comments powered by Disqus