class Object
Public Instance Methods
host(name, security_groups, runlist, options={})
click to toggle source
Define a server.
Options: key_name, image_id, size, knife_solo, attributes (filename)
# File lib/ponyup.rb, line 31 def host name, security_groups, runlist, options={} host_namespace = HostRecord.define name, security_groups, runlist, options CloudRunner.add_component host_namespace end
security(name, public_ports=[], group_ports={})
click to toggle source
Define a security group.
To define a group that allows public access:
security 'vulnerable', [22, 80] security 'webish', 443
To define an internal network accessible by instances on other groups:
security 'shadows', [], vulnerable: [22] security 'shadows', nil, vulnerable: 22
To define a group that allows both public and internal net traffic:
security 'hybrid', 22, shadows: 8080 security 'hybrid', [22, 80], shadows: 8080
# File lib/ponyup.rb, line 22 def security name, public_ports=[], group_ports={} security_namespace = SecurityRecord.define name, public_ports, group_ports CloudRunner.add_component security_namespace end