Failed to connect to host (could be wrong hostname or firewall issue)
CHECK_NRPE: Socket timeout after 10 seconds.
Was able to connect but the client is not authorized (allow_hosts setting)
CHECK_NRPE: Error - Could not complete SSL handshake.
| TMP36 - 5v temperature sensor. 3 pins (Analog) (5v, gnd, and output) $1-$2 | |
| HS1101 - Humidity sensor (Analog) $3-$5 | |
| DHT22 - Temp/Humidity Sensor (Digital) $3-$6 |
| Size Messages/Second Messages/Hour OnDemand Reservation CPMM (OnDemand) CPMM (Reserved) | |
| m1.small 401 24060 0.044 0.01 1.82876143 0.4156275977 5 shards, 0 replicas 1 sender (5k) | |
| m3.medium 775 46500 0.07 0.018 1.505376344 0.3870967742 5 shards, 0 replicas 1 sender (5k) | |
| m1.medium 804 48240 0.087 0.02 1.803482587 0.4145936982 5 shards, 0 replicas 1 sender (5k) | |
| m1.large 1532 91920 0.175 0.041 1.903829417 0.4460400348 5 shards, 0 replicas 1 sender (5k) | |
| m3.large 1985 119100 0.14 0.037 1.175482788 0.3106633081 5 shards, 0 replicas 1 sender (5k) | |
| m1.xlarge 2086 125160 0.35 0.082 2.796420582 0.6551613934 5 shards, 0 replicas 1 sender (5k) | |
| m3.xlarge 3597 215820 0.28 0.074 1.297377444 0.3428783245 5 shards, 0 replicas 1 sender (5k) | |
| m3.2xlarge 6158 369480 0.56 0.146 1.515643607 0.3951499405 5 shards, 0 replicas 1 sender (5k) | |
| c1.medium 1250 75000 0.13 0.032 1.733333333 0.4266666667 5 shards, 0 replicas 1 sender (5k) |
| #!/bin/bash | |
| PID=`ps -edf | grep "/usr/bin/ruby1.8 /usr/bin/puppet" | grep -v grep | awk '{print $2}'` | |
| PIDS=`ps -edf | grep $PID | grep -v "/usr/bin/ruby1.8 /usr/bin/puppet" | grep -v grep | awk '{print $2}'` | |
| for PID in $PIDS; do | |
| echo $PID | |
| echo cmdline: "`cat /proc/$PID/cmdline`" | |
| echo cwd: "`ls -la /proc/$PID/cwd`" | |
| if [ "x$1" == "x1" ]; then | |
| kill -9 $PID |
| # Puppet | |
| class apache { | |
| package { 'apache': } | |
| service { 'apache': | |
| ensure => running, | |
| require => Package['apache'] | |
| } |
| #!/usr/bin/env ruby | |
| require 'json' | |
| class TFUri | |
| def initialize(uri) | |
| @uri = uri | |
| end | |
| def module_resource? | |
| uri_parts[0] == "module" |
| #!/bin/bash | |
| SALT_FORMULA_HASH=7abdf217a99d70344b6d936375e802837276a2a3 | |
| rpm --import https://repo.saltstack.com/yum/redhat/6/x86_64/latest/SALTSTACK-GPG-KEY.pub | |
| cat >/etc/yum.repos.d/saltstack.repo <<EOS | |
| [saltstack-repo] | |
| name=SaltStack repo for RHEL/CentOS 6 | |
| baseurl=https://repo.saltstack.com/yum/redhat/6/\$basearch/latest | |
| enabled=1 | |
| gpgcheck=1 | |
| gpgkey=https://repo.saltstack.com/yum/redhat/6/\$basearch/latest/SALTSTACK-GPG-KEY.pub |
| variable "amazon_linux_ami_hvm_ebs_64_ssd" { | |
| default = { | |
| us-east-1 = "ami-08111162" | |
| us-west-2 = "ami-c229c0a2" | |
| us-west-1 = "ami-1b0f7d7b" | |
| eu-west-1 = "ami-31328842" | |
| eu-central-1 = "ami-e2df388d" | |
| ap-southeast-1 = "ami-e90dc68a" | |
| ap-northeast-2 = "ami-6598510b" | |
| ap-northeast-1 = "ami-f80e0596" |
| $ bundle exec saltspec -f d | |
| -----> Cleaning up any prior instances of <salt-master-linux> | |
| -----> Destroying <salt-master-linux>... | |
| Finished destroying <salt-master-linux> (0m0.00s). | |
| -----> Testing <salt-master-linux> | |
| -----> Creating <salt-master-linux>... | |
| If you are not using an account that qualifies under the AWS | |
| free-tier, you may be charged to run these suites. The charge | |
| should be minimal, but neither Test Kitchen nor its maintainers | |
| are responsible for your incurred costs. |
| context 'myservice' do | |
| context 'with pillar data (test-pillar1.sls)' do | |
| describe service('apache') do | |
| it { should be_running } | |
| it { should be_enabled } | |
| end | |
| end | |
| context 'with pillar data (test-pillar2.sls)' do | |
| describe service('httpd') do |