Skip to content

Instantly share code, notes, and snippets.

View alokjani's full-sized avatar

Alok Jani alokjani

  • Ontario
View GitHub Profile
@jaceklaskowski
jaceklaskowski / deployment-tool-ansible-puppet-chef-salt.md
Last active January 3, 2024 22:12
Choosing a deployment tool - ansible vs puppet vs chef vs salt

Requirements

  • no upfront installation/agents on remote/slave machines - ssh should be enough
  • application components should use third-party software, e.g. HDFS, Spark's cluster, deployed separately
  • configuration templating
  • environment requires/asserts, i.e. we need a JVM in a given version before doing deployment
  • deployment process run from Jenkins

Solution

@ajayhn
ajayhn / all-in-one-openstack-trusty-mainline
Last active May 18, 2016 17:18
all-in-one-openstack-trusty-mainline
#!/bin/bash
# E.g. (OPENSTACK=juno CONTRAIL=R2.20 BUILD=102-juno bash -x all-in-one-openstack-trusty-mainline)
set -x
# Inputs from user with defaults
OPENSTACK=${OPENSTACK:-juno}
CONTRAIL=${CONTRAIL:-mainline}
BUILD=${BUILD}
VROUTER_INTF=${VROUTER_INTF:-eth0}
@ajayhn
ajayhn / publishing-to-aptly
Last active May 18, 2016 17:18
publishing-to-aptly
# Mainline
(OPENSTACK=${OPENSTACK:-juno}; \
rm -rf latest-packages; \
mkdir latest-packages; \
BRANCH=mainline; \
LATEST_PATH=/github-build/${BRANCH}/2619/ubuntu-14-04/${OPENSTACK}/artifacts/; \
TGZ_PACKAGES='contrail-installer-package*.tgz,contrail-install-packages*.tgz,contrail-packages*.tgz,contrail-openstack-packages*.tgz'; \
scp hajay@10.84.5.31:${LATEST_PATH}/\{${TGZ_PACKAGES}\} latest-packages/; \
BUILD=$(ls latest-packages/contrail-packages*.tgz | cut -d / -f 2 | sed -r 's/contrail-packages_(.*).tgz/\1/'); \
for x in $(ls latest-packages/*.tgz); do tar xvfz $x -C latest-packages/; rm $x; done; \
@halberom
halberom / 01_gather_installed.py
Last active November 22, 2021 10:37
ansible - example of custom module to gather info on installed packages
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Note: only works on RedHat family
# This library should be saved to the 'library/' folder relative to your playbooks/inventory
import rpm
def _check_installed(module):
ts = rpm.TransactionSet()
- notes from 1-23-15
1. on boarding
- we need to have a plan for how to on board new team members
- as people want to join
- - we need low hanging fruit to get started
- check issues in github
- check all warning/errors across all logs on deployemnts, pick a log message, log a ticket, make it go away
- fix a failing tempest test
- - we need to write more specifications and allow people to engage by designing larger feature sets
@alokjani
alokjani / gist:d9eda34a1b5ab70a50e8
Last active November 1, 2019 08:15
Howto - Ubuntu 14.04 with Request Tracker and RT for Incident Response

Ubuntu 14.04 Request Tracker RT 4.0.22 RT for Incident Response RTIR 3.0.4

Request Tracker Installation

export http_proxy="http://10.x.x.x:3128"
export https_proxy="http://10.x.x.x.x:3128"