Skip to content

Instantly share code, notes, and snippets.

@mrzarquon
mrzarquon / gist:4710936
Created February 5, 2013 00:03
Common dependencies / packages
Installed:
apr.x86_64 0:1.3.9-5.el6_2
apr-util.x86_64 0:1.3.9-3.el6_0.1
apr-util-ldap.x86_64 0:1.3.9-3.el6_0.1
cronie.x86_64 0:1.4.4-7.el6
dmidecode.x86_64 1:2.11-2.el6
java-1.6.0-openjdk.x86_64 1:1.6.0.0-1.50.1.11.5.el6_3
libxslt.x86_64 0:1.1.26-2.el6_3.1
mailcap.noarch 0:2.1.31-2.el6
mysql.x86_64 0:5.1.66-2.el6_3
@mrzarquon
mrzarquon / gist:5061494
Created March 1, 2013 00:40
OVFTool quick deploy
/Applications/VMware\ OVF\ Tool/ovftool --skipManifestCheck --name=VCSA-5.1 -dm=thin -ds=datastore1 "--net:Network 1=VM Network" --powerOn VMware-vCenter-Server-Appliance-5.1.0.5300-947940_OVF10.ova vi://10.16.XXX.XXX
@mrzarquon
mrzarquon / service_window
Last active December 14, 2015 11:29
Possible way to stop/start services in a puppet run.
service_window { 'apache-stop':
ensure => stopped,
service_name => 'apache',
}
package { 'new-app':
ensure => installed,
require => Service_Window['apache-stop'],
before => Service_Window['apache-start'],
}
@mrzarquon
mrzarquon / gist:5109553
Last active December 14, 2015 15:39
If william carlos williams were alive today and working for a startup.
"this is just to say
I have solved
the ticket
that I submitted
yesterday
and which
you were probably
trying
@mrzarquon
mrzarquon / Vagrantfile
Created May 21, 2013 18:30
My sample vagrant file for three hosts with our -nocm boxes May have to update it for Vagrant 1.1/1.2, http://docs.vagrantup.com/v2
Vagrant::Config.run do |config|
#config.vm.box = "base"
config.vm.define :master do |master_config|
master_config.vm.box = "ubuntu-12.04.2-server-amd64-vbox-428-nocm.box"
master_config.vm.box_url = "http://puppet-vagrant-boxes.puppetlabs.com/ubuntu-server-12042-x64-vbox4210-nocm.box"
master_config.vm.forward_port 443,8443
master_config.vm.forward_port 22,20022
master_config.vm.network :hostonly, "172.16.253.5"
master_config.vm.share_folder("modules", "/modules", "./modules")
end
#!/bin/bash
# lazily modified from here: http://unix.stackexchange.com/questions/204069/all-possible-combinations-of-characters-and-numbers
for c1 in {A..Z} {a..z} {0..9}
do
for c2 in {A..Z} {a..z} {0..9}
do
for c3 in {A..Z} {a..z} {0..9}
do
for c4 in {A..Z} {a..z} {0..9}
@mrzarquon
mrzarquon / content of .repo file
Last active December 19, 2015 16:39
yum repo
[puppetlabs-products]
name=Puppet Labs Products El 6 - $basearch
baseurl=http://yum.puppetlabs.com/el/6/products/$basearch
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-puppetlabs
enabled=1
gpgcheck=1
@mrzarquon
mrzarquon / top 10
Created July 12, 2013 21:09
Sorted_list
['rtyler/puppet', 9]
['wcooley/fail_unconfigured', 18]
['bobsh/puppetdb', 30]
['cloudsmith/demoapp', 51]
['gioppoluca/wso2am', 55]
['gioppoluca/wso2bam', 59]
['ngiger/elexis_cockpit', 60]
['gioppoluca/moodle', 60]
['reidmv/mcollective', 61]
['viirya/storm', 61]
@mrzarquon
mrzarquon / top 10
Created July 12, 2013 21:09
Sorted_list
['rtyler/puppet', 9]
['wcooley/fail_unconfigured', 18]
['bobsh/puppetdb', 30]
['cloudsmith/demoapp', 51]
['gioppoluca/wso2am', 55]
['gioppoluca/wso2bam', 59]
['ngiger/elexis_cockpit', 60]
['gioppoluca/moodle', 60]
['reidmv/mcollective', 61]
['viirya/storm', 61]
@mrzarquon
mrzarquon / gist:6020701
Created July 17, 2013 13:48
puppet is nice.
#!/bin/bash
agent_certname=$1
/opt/puppet/bin/puppet resource ini_setting certname \
path="/etc/puppetlabs/puppet/puppet.conf" \
section="main" \
setting="certname" \
value="${agent_certname}" \
ensure="present"