ec2_vpc { 'garethr-test':
ensure => present,
region => 'sa-east-1',
cidr_block => '10.0.0.0/16',
instance_tenancy => 'default',
}
ec2_vpc_subnet { 'garethr-subnet':
ensure => present,
This file contains 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 'aws-sdk-core' | |
require 'colorize' | |
require 'retries' | |
ec2 = Aws::EC2::Client.new(region: 'us-west-2') | |
## Security Groups | |
puts '===> creating security groups'.green |
This file contains 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
import com.wordnik.swagger.codegen.BasicRubyGenerator | |
object RubyRubyCodegen extends BasicRubyGenerator { | |
def main(args: Array[String]) = generateClient(args) | |
override def destinationDir = "samples/client/osv/ruby" | |
} |
This file contains 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 'spec_helper' | |
describe 'this' do | |
it 'that' do | |
expect(file('/tmp/something')).to be_directory | |
end | |
end |
droplet { 'devwinter':
ensure => present,
region => 'lon1',
size => '512mb',
image => 5141286,
ssh_keys => [12345],
}
[
{"protocol":"tcp","destination":"10.0.11.0/24","ports":"1-65535"},
{"protocol":"udp","destination":"10.0.11.0/24","ports":"1-65535"}
]
{
"kind": "Service",
"apiVersion": "v1beta1",
"id": "example",
"port": 8000,
"labels": {
"name": "nginx"
},
"selector": {
name = 'console'
kernel = '/home/avsm/mirage-skeleton/block/mir-block_test.xen'
builder = 'linux'
memory = 256
xen_machine { 'block_test':
kernel => '/home/avsm/mirage-skeleton/block/mir-block_test.xen'
This file contains 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
ec2_securitygroup { 'default security group for some vpc': # <= this is a unique title | |
ensure => present, | |
name => 'default', # <= this is the actual security group name in AWS | |
region => 'sa-east-1', | |
vpc => 'sample-vpc', | |
description => 'default VPC security group', | |
ingress => [{ | |
protocol => 'tcp', | |
port => 22, | |
cidr => '0.0.0.0/0' |
OlderNewer