Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
# Tested on RHEL 7.2, 2 Oct 2016
yum update -y
yum install -y curl policycoreutils openssh-server openssh-clients
systemctl enable sshd
systemctl start sshd
yum install -y postfix
systemctl enable postfix
@jason-callaway
jason-callaway / mkuser.sh
Created September 20, 2016 02:38
Script for setting up the ansible-workshop deploy host's users
#!/bin/bash
for i in {1..40}; do
# Make the user
s="student${i}"
useradd -m ${s}
# Set up AWS CLI
mkdir -p ${s}/.aws
cp /root/.aws/* ${s}/.aws/
@jason-callaway
jason-callaway / hosts
Last active July 8, 2016 14:03
Example ose32 hosts file
[OSEv3:children]
masters
nodes
[OSEv3:vars]
ansible_ssh_user=ec2-user
ansible_sudo=true
containerized=false
ansible_become=yes
debug_level=2
### Keybase proof
I hereby claim:
* I am jason-callaway on github.
* I am jasoncallaway (https://keybase.io/jasoncallaway) on keybase.
* I have a public key whose fingerprint is D9DB 8830 DBE0 2D60 6566 94F4 1BCC 8A43 D9DD 8914
To claim this, I am signing this object:
@jason-callaway
jason-callaway / keybase.md
Created September 27, 2015 00:26
keybase.md

Keybase proof

I hereby claim:

  • I am jason-callaway on github.
  • I am jasoncallaway (https://keybase.io/jasoncallaway) on keybase.
  • I have a public key whose fingerprint is C3AF 762D 4E3A 9E39 E335 BE1C CAF6 1BBE 5571 5477

To claim this, I am signing this object: