capify-ec2 1.8.0.pre → 1.8.0.pre2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/.gitignore +0 -1
- data/Changelog.md +6 -0
- data/lib/capify-ec2.rb +1 -1
- data/lib/capify-ec2/version.rb +1 -1
- data/readme.md +2 -2
- metadata +1 -1
data/.gitignore
CHANGED
data/Changelog.md
CHANGED
data/lib/capify-ec2.rb
CHANGED
@@ -215,7 +215,7 @@ class CapifyEc2
|
|
215
215
|
end
|
216
216
|
|
217
217
|
def project_instances
|
218
|
-
@instances.select {|instance| @ec2_config[:
|
218
|
+
@instances.select {|instance| instance.tags[@ec2_config[:aws_project_tag]].split(%r{,\s*}).include?(@ec2_config[:project_tag]) rescue false }
|
219
219
|
end
|
220
220
|
|
221
221
|
def desired_instances(region = nil)
|
data/lib/capify-ec2/version.rb
CHANGED
data/readme.md
CHANGED
@@ -37,7 +37,7 @@ Note: `:aws_access_key_id` and `:aws_secret_access_key` are required, unless you
|
|
37
37
|
|
38
38
|
* :project_tag
|
39
39
|
|
40
|
-
If this is defined, Capify-EC2 will only create namespaces and tasks for the EC2 instances that
|
40
|
+
If this is defined, Capify-EC2 will only create namespaces and tasks for the EC2 instances that include a matching project in a comma separated list 'Project' tag. By default, all instances available to the specified AWS access key will be used.
|
41
41
|
|
42
42
|
It is possible to include multiple projects simultaneously by using the :project_tags parameter, like so:
|
43
43
|
|
@@ -109,7 +109,7 @@ You will need to create instance tags using the AWS Management Console or API, t
|
|
109
109
|
|
110
110
|
* Tag 'Project'
|
111
111
|
|
112
|
-
Used with the `:project_tag` option in `config/ec2.yml` to limit Capify-EC2's functionality to a subset of your instances.
|
112
|
+
Used with the `:project_tag` option in `config/ec2.yml` to limit Capify-EC2's functionality to a subset of your instances. This can also be a comma separated list of projects involving this machine.
|
113
113
|
|
114
114
|
* Tag 'Roles'
|
115
115
|
|