Posted on

Installing Redmine on Ubuntu 14.04

Redmine is a free and open source, web-based project management and issue tracking tool. It allows users to manage multiple projects and associated subprojects. It features per project wikis and forums, time tracking, and flexible role based access control.

Installing redmine is as easy as downloading the respective installer from https://bitnami.com/stack/redmine/installer

And running the installer

 

Posted on

Installing Kubernetes on CentOS 7

#You will need 4 centos 7 servers for hosting a kubernetes cluster of 3 nodes and 1 master.

#Kubernetes main server is called a master server

#The worker nodes on which docker containers are deployed, are called Minions

#Kubernetes orchestrates docker containers on those minion servers. The docker+application combo that gets deployed on the minion servers are called the Pods.

#kubectl is the command line tool to do things in Kubernetes

#Out of the 4 servers mark one as the master server.

#Now on the master server do the following as root user:

Continue reading Installing Kubernetes on CentOS 7

Posted on

Installing Zenpack on Zenoss 5

The zenpack installation instructions on zenoss wiki are obsolete for Zenoss 5. Here is how you have to do it on Zenoss 5

mkdir /tmp/zenpack && cd /tmp/zenpack/
serviced service stop zenoss.core
serviced service start ZooKeeper
serviced service start mariadb 
serviced service start RabbitMQ
serviced service start redis
serviced service start zeneventserver 
serviced service start Zope

#If redis fails then use the serviceid shown by the serviced start command for redis service

#Then download zenpack
wget http://wiki.zenoss.org/download/zenpacks/ZenPacks.zenoss.PythonCollector/1.7.4/ZenPacks.zenoss.PythonCollector-1.7.4.egg 

#and install
serviced service run zope zenpack install ZenPacks.zenoss.PythonCollector-1.7.4.egg

#Then start Zenoss
serviced service restart zenoss.core
Posted on

Installing Zenoss5 on CentOS 7

Installing Zenoss 5 is a quite different situation than installing Zenoss 4. The 5th version is built on docker. While it is easier to someone who understands docker, for some it may require a steeper learning curve.

You need two free partitions on your system sda3 and sda4

yum update -y
systemctl stop firewalld && systemctl disable firewalld
mkdir -p /var/lib/docker /opt/serviced/var/volumes
DOCKER_PART=/dev/sda3
APP_PART=/dev/sda4
mkfs -t btrfs –nodiscard $DOCKER_PART
mkfs -t btrfs –nodiscard $APP_PART
APP_PATH=”/opt/serviced/var/volumes”
echo “$DOCKER_PART /var/lib/docker btrfs rw,noatime,nodatacow 0 0” >> /etc/fstab
echo “$APP_PART $APP_PATH btrfs rw,noatime,nodatacow 0 0” >> /etc/fstab
mount -a
if [[ `mount | egrep ‘docker|serviced’` ]]; then echo “Mounted” ; else echo “Not Mounted” ; fi
mount | egrep ‘docker|serviced’
EXT=$(date +”%j-%H%M%S”)
sudo sed -i.${EXT} -e ‘s/^SELINUX=.*/SELINUX=disabled/g’ \
/etc/selinux/config && \
grep ‘^SELINUX=’ /etc/selinux/config
systemctl enable dnsmasq && systemctl start dnsmasq
yum install -y ntp && systemctl enable ntpd
echo “systemctl start ntpd” >> /etc/rc.d/rc.local
chmod +x /etc/rc.d/rc.local
systemctl start ntpd
wget https://yum.dockerproject.org/repo/main/centos/7/Packages/docker-engine-selinux-1.9.0-1.el7.centos.noarch.rpm
rpm -Uvh docker-engine-selinux-1.9.0-1.el7.centos.noarch.rpm
wget https://yum.dockerproject.org/repo/main/centos/7/Packages/docker-engine-1.9.0-1.el7.centos.x86_64.rpm
yum localinstall docker-engine-1.9.0-1.el7.centos.x86_64.rpm
rpm -ivh http://get.zenoss.io/yum/zenoss-repo-1-1.x86_64.rpm
yum clean all
#now reboot system
reboot
#after reboot
yum –enablerepo=zenoss-stable install -y zenoss-core-service
systemctl start docker
ip addr | grep -A 2 ‘docker0:’ | grep inet
#take the ip that shows up in output of previous command and use that instead of 172.31.0.1 in command below
echo ‘DOCKER_OPTS=”-s btrfs –dns=172.31.0.1″‘ >> /etc/sysconfig/docker
EXT=$(date +”%j-%H%M%S”)
sudo sed -i.${EXT} \
-e ‘s|^#[^S]*\(SERVICED_FS_TYPE=\).*$|\1btrfs|’ \
/etc/default/serviced
systemctl stop docker && systemctl start docker
systemctl start serviced
#Now go to Control Center by navigating to server ip using any browser and login using system root username/password
#In control center first add host and then select application to install, complete the wizard.
#Check the server name as it is showing (it will show hostname.internal). Configure your client machine to be able to connect to it using /etc/hosts
#Navigate to hostname url in the format https://zenoss5.hostname.internal

Posted on

Installing Chef Server

Requirement:

intel 64 bit installation of Ubuntu 14.04 with 4GB RAM

Installation Steps:

  1. wget https://web-dl.packagecloud.io/chef/stable/packages/ubuntu/trusty/chef-server-core_12.0.8-1_amd64.deb
  2. sudo dpkg -i chef-server-core_*.deb
  3. sudo chef-server-ctl reconfigure

Configuration Steps:

1. sudo chef-server-ctl user-create username firstname lastname email password –filename ~/.chef/username.pem

As Example:

sudo chef-server-ctl user-create steve steve sullivan steve@study9.com stevepassword –filename ~/.chef/steve.pem

 

2. sudo chef-server-ctl org-create shortname fullname –association_user username –filename ~/.chef/shortname.pem

As Example:

sudo chef-server-ctl org-create study9 Study9 –association_user steve –filename ~/.chef/study9.pem