ops_tasks 0.4.0 → 0.4.1
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.
- checksums.yaml +4 -4
- data/lib/ops_tasks/deployment.rb +13 -0
- data/lib/ops_tasks/version.rb +1 -1
- data/lib/tasks/ops_tasks.rake +7 -0
- 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: cfb18ecad83799dd3c85385508feb8ae9f79146a
|
4
|
+
data.tar.gz: d08ad92571cbeeeacf74b34b346921773acb0f2b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 240e19cbb53b0a204f55ad8641d6228a30bc02c8ba01b498f41666c22aba233b69eced0626bed4c50cc2ba3d1ece3f74b7479280bcf288171d811994da8d0579
|
7
|
+
data.tar.gz: a63b662d6c489c65ab607153b27dec7b04a87b36d997574045f6318e70b4f529297b1ea8fdf97db62bd107e1dbb8984a35f013040612d159fbf290ef363bcc4a
|
data/lib/ops_tasks/deployment.rb
CHANGED
@@ -45,6 +45,19 @@ module OpsTasks
|
|
45
45
|
return id
|
46
46
|
end
|
47
47
|
|
48
|
+
def configure
|
49
|
+
print "#{@project}: Preparing configuration... "
|
50
|
+
id = @client.create_deployment(
|
51
|
+
:stack_id => @stack_id,
|
52
|
+
:instance_ids => instance_ids,
|
53
|
+
:command => {
|
54
|
+
name: "configure"
|
55
|
+
}
|
56
|
+
)[:deployment_id]
|
57
|
+
puts "successful"
|
58
|
+
return id
|
59
|
+
end
|
60
|
+
|
48
61
|
def update_cookbooks
|
49
62
|
print "#{@project}: Preparing cookbook update... "
|
50
63
|
|
data/lib/ops_tasks/version.rb
CHANGED
data/lib/tasks/ops_tasks.rake
CHANGED
@@ -24,4 +24,11 @@ namespace :ops_tasks do
|
|
24
24
|
deploy_id = deployment.setup
|
25
25
|
deployment.wait_for_completion(deploy_id, "setup")
|
26
26
|
end
|
27
|
+
|
28
|
+
desc "run config recipe"
|
29
|
+
task :setup => :environment do
|
30
|
+
deployment = OpsTasks::RakeHelper.create_deployment
|
31
|
+
deploy_id = deployment.configure
|
32
|
+
deployment.wait_for_completion(deploy_id, "configure")
|
33
|
+
end
|
27
34
|
end
|