Feb
01
2019
0

How to create a Windows 10 VM in Azure with Terraform

For example Terraform doesn’t validate hostname or password values that are to short. Instead your Windows 10 VM will simply fail. If you enable boot logging you will get a black screen with OOBE error.

Written by mattb in: Automation,Linux,Windows |
Dec
09
2018
0

How to setup a Python-Jenkins API connection with Python 3

I’m working a project to create Python program that scrapes jobs from a Jenkins server, with the end goal of storing them in a Mongo NoSQL database as an archive.  At work we have more than a dozen build servers that will ultimately will be consolidated to a few.  My plan(since we are moving to […]

Nov
20
2017
0

Ansible: How to automate past “Initial setup of CentOS Linux 7” message

  I recently came across an annoying issue with CentOS 7 setup.  I started with a minimal install, completed my installation(including mate desktop) and rebooted.  When I attached to the console of the newly minted VM I discovered it was stuck at a license prompt.  To avoid this issue…

Oct
15
2017
0

Ansible: How to set user passwords

  I’m in the process of converting my Fabric PBX automated installation to an Ansible playbook, but I got stuck on the user module portion.  I want to pass a default password to user accounts.  Ansible’s user module requires the crypted SHA512 hash rather than taking a password.  In other words, instead of supplying a […]

Sep
11
2017
0

Automate WordPress backup with Python / Fabric

Python’s Fabric module makes automation easy.  This post shows how to use a Fabric script to backup a WordPress installation, but could be used for most LAMP backup situations! Goals of this Post: backup SQL to /tmp backup WEB ROOT to /tmp tar SQL + site & zip download delete /tmp

Jul
27
2017
0

Python module for generating NPC’s in Star Wars RPG

Recently table top gaming has made a huge comeback.  For the first time in 20 years my friends and I are role playing!  We agreed on the new Star Wars RPG by Fantasy Flight games, STAR WARS: Age of Rebellion role playing game.  It’s novel in many aspects compared to the previous D6 and D20 […]

Jun
26
2017
0

How to handle Python 3 Fabric exceptions with a Decorator

Python’s Fabric module is an easy and efficient way for task based automation.  I use it to automate the installation of VoIP phone systems on CentOS 6/7.  In a nut shell, Fabric executes shell commands over SSH.  It also can be used to automate local tasks.  The purpose of this article is to highlight the […]

Jun
21
2017
0

Automate Git Repository Setup with Python & Fabric

I love Git.  I find Git to be an intuitive way to track many versions between many systems.  Now all my default config files and scripts utilize Git.  However, logging into a server and creating the Git repo, then cloning it is a number of steps that detracts from getting work done.   This tutorial […]

Jun
08
2017
0

How to Install and Configure Basic Git Server on CentOS 6

Git has changed my life.  I’m not exaggerating.  I work with a lot of ‘one off’ scripts (BASH, PHP, and Python).  They are spread out among systems and developed from my workstation and(sometimes) laptop.  I spent 15 years keeping multiple versions and copies of the same scripts spread between systems.  Looking back it seems Crazy! […]

Written by mattb in: Automation,Linux | Tags: , , , , ,
Mar
09
2010
55

How to Install Windows 7 over a Network using Linux – PXE, DNSMasq, and Samba

As the age of the netbook arises; the ability to provision Operating Systems over the network becomes highly useful.  More and more these days, it’s less common to see CD/DVD ROM drives in laptops.  In my particular situation my laptop DVD-ROM drive failed.  This prompted me to embark on journey of sleepless nights, sifting through […]