I tend to code and architect devops with an eye toward NOT being locked into any particular cloud or service. Netsaint -> Nagios -> Icinga Hudson -> Jenkins VMWare -> Vagrant -> Docker -> Kubernetes -> ECS Everything changes. That ideal cloud you are moving on to right now – will change in five years,…
Continue Readingscripts
Reload Rather than Restart Jenkins (Updated)
There is a method in the GUI for Jenkins that tells the Jenkins java process to reload its config from disk. From outside the GUI, where devops and automation live, you can do the same thing through the jenkins-cli.jar. This needed a script to craft the other pieces needed, retrieving a key from vault in…
Continue ReadingAdding license for Open Source
I have 42 repos that are now going through a process (not THE process, because I’m pretty sure they make this up as they go…) to be released as open source. I needed to add a license comment to javascript, python, yaml, ruby, erb, haml, json, xml, bash shell, and groovy source code files….
Continue ReadingBash Rocks (Direct Access to System)
This script will be re-written in python with test coverage in the next several months. For an ad hoc tool, though, to create POC and raw methods, bash rocks.
Continue ReadingAgent Verify Itself Before Reporting “READY”
As part of building a Jenkins agent AMI in Amazon Web Services, the last plays strip any private keys or authentication tokens off the image. Once it is saved and at rest, no secrets are stored on the image. At boot I have extensive scripting that pulls in the secrets and places them, verifies and…
Continue ReadingPulling in Ansible Variables Explicitly
…, or Templating GitHub Branch Source Org config.xml I created a yaml file ghe_config.yml to provide the values for a jinja template which created the GitHub Branch Source Organization config.xml for a Github organization on Jenkins. These were brought together by an ansible play that explicitly pulled in the ghe_config.yml values and then pushes those…
Continue ReadingFinding AWS AMIs for Jenkins Agents
I created an automagically configured Jenkins controller. It spun up in Amazon Web Services, it grabbed and installed its private keys for access, and it was stateless. But… But the Jenkins AMI came with a Jenkins config.xml configured with agent AMI ids when it was built. As development moved forward (CICD, after all), the config.xml…
Continue ReadingCreating a duplicate GitHub org (script)
I had an existing GitHub organization. It had working code on it, but I needed to duplicate the repos on a separate organization, not through forking off or any connection to the first organization. bash it is… #! /bin/bash # arg is list file # directory to work in DIR=”/Users/dsm/construct” # GitHub server address…
Continue ReadingTwo Instances of Dropbox on OSX
I have a joint dropbox I share with my wife, and a personal dropbox account for professional docs. These articles, followed, allowed running two separate, easily identifiable instances of Dropbox on a MAC. Article from LifeHacker The Terran I used the preferences to set one icon as black and white, leaving the second colored…
Continue ReadingMoinMoin to text perl script
I had a wiki in MoinMoin for sys admin notes and scraps of code and solutions – all the stuff you accumulate to try and not have to solve the same problem over and over from scratch. Moin Moin was flat directory structure coded in python. It’s elegant – but the search function started blowing…
Continue Reading- 1
- 2