Sha256: 6f17c930ad4f6a3805a1438b1401f0664ba2d40f1b5c1adf05adde98ec3ecb41

Contents?: true

Size: 936 Bytes

Versions: 18

Compression:

Stored size: 936 Bytes

Contents

project "Webserver Nginx" do
  server "www.wickedcoolurl.com", :fqdn, :port => 80
  server "frontend-r[01-04]", :app, :port => 6666
  server "data-r[01-04]", :data

  http do
    roles :fqdn, :app

    get "/status" do
      header "Location: www.wickedcoolurl.com"

      test "Site is up?" do |r|
        r.body.match /the site is up/
      end
    end
  end

  https do
    roles :fqdn

    get "/index.html" do
      test "Index" do |r|
        r.body.match /HEAD/
      end
    end
  end
  https do
    roles :app
    insecure true

    get "/index.html" do
      test "Index" do |r|
        r.body.match /HEAD/
      end
    end
  end

  telnet do
    roles :fqdn, :app
    timeout "3"
    binmode false
    
    cmd "HEAD / HTTP/1.1\n\n" do
      test "Telnet Port 80" do |r|
        r.match /Server: (nginx\/[\d\.]+)/
      end
    end
  end

  socket 9999 do
    roles :data

    open? { test "Port 9999 is open?" }
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
auger-1.4.4 cfg/examples/webserver.rb
auger-1.4.3 cfg/examples/webserver.rb
auger-1.4.2 cfg/examples/webserver.rb
auger-1.4.1 cfg/examples/webserver.rb
auger-1.4.0 cfg/examples/webserver.rb
auger-1.3.8 cfg/examples/webserver.rb
auger-1.3.7 cfg/examples/webserver.rb
auger-1.3.6 cfg/examples/webserver.rb
auger-1.3.5 cfg/examples/webserver.rb
auger-1.3.4 cfg/examples/webserver.rb
auger-1.3.3 cfg/examples/webserver.rb
auger-1.3.2 cfg/examples/webserver.rb
auger-1.3.1 cfg/examples/webserver.rb
auger-1.3.0 cfg/examples/webserver.rb
auger-1.2.4 cfg/examples/webserver.rb
auger-1.2.3 cfg/examples/webserver.rb
auger-1.2.2 cfg/examples/webserver.rb
auger-1.2.0 cfg/examples/webserver.rb