Skip to content
Browse files

Spelling 101.

  • Loading branch information...
1 parent 6f9d862 commit f574cb52d92d40b969b88a4d0d55476c57da93e9 @iafonov committed Sep 17, 2012
View
2 README.md
@@ -124,7 +124,7 @@ Administrator users are users who can do `sudo su -`. There are could be several
Here is quite self-descriptive sample attributes set for setting up deployment user and one admin user:
```ruby
-:maintance => {
+:maintenance => {
:deploy_user => {
:name => 'deploy',
:ssh_key => 'ssh-rsa AAAAB3Nza...='
View
4 cookbooks/copycopter/recipes/deploy.rb
@@ -1,5 +1,5 @@
-deploy_user = node['maintance']['deploy_user']['name']
-deploy_group = node['maintance']['deploy_user']['group']
+deploy_user = node['maintenance']['deploy_user']['name']
+deploy_group = node['maintenance']['deploy_user']['group']
database_params = node['copycopter']['database']
application 'copycopter' do
View
3 cookbooks/maintance/attributes/default.rb
@@ -1,3 +0,0 @@
-default['maintance']['deploy_user']['name'] = "deploy"
-default['maintance']['deploy_user']['group'] = "deploy"
-default['maintance']['deploy_user']['ssh_key'] = ""
View
2 cookbooks/maintance/recipes/default.rb
@@ -1,2 +0,0 @@
-include_recipe 'maintance::users'
-include_recipe 'maintance::admin_users'
View
0 cookbooks/maintance/README.md → cookbooks/maintenance/README.md
File renamed without changes.
View
3 cookbooks/maintenance/attributes/default.rb
@@ -0,0 +1,3 @@
+default['maintenance']['deploy_user']['name'] = "deploy"
+default['maintenance']['deploy_user']['group'] = "deploy"
+default['maintenance']['deploy_user']['ssh_key'] = ""
View
0 ...s/maintance/files/default/ssh/config.conf → ...maintenance/files/default/ssh/config.conf
File renamed without changes.
View
0 cookbooks/maintance/metadata.rb → cookbooks/maintenance/metadata.rb
File renamed without changes.
View
2 cookbooks/maintance/recipes/admin_users.rb → cookbooks/maintenance/recipes/admin_users.rb
@@ -1,4 +1,4 @@
-admin_users = Array(node['maintance']['admin_users'])
+admin_users = Array(node['maintenance']['admin_users'])
if admin_users.any?
file '/etc/sudoers.d/admin' do
View
2 cookbooks/maintenance/recipes/default.rb
@@ -0,0 +1,2 @@
+include_recipe 'maintenance::users'
+include_recipe 'maintenance::admin_users'
View
6 cookbooks/maintance/recipes/users.rb → cookbooks/maintenance/recipes/users.rb
@@ -1,6 +1,6 @@
-username = node['maintance']['deploy_user']['name']
-group = node['maintance']['deploy_user']['group']
-ssh_key = node['maintance']['deploy_user']['ssh_key']
+username = node['maintenance']['deploy_user']['name']
+group = node['maintenance']['deploy_user']['group']
+ssh_key = node['maintenance']['deploy_user']['ssh_key']
group 'deploy'
View
4 roles/_base.rb
@@ -1,7 +1,7 @@
name "_base"
description "Base role applied to all nodes."
-default_attributes :maintance => {
+default_attributes :maintenance => {
:deploy_user => {
:name => 'deploy',
:group => 'deploy',
@@ -15,4 +15,4 @@
]
}
-run_list "recipe[ufw]", "recipe[maintance]"
+run_list "recipe[ufw]", "recipe[maintenance]"

0 comments on commit f574cb5

Please sign in to comment.
Something went wrong with that request. Please try again.