18Feb

TeamCity build for automated deployments (part 1 of 2)

This post is going to detail how I am creating and using Chocolatey packages to enabled automated deployments on Windows servers.

Note: It is part one of a two part series detailing the whole process.

Firstly we need to understand the tools and languages I am using to make this all possible.

1. Chocolatey

Chocolatey is kind of like apt-get, but for Windows (with windows comes limitations).
It is a machine level package manager that is built on top of NuGet command line and the NuGet infrastructure.

An example of a chocolatey installation can be seen below

For more information please visit https://chocolatey.org/about

2. psake

psake is a domain-specific language and build automation tool written in PowerShell to create builds using a dependency pattern similar to Rake or MSBuild. It dramatically simplifies the build language as compared to MSBuild scripting. A build script consists of Tasks. Each Task is a function that can define dependencies on other Task functions (see below).

For more information please visit https://github.com/psake/psake

Read More »

12Feb

Creating a VmWare “estate” using PowerCLI & WinRM

The following post details the steps I went through to create a VmWare “estate” using PowerCLI & WinRM

What is PowerCLI?

VMware vSphere PowerCLI is a command-line interface (CLI) tool for automating vSphere and vCloud management. VMware vSphere PowerCLI debuted as the VMware Infrastructure Toolkit, also called the VI Toolkit.

What is WinRM?

WinRM is short for Windows Remote Management. It is Microsoft’s new remote management standard which allows administrators to remotely manage and remotely execute programs on windows machines. Prior to this Remote Procedure Calls (RPC) had to be used for everything by collecting data from the COM and DCOM services. A popular remote management tool that used these RPC calls was the PSTools package by Sysinternals

Let’s get started …

Below displays the files and directories required to create our “estate”

Capture

1. The csv file …

The whole process is derived from an excel spreadsheet (CSV file) containing the following columns

Name | Template | OSCustomisation | memGB | numcpus | cluster | folder | runlist | chefenv

See example below …

  • Name - SW-GW-APP-01
  • Template - WIN_2012R2_CHEF_NODE_TEMPLATE
  • OSCustomisation - MSDNWIN2012CORE
  • memGB - 4
  • numcpus - 2
  • cluster - Development
  • folder - Game_Dev\PERSONAL\StevenWade\CI
  • runlist - recipe[core::default]
  • chefenv – ci

Note: The “runlist” contains the list of Chef recipes which need to be ran to bring each VM inline and deploy the necessary artefacts(s)

Read More »

9Feb

Installing Artifactory Pro on RHEL 6

artifactory.logo.155x35

 

The following is a guide to installing Artifactory Pro on Red Hat Enterprise Linux version 6

The first thing we need to do is update the server

It’s always good to be fully updated before starting a new installation.

1. Prerequisites

1.1 Java

Artifactory has a prerequisite that Java is installed beforehand, so we best install and configure it.

We firstly need to locate which “bit version” the server is running.

If the response is i686, you have a 32-bit version of Linux.
If the response is x86_64, you have a 64-bit version of Linux.

Now browse to http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html and locate the necessary RPM we need to download.

Install Java using the rpm file we just download

Read More »

9Feb

Creating a “chef node” VM template

The following blog post detail the steps required for create a VM template which will act as “chef node”

The idea is that we will use this template when creating any new servers in our environment.

Note: The following is for a Windows Server 2012 R2 template

So lets begin …

Installing Chef client msi

To install the chef client onto the template please use the following url

https://docs.chef.io/install_windows.html

Note: You need to allow “Chef Client Service” to be installed

This should create c:\chef by default with a few files and folders in there.

Read More »

29Jan

Installing Chef Server 12 on RHEL 6

The following is a guide to installing Chef Server 12 on Red Hat Enterprise Linux version 6

The first thing we need to do is update the server

It’s always good to be fully updated before starting a new installation.

Now, we need to go to the Chef 12 download page and locate the URL for the rpm package (we will download this to “/tmp” on the server).

Before installing, we need to disable SELinux as it does not play nice with Chef.

Now you are install the Chef Server…

Read More »

26Jan

Starting the journey …

10759189_8333840_lzSo, today is the day, the day that my nutrition and workout plan finally arrives “via email” from the main man Alex Ritson.

To get in touch with him, hit him up on the following …

Facebook – https://www.facebook.com/www.alexritson.co.uk?fref=ts

Twitter – https://twitter.com/AlexJamesRitson

Instagram – http://instagram.com/alexjamesritson

I can’t wait to start working with this guy his knowledge and attention to detail is second to none.

The first goal is to lose a stone in the first 8 – 10 weeks of my program.

I will be updating this blog weekly with my progress, letting you guys into how I am feeling, what I have been doing and what food I have been eating.

Note: Alex is a strong believer in “If It Fits Your Macros” IIFYM for short. Therefore I won’t just be eating chicken, rice & peas.

I will upload the plan Alex provides me to this post so that you guys can see his attention to detail for your own eyes.

Update:

So guys, I have just got done spending 15 – 2o minutes on good old FaceTime with Alex going over the workout and meal plans.

I can’t recommend/praise this guy enough his attention to detail is something else.

He has provided me with a 10 week training plan as well as meal plans (with ingredients and where to source them).

Basically … it’s an “idiots guide” not calling myself an idiot obviously ;)

So for those who are interested I will be squatting 4 times a week to help build my quads and muscles around my knees.

The goal is to eventually get back to kicking a ball around with worrying too much about injuring myself.

Steven Wade 1st Quarter Program 2015 (1st weight loss block)

The link above contains information about my first “block” of training.

To repay Alex for all his hard work I am going to be developing a website for him so stay tuned for that.

20Jan

Welcome ….

welcome_1Hi all,

So most of you have probably been thinking to yourself things like “where has Steve been?”

Well, I have been extremely busy working on a number of projects both personally and professionally.

The main projects are:

  1. Changing job roles from working as a developer to now being a DevOps engineer
  2. Deciding to finally get my fitness and nutrition on point.
  3. Setting myself up as a limited company – Steven Wade Consulting Ltd

I would like to shout out Alex Ritson regarding the fitness and nutrition.

We had a coffee about a week ago now and he completely changed my attitude towards fitness and nutrition. I am now a fully fledged member of #TeamRitson

Anybody looking to get themselves “in shape” I can highly recommend him, his attention to detail is second to none, just ask Charlie Smith

This year I will be aiming to blog at least once a week on …

  • My journey into the DevOps space
  • My fitness and nutrition journey with TeamRitson
  • New music

Watch this space, I have a lot of things in store for 2015 and hope you can follow me on this year long journey …

© Copyright 2015, All Rights Reserved