Skip to content

Instantly share code, notes, and snippets.

View nick-markowski's full-sized avatar

Nick Markowski nick-markowski

View GitHub Profile
require 'spec_helper_acceptance'
test_name "ignore interface"
hosts.each do |host|
describe "ignore iptables rules on #{host}" do
context 'apply rules and toggle iptables::ignore' do
nic = fact_on(host,'networking.primary').strip
# Remove last character and add universal matcher to test regex
#!/usr/bin/ruby
# Detect the tagger of the latest tagged release
# Create an oath token it github with repo scope
$OAUTH_TOKEN = ENV['OAUTH_TOKEN']
$DEBUG = false
success = {}
failure = {}
# refs recorded for SIMP release 6.0.0
# vi:syntax=ruby
moduledir 'src'
mod 'simp-doc',
:git => 'https://github.com/simp/simp-doc',
:ref => 'master'
mod 'simp-rsync',
@nick-markowski
nick-markowski / catalyst.rb
Last active December 8, 2016 19:12
legacy catalyst detector
#!/usr/bin/ruby
legacy_opts = [
'simp_auditing',
'use_auditd',
'enable_auditing',
'enable_clamav',
'dns::search',
'dns::servers',
'use_fips',
@nick-markowski
nick-markowski / pullit.rb
Last active February 9, 2017 12:33
PR_helper
#!/usr/bin/ruby
require 'highline/import'
# 1
repo = ARGV[0]
dir = ARGV[1]
reponame = repo.split('/')[1]
system( "git clone https://github.com/#{repo} #{dir}" ) or raise "Failed to git clone #{reponame}"
if dir
Dir.chdir dir
@nick-markowski
nick-markowski / tpm_setup.sh
Created July 29, 2016 16:57
Set up swtpm cuse in fc24
#!/bin/bash
#
# TPM creation script.
#
# Version: 0.1.0-Alpha (7/29/2016)
# Only supports fc24.
#
# - Utilizes swtpm_cuse to set up and create a virtual TPM.
# - See https://simp-project.atlassian.net/wiki/x/CgAVAg for information on how to
# install swtpm and enable passthrough in libvirt.