akashi 0.0.8 → 0.0.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/config/application_enviroment.yml.example +9 -8
- data/lib/akashi/builder.rb +4 -5
- data/lib/akashi/ec2/instance.rb +1 -10
- data/lib/akashi/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4bc8cc03877a216bb9e2e079892ebb77e2072584
|
4
|
+
data.tar.gz: f050ba5718cdc3cdbe81257a9623e51e2e3be1ba
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b80d795142b139c6960db380e14250fafd7c69a10c77ca56654b2a8f0b45fb276eeb4da43dc23bfc7bb44eadb2065507dd364533fe20c6bebf9f1ae5c7d8e064
|
7
|
+
data.tar.gz: 7dac4e87505cf753c3a1437fa48021061a495d56b0f5bdb0d4b57c6bde1d891405a24f3cab9fe81efd25bb3919133cf1b9ad1ec33aa7836f925cf35ef0916c62
|
@@ -1,24 +1,25 @@
|
|
1
1
|
ec2:
|
2
|
-
|
2
|
+
instance:
|
3
3
|
gateway: &instance_for_gateway
|
4
|
-
ami_id:
|
4
|
+
ami_id: ""
|
5
5
|
instance_class: m3.medium
|
6
|
-
allocated_storage: 8 # GB
|
7
6
|
web: &instance_for_web
|
8
|
-
ami_id:
|
7
|
+
ami_id: ""
|
9
8
|
instance_class: m3.medium
|
10
|
-
|
11
|
-
public_key:
|
9
|
+
public_key: ""
|
12
10
|
rds:
|
13
11
|
allocated_storage: 5 # GB
|
14
12
|
instance_class: db.t1.micro
|
15
13
|
multi_az: false
|
16
14
|
availability_zone: ap-northeast-1c
|
17
15
|
engine_version: 5.6.17
|
16
|
+
password: ""
|
17
|
+
parameter_group_name: ""
|
18
18
|
elb:
|
19
19
|
ssl_certificate:
|
20
|
-
server_certificate:
|
21
|
-
private_key_path:
|
20
|
+
server_certificate: ""
|
21
|
+
private_key_path: ""
|
22
|
+
certificate_chain: ""
|
22
23
|
health_check:
|
23
24
|
target: HTTP:80/ping
|
24
25
|
role:
|
data/lib/akashi/builder.rb
CHANGED
@@ -66,11 +66,10 @@ module Akashi
|
|
66
66
|
|
67
67
|
(subnet.instance.number_of_instances || 1).times do
|
68
68
|
ec2_instances[role_name] << Akashi::Ec2::Instance.create(
|
69
|
-
ami:
|
70
|
-
instance_class:
|
71
|
-
security_group:
|
72
|
-
subnet:
|
73
|
-
allocated_storage: subnet.instance.allocated_storage || 8,
|
69
|
+
ami: ami,
|
70
|
+
instance_class: subnet.instance.instance_class,
|
71
|
+
security_group: security_group[role_name],
|
72
|
+
subnet: _subnet,
|
74
73
|
)
|
75
74
|
end
|
76
75
|
end
|
data/lib/akashi/ec2/instance.rb
CHANGED
@@ -6,7 +6,7 @@ module Akashi
|
|
6
6
|
:key_name, :subnet_id, :vpc_id, :status, :statub_code
|
7
7
|
|
8
8
|
class << self
|
9
|
-
def create(ami:, instance_class:, security_group:, subnet
|
9
|
+
def create(ami:, instance_class:, security_group:, subnet:)
|
10
10
|
name = "#{subnet.name}-#{next_number(subnet: subnet)}"
|
11
11
|
|
12
12
|
response = Akashi::Aws.ec2.instances.create(
|
@@ -16,15 +16,6 @@ module Akashi
|
|
16
16
|
subnet_id: subnet.id,
|
17
17
|
instance_type: instance_class,
|
18
18
|
associate_public_ip_address: true,
|
19
|
-
block_device_mappings: [
|
20
|
-
{
|
21
|
-
device_name: ami.root_device_name,
|
22
|
-
ebs: {
|
23
|
-
volume_size: allocated_storage,
|
24
|
-
delete_on_termination: true,
|
25
|
-
},
|
26
|
-
},
|
27
|
-
],
|
28
19
|
)
|
29
20
|
|
30
21
|
new(response.id).tap do |instance|
|
data/lib/akashi/version.rb
CHANGED