cucumber-chef 2.1.0.rc.15 → 3.0.0.rc.0
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/bin/cc-knife +1 -9
- data/bin/cucumber-chef +27 -15
- data/chef_repo/cookbooks/cucumber-chef/recipes/test_lab.rb +7 -7
- data/cucumber-chef.gemspec +1 -4
- data/lib/cucumber-chef/rake/task.rb +55 -36
- data/lib/cucumber/chef.rb +3 -3
- data/lib/cucumber/chef/container.rb +44 -0
- data/lib/cucumber/chef/containers.rb +108 -181
- data/lib/cucumber/chef/ecosystem.rb +37 -0
- data/lib/cucumber/chef/labfile.rb +34 -0
- data/lib/cucumber/chef/provisioner.rb +5 -42
- data/lib/cucumber/chef/steps.rb +0 -1
- data/lib/cucumber/chef/steps/ssh_steps.rb +2 -2
- data/lib/cucumber/chef/templates/bootstrap/ubuntu-precise-test-lab.erb +4 -1
- data/lib/cucumber/chef/templates/cucumber-chef/cucumber-yml.erb +1 -1
- data/lib/cucumber/chef/templates/cucumber/cc-hooks.rb +34 -33
- data/lib/cucumber/chef/test_lab.rb +4 -1
- data/lib/cucumber/chef/utility.rb +22 -32
- data/lib/cucumber/chef/version.rb +1 -1
- metadata +7 -22
- data/lib/cucumber/chef/steps/provision_steps.rb +0 -64
- data/lib/cucumber/chef/templates/cucumber-chef/knife-rb.erb +0 -18
@@ -1,64 +0,0 @@
|
|
1
|
-
################################################################################
|
2
|
-
#
|
3
|
-
# Author: Stephen Nelson-Smith <stephen@atalanta-systems.com>
|
4
|
-
# Author: Zachary Patten <zachary@jovelabs.com>
|
5
|
-
# Copyright: Copyright (c) 2011-2013 Atalanta Systems Ltd
|
6
|
-
# License: Apache License, Version 2.0
|
7
|
-
#
|
8
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
9
|
-
# you may not use this file except in compliance with the License.
|
10
|
-
# You may obtain a copy of the License at
|
11
|
-
#
|
12
|
-
# http://www.apache.org/licenses/LICENSE-2.0
|
13
|
-
#
|
14
|
-
# Unless required by applicable law or agreed to in writing, software
|
15
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
16
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
17
|
-
# See the License for the specific language governing permissions and
|
18
|
-
# limitations under the License.
|
19
|
-
#
|
20
|
-
################################################################################
|
21
|
-
|
22
|
-
Given /^I have a server called "([^\"]*)"$/ do |name|
|
23
|
-
$test_lab.containers.init(name)
|
24
|
-
end
|
25
|
-
|
26
|
-
And /^"([^\"]*)" is running "([^\"]*)" "([^\"]*)"$/ do |name, distro, release|
|
27
|
-
$test_lab.containers.set_attributes(name, :distro => distro, :release => release)
|
28
|
-
end
|
29
|
-
|
30
|
-
And /^"([^\"]*)" has "([^\"]*)" architecture$/ do |name, arch|
|
31
|
-
$test_lab.containers.set_attributes(name, :arch => arch)
|
32
|
-
end
|
33
|
-
|
34
|
-
And /^"([^\"]*)" should( not)? be persist[ae]nt$/ do |name, boolean|
|
35
|
-
$test_lab.containers.set_attributes(name, :persist => (!boolean ? true : false))
|
36
|
-
end
|
37
|
-
|
38
|
-
And /^"([^\"]*)" has an IP address of "([^\"]*)"$/ do |name, ip|
|
39
|
-
$test_lab.containers.set_attributes(name, :ip => ip)
|
40
|
-
end
|
41
|
-
|
42
|
-
And /^"([^\"]*)" has a MAC address of "([^\"]*)"$/ do |name, mac|
|
43
|
-
$test_lab.containers.set_attributes(name, :mac => mac)
|
44
|
-
end
|
45
|
-
|
46
|
-
And /^"([^\"]*)" has been provisioned$/ do |name|
|
47
|
-
$test_lab.containers.create(name)
|
48
|
-
end
|
49
|
-
|
50
|
-
And /^the "([^\"]*)" role has been added to the "([^\"]*)" run list$/ do |role, name|
|
51
|
-
$test_lab.containers.chef_set_client_attributes(name, :run_list => ["role[#{role}]"])
|
52
|
-
end
|
53
|
-
|
54
|
-
And /^the "([^\"]*)" recipe has been added to the "([^\"]*)" run list$/ do |recipe, name|
|
55
|
-
$test_lab.containers.chef_set_client_attributes(name, :run_list => ["recipe[#{recipe}]"])
|
56
|
-
end
|
57
|
-
|
58
|
-
And /^"([^\"]*)" is in the "([^\"]*)" environment$/ do |name, environment|
|
59
|
-
$test_lab.containers.chef_set_client_config(:environment => environment)
|
60
|
-
end
|
61
|
-
|
62
|
-
And /^the chef-client has been run on "([^\"]*)"$/ do |name|
|
63
|
-
$test_lab.containers.chef_run_client(name)
|
64
|
-
end
|
@@ -1,18 +0,0 @@
|
|
1
|
-
current_dir = File.dirname(__FILE__)
|
2
|
-
|
3
|
-
log_level :debug
|
4
|
-
log_location STDOUT
|
5
|
-
node_name "<%= @user %>"
|
6
|
-
client_key "#{current_dir}/<%= @user %>.pem"
|
7
|
-
validation_client_name "chef-validator"
|
8
|
-
validation_key "#{current_dir}/validation.pem"
|
9
|
-
chef_server_url "http://<%= @chef_server %>:4000"
|
10
|
-
cache_type "BasicFile"
|
11
|
-
cookbook_path ['#{current_dir}/../cookbooks']
|
12
|
-
|
13
|
-
cache_options(:path => "#{current_dir}/checksums")
|
14
|
-
<% if @librarian_chef -%>
|
15
|
-
|
16
|
-
require 'librarian/chef/integration/knife'
|
17
|
-
cookbook_path Librarian::Chef.install_path, "#{current_dir}/../site-cookbooks"
|
18
|
-
<% end -%>
|