I hereby claim:
- I am rstarmer on github.
- I am rstarmer (https://keybase.io/rstarmer) on keybase.
- I have a public key ASBpEmOyOynL2lbEdpgfPmMX3uhr3nD1jqLITSNYZ5ZzLgo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
--- | |
# Source: metrics-server/templates/metrics-server-serviceaccount.yaml | |
apiVersion: v1 | |
kind: ServiceAccount | |
metadata: | |
name: metrics-server | |
labels: | |
app: metrics-server | |
chart: metrics-server-2.8.8 | |
release: metrics-server |
#!/bin/bash | |
# | |
# This script is meant to be run once after running start for the first | |
# time. This script downloads a cirros image and registers it. Then it | |
# configures networking and nova quotas to allow 40 m1.small instances | |
# to be created. | |
IMAGE_URL=https://cloud-images.ubuntu.com/trusty/current/ | |
IMAGE=trusty-server-cloudimg-amd64-disk1.img | |
IMAGE_NAME=Ubuntu1404 |
#!/bin/bash | |
curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key add - | |
cat <<EOF > /etc/apt/sources.list.d/kubernetes.list | |
deb http://apt.kubernetes.io/ kubernetes-xenial main | |
EOF | |
apt-get update | |
apt-get dist-upgrade -y | |
apt-get install -y docker.io | |
apt-get install -y kubelet kubeadm kubectl kubernetes-cni |
# This file describes the network interfaces available on your system | |
# and how to activate them. For more information, see interfaces(5). | |
source /etc/network/interfaces.d/* | |
# The loopback network interface | |
auto lo | |
iface lo inet loopback | |
# The primary network interface |
- name: Get project from git | |
git: clone=yes dest=/var/www/ruby_hw repo=https://github.com/rstarmer/ruby_hw version=travisci | |
- name: Ensure .ssh director for web user | |
file: state=directory owner=web recurse=yes path=/home/web/.ssh mode=0700 | |
- name: Add ssh public key for travis-CI deployment | |
shell: cat /var/www/ruby_hw/travis.pub >> /home/web/.ssh/authorized_keys | |
- name: Ensure authroized_keys for web user |
#provider "openstack" { | |
# user_name = "admin" | |
# tenant_name = "admin" | |
# password = "pwd" | |
# auth_url = "http://myauthurl:5000/v2.0" | |
#} | |
resource "openstack_compute_instance_v2" "ruby-hw" { | |
name = "ruby-hw.opsits.com" | |
image_id = "7f85f7b3-eb20-4bef-8bad-bb3583a9a2fd" |
#!/bin/bash | |
cd /var/www/ruby_hw | |
git pull | |
mkdir /var/www/ruby_hw/tmp | |
touch /var/www/ruby_hw/tmp/restart.txt |
# spec/hw_spec.rb | |
require File.expand_path '../spec_helper.rb', __FILE__ | |
describe "My Sinatra Application" do | |
it "expect accessing the home page to be successful" do | |
get '/' | |
expect(last_response).to be_ok | |
end | |
end |
require 'rspec/core' | |
require 'rspec/core/rake_task' | |
task :default => :spec | |
desc "Run our Spec" | |
RSpec::Core::RakeTask.new(:spec) |