summaryrefslogtreecommitdiff
path: root/kitchen-tests/cookbooks
diff options
context:
space:
mode:
Diffstat (limited to 'kitchen-tests/cookbooks')
-rw-r--r--kitchen-tests/cookbooks/audit_test/metadata.rb14
-rw-r--r--kitchen-tests/cookbooks/webapp/attributes/default.rb14
-rw-r--r--kitchen-tests/cookbooks/webapp/metadata.rb22
-rw-r--r--kitchen-tests/cookbooks/webapp/recipes/default.rb40
4 files changed, 45 insertions, 45 deletions
diff --git a/kitchen-tests/cookbooks/audit_test/metadata.rb b/kitchen-tests/cookbooks/audit_test/metadata.rb
index 4a60104e92..91cf94c0ff 100644
--- a/kitchen-tests/cookbooks/audit_test/metadata.rb
+++ b/kitchen-tests/cookbooks/audit_test/metadata.rb
@@ -1,8 +1,8 @@
-name 'audit_test'
-maintainer 'The Authors'
-maintainer_email 'you@example.com'
-license 'all_rights'
-description 'Installs/Configures audit_test'
-long_description 'Installs/Configures audit_test'
-version '0.1.0'
+name "audit_test"
+maintainer "The Authors"
+maintainer_email "you@example.com"
+license "all_rights"
+description "Installs/Configures audit_test"
+long_description "Installs/Configures audit_test"
+version "0.1.0"
diff --git a/kitchen-tests/cookbooks/webapp/attributes/default.rb b/kitchen-tests/cookbooks/webapp/attributes/default.rb
index fb33efa49e..2ff7a6c5ff 100644
--- a/kitchen-tests/cookbooks/webapp/attributes/default.rb
+++ b/kitchen-tests/cookbooks/webapp/attributes/default.rb
@@ -1,14 +1,14 @@
-default['apache']['remote_host_ip'] = '127.0.0.1'
+default["apache"]["remote_host_ip"] = "127.0.0.1"
-default['webapp']['database'] = 'webapp'
-default['webapp']['db_username'] = 'webapp'
-default['webapp']['path'] = '/srv/webapp'
+default["webapp"]["database"] = "webapp"
+default["webapp"]["db_username"] = "webapp"
+default["webapp"]["path"] = "/srv/webapp"
# XXX: apache2 cookbook 2.0.0 has bugs around changing the mpm and then attempting a graceful restart
# which fails and leaves the service down.
-case node['platform']
+case node["platform"]
when "ubuntu"
- if node['platform_version'].to_f >= 14.04
- default[:apache][:mpm] = 'event'
+ if node["platform_version"].to_f >= 14.04
+ default[:apache][:mpm] = "event"
end
end
diff --git a/kitchen-tests/cookbooks/webapp/metadata.rb b/kitchen-tests/cookbooks/webapp/metadata.rb
index c26ad23979..f1f07d952b 100644
--- a/kitchen-tests/cookbooks/webapp/metadata.rb
+++ b/kitchen-tests/cookbooks/webapp/metadata.rb
@@ -1,12 +1,12 @@
-name 'webapp'
-maintainer ''
-maintainer_email ''
-license ''
-description 'Installs/Configures webapp'
-long_description 'Installs/Configures webapp'
-version '0.1.0'
+name "webapp"
+maintainer ""
+maintainer_email ""
+license ""
+description "Installs/Configures webapp"
+long_description "Installs/Configures webapp"
+version "0.1.0"
-depends 'apache2'
-depends 'database', '~> 2.3.1'
-depends 'mysql'
-depends 'php'
+depends "apache2"
+depends "database", "~> 2.3.1"
+depends "mysql"
+depends "php"
diff --git a/kitchen-tests/cookbooks/webapp/recipes/default.rb b/kitchen-tests/cookbooks/webapp/recipes/default.rb
index e0cbbdd4a8..3dc22ea0fa 100644
--- a/kitchen-tests/cookbooks/webapp/recipes/default.rb
+++ b/kitchen-tests/cookbooks/webapp/recipes/default.rb
@@ -11,43 +11,43 @@ include_recipe "php"
creds = Hash.new
%w(mysql webapp).each do |item_name|
- creds[item_name] = data_bag_item('passwords', item_name)
+ creds[item_name] = data_bag_item("passwords", item_name)
end
web_app "webapp" do
- server_name 'localhost'
- server_aliases [node['fqdn'], node['hostname'], 'localhost.localdomain']
- docroot node['webapp']['path']
- cookbook 'apache2'
+ server_name "localhost"
+ server_aliases [node["fqdn"], node["hostname"], "localhost.localdomain"]
+ docroot node["webapp"]["path"]
+ cookbook "apache2"
end
mysql_service "default" do
- server_root_password creds['mysql']['server_root_password']
- server_repl_password creds['mysql']['server_repl_password']
+ server_root_password creds["mysql"]["server_root_password"]
+ server_repl_password creds["mysql"]["server_repl_password"]
end
-mysql_database node['webapp']['database'] do
+mysql_database node["webapp"]["database"] do
connection ({
- :host => 'localhost',
- :username => 'root',
- :password => creds['mysql']['server_root_password'],
+ :host => "localhost",
+ :username => "root",
+ :password => creds["mysql"]["server_root_password"],
})
action :create
end
-mysql_database_user node['webapp']['db_username'] do
+mysql_database_user node["webapp"]["db_username"] do
connection ({
- :host => 'localhost',
- :username => 'root',
- :password => creds['mysql']['server_root_password'],
+ :host => "localhost",
+ :username => "root",
+ :password => creds["mysql"]["server_root_password"],
})
- password creds['webapp']['db_password']
- database_name node['webapp']['database']
+ password creds["webapp"]["db_password"]
+ database_name node["webapp"]["database"]
privileges [:select, :update, :insert, :create, :delete]
action :grant
end
-directory node['webapp']['path'] do
+directory node["webapp"]["path"] do
owner "root"
group "root"
mode "0755"
@@ -56,9 +56,9 @@ directory node['webapp']['path'] do
end
template "#{node['webapp']['path']}/index.html" do
- source 'index.html.erb'
+ source "index.html.erb"
end
template "#{node['webapp']['path']}/index.php" do
- source 'index.php.erb'
+ source "index.php.erb"
end