Autoscaling with EC2 and Chef

Dear all, It has been a long time since my last post and here I am with a new one, just to keep track of my current study case… I would like to put in place an auto-scaling mechanism for my lab platform. Currently I have one Ha-Proxy load balancer with 2 backends. I will perform stress test on my […]

Build chef LWRP and manage OpenSSH server banner with Chef

Hi guys, in this article we will se how to build a small LWRP Chef cookbook..The final result will be: ssh_banner_banner “banner” do banner_file _banner_file sshd_config_file node[‘ssh_banner’][‘sshd_config_file’] paranoic_mode true action :create notifies :restart, “service[sshd]” end If “paranoic mode” is true, chef will change configuration file and restart sshd, but after 20 seconds (by default) it […]

Install Linux Centos 7 with kickstart on Virtualbox

Hi guys, let’s see how to install the new version of Centos using a kickstart file. Preparing a web-server for publish a simple kickstart file (nodeA). We will use Virtuabox with an internal network and install the OS on nodeB After the installation on nodeA will be generated a kickstart /root/anaconda-fs.cfg Assign the IP […]

Removing a Disk from a Logical Volume

Hi, let’s see how to remove a disk from a logical volume without losing data. This is the initial schema: Server: CentosLab01 (Centos 6.5) Disk to use: Disk /dev/sdb: 1073 MB, 1073741824 bytes (DISK A) Disk /dev/sdc: 1073 MB, 1073741824 bytes (DISK B) Disk /dev/sdd: 1073 MB, 1073741824 bytes (DISK C) Creating lv_test logical volume […]

Configure Samba with Active Directory integration (Centos 6)

Let’s see how to integrate your samba server with Microsoft Active Diretory. Domain: NOODLES   (NETBIOS name) FQDN: Domain controller 1: Domain controller 2: Local Unix account: puppet Domain Account: NOODLES\puppet Packages to install via yum: [ krb5-libs , krb5-devel , samba , samba-common , samba-winbind , samba-client , samba-winbind-client ] create […]

use Haproxy to publish an internal SFTP

Hi guys, In this post we will see how to publish safely on internet an internal SFTP server passing trough Haproxy. In the example we will allow only a particular external IP increasing the security. Let’s prepare the internal backend An example of my SSH configuration  (edit the file  /etc/ssh/sshd_config ) ChrootDirectory none # override […]

Setting up Wildfly8 Cluster in 5 minutes with Chef and Vagrant

Hi! This is my first post of this blog and I would like start with my last cookbook “wildfly-clu”.   We will create a simple Wildlfy cluster(domain mode) composed by 3 servers. For this test I will use CentOS release 6.3 (Final). Final result: Reach HelloWorld application to http://myserver1/helloworld  ( passing through reverse proxy) You […]