Skip to content

Instantly share code, notes, and snippets.

View samvarankashyap's full-sized avatar
🎯
Focusing

Samvaran Rallabandi samvarankashyap

🎯
Focusing
  • Red Hat
  • Toronto
View GitHub Profile

Automated Testing of LinchPin

LinchPin has automated testing from PR's (Pull Requests) in GitHub. Whenever a PR is updated or the trigger phrase '[test]' is included in the comment a set of tests will be kicked off. These tests are orchestrated via jenkins in the Centos CI openshift environment.

The point of these tests is to verify that LinchPin works correctly in a variety of different environments. We currently exercise current releases of both Centos and Fedora. On those distros we test the following targets: dummy, duffy, aws and libvirt. We are continuing to expand this.

These distros are provided as containers which are deployed inside the openshift environment.

#!/usr/bin/env python
"""
Performs NMAP Scan(s) and tests SSH Connections (If desired)
"""
import argparse
import json
import socket
import nmap
import paramiko
@samvarankashyap
samvarankashyap / trystack.markdown
Created November 10, 2015 23:19 — forked from pcdinh/trystack.markdown
TryStack in 8 Simple Steps

TryStack in 8 Simple Steps

  1. Head over to trystack.org then join the facebook group to get your invite.
  2. When you get the (Somebody) approved your request to join the group TryStack notification, go login to trystack (click login using facebook and approve with facebook).
  3. Click the Security Groups tab, click Edit Rules, and add a couple rules:
    1. imcp, from port: -1, to port: -1, cidr: 0.0.0.0/0
    2. tcp, from port: 22, to port: 22, cidr: your.ip.address.here/32
  4. Click the Keypairs tab, then click Add New Keypair, name it trystack. A file will download to your computer.
  5. Click the Images tab, then click Launch next to one of the images. Fill out the form and make sure to select trystack as your Key Name and include default in the Security Groups. Click launch instance. Note the IP address you are assigned.