This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
sudo apt-get update | |
sudo apt-get install openjdk-6-jre | |
sudo apt-get install openjdk-6-jdk | |
sudo wget -q -O - http://pkg.jenkins-ci.org/debian/jenkins-ci.org.key | sudo apt-key add - | |
sudo sh -c 'echo deb http://pkg.jenkins-ci.org/debian binary/ > /etc/apt/sources.list.d/jenkins.list' | |
sudo apt-get update | |
sudo apt-get install jenkins | |
sudo apt-get install ant |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Copyright GoDaddy 2014 | |
### Created by: Steve McQuaid - [email protected] | |
### centos-jenkins.sh | |
### This file will configure a Centos VM on Openstack to install jenkins (& java dependency), git, jenkins plugin repository, &Nginx Reverse Proxy to serve Jenkins on Port 80. | |
### @TODO - Solve bug in Docker | |
### @TODO - Pre-configure example job | |
###fixes minor annoyance which will prevent git from authenticating with new host (for git enterprise) | |
### this must be run as root | |
echo "Adding github.secureserver.net to list of known hosts..." |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
HELLOWORLDNODEHOST=n-smcquaid.dev-godaddy.com | |
WORDPRESSHOST=wp-smcquaid.dev-godaddy.com | |
### Pull and run nginx-proxy container | |
git clone https://github.com/jwilder/nginx-proxy.git | |
cd nginx-proxy | |
docker run -d -p 80:80 -v /var/run/docker.sock:/tmp/docker.sock -t jwilder/nginx-proxy | |
cd .. | |
### Run hello-world-node |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
root@9d3edb109d43:/openstack-ci/ansible/wordpress-nginx# ansible-playbook -i hosts site.yml -vvvv | |
PLAY [Install Wordpress, MySQL, Nginx, and PHP-FPM] *************************** | |
GATHERING FACTS *************************************************************** | |
<securityGroups> ESTABLISH CONNECTION FOR USER: smcquaid | |
<securityGroups> REMOTE_MODULE setup | |
<securityGroups> EXEC ['ssh', '-C', '-tt', '-vvv', '-o', 'ControlMaster=auto', '-o', 'ControlPersist=60s', '-o', 'ControlPath=/.ansible/cp/ansible-ssh-%h-%p-%r', '-o', 'Port=22', '-o', 'KbdInteractiveAuthentication=no', '-o', 'PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey', '-o', 'PasswordAuthentication=no', '-o', 'User=smcquaid', '-o', 'ConnectTimeout=10', 'securityGroups', "/bin/sh -c 'mkdir -p /tmp/ansible-tmp-1409305968.4-9507290112498 && chmod a+rx /tmp/ansible-tmp-1409305968.4-9507290112498 && echo /tmp/ansible-tmp-1409305968.4-9507290112498'"] | |
EXEC previous known host file not found for securityGroups | |
<securityGroups> PUT /tm |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- name: Install Wordpress, MySQL, Nginx, and PHP-FPM | |
hosts: wordpress-server | |
remote_user: smcquaid | |
sudo: yes | |
sudo_user: smcquaid | |
roles: | |
- common | |
- mysql |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require "rails_helper" | |
RSpec.describe Invitation do | |
context "with a new object" do | |
it "should create a new instance given a valid attribute" do | |
invitation = Invitation.create!( | |
:sender_id => 1, | |
:recipient_email => "[email protected]", | |
:token => "knjg1h2uye47fuygdwbfhshijdsap90afs9u8y7", | |
:sent_at => Time.now |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
application: | |
interfaces: | |
input: | |
enable-exclusion-check: 'bind(workflow#input.enable-exclusion-check)' | |
enable-whois: 'bind(workflow#input.enable-whois)' | |
message-queue-name: 'bind(workflow#input.message-queue-name)' | |
verbose-log: 'bind(workflow#input.verbose-log)' | |
refresh-timer: 'bind(workflow#input.refresh-timer)' | |
version: 'bind(workflow#input.version)' | |
iis: |
I hereby claim:
- I am stevemcquaid on github.
- I am stevemcquaid (https://keybase.io/stevemcquaid) on keybase.
- I have a public key ASAuBMXA2KpNJEYiXHqcTG-b3excyHbnIih5-hnnde7wCQo
To claim this, I am signing this object:
OlderNewer