Chef Automate – Installation guide

Hi guys! let’s take a look of Chef Automate.. In this post we will se how to install it quickly. I will install it through Vagrant but you can use my cookbook into a Chef Server. Requirements: a Chef Server. Change default[‘chef_automate’][‘chef_server’][‘url’] with the correct IP an user’s key (client.pem) of a member of your Chef Server Organization. […]

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 […]

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 […]