Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Hipster hash syntax.

  • Loading branch information...
commit a5cd1d6ca0a3dd5cafdd6e8f55855fc54ad157d3 1 parent d9a4ca3
@iafonov authored
View
22 roles/base.rb
@@ -1,18 +1,18 @@
-name "base"
-description "Base role applied to all nodes."
+name 'base'
+description 'Base role applied to all nodes.'
-default_attributes :maintenance => {
- :deploy_user => {
- :name => 'deploy',
- :group => 'deploy',
- :ssh_key => 'ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAIEAypn5krEiWWykcLeH7QvYUCmMLr1TYsFxDfh57OvkeOdMKubhbNFDfcFiQ0e4LuuSPbv3xLbClfDZa//O/MfXrZ0HIGIb2MWhw22Nrgobrtr+qt26m/Su+z0cyGYf0e6I6QuAiEEPhl9Ge75HfuWlwtmmiPcaB9YHu2+DWdSTvXM='
+default_attributes maintenance: {
+ deploy_user: {
+ name: 'deploy',
+ group: 'deploy',
+ ssh_key: 'ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAIEAypn5krEiWWykcLeH7QvYUCmMLr1TYsFxDfh57OvkeOdMKubhbNFDfcFiQ0e4LuuSPbv3xLbClfDZa//O/MfXrZ0HIGIb2MWhw22Nrgobrtr+qt26m/Su+z0cyGYf0e6I6QuAiEEPhl9Ge75HfuWlwtmmiPcaB9YHu2+DWdSTvXM='
},
- :admin_users => [
+ admin_users: [
{
- :name => 'ia',
- :ssh_key => 'ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAIEAypn5krEiWWykcLeH7QvYUCmMLr1TYsFxDfh57OvkeOdMKubhbNFDfcFiQ0e4LuuSPbv3xLbClfDZa//O/MfXrZ0HIGIb2MWhw22Nrgobrtr+qt26m/Su+z0cyGYf0e6I6QuAiEEPhl9Ge75HfuWlwtmmiPcaB9YHu2+DWdSTvXM='
+ name: 'ia',
+ ssh_key: 'ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAIEAypn5krEiWWykcLeH7QvYUCmMLr1TYsFxDfh57OvkeOdMKubhbNFDfcFiQ0e4LuuSPbv3xLbClfDZa//O/MfXrZ0HIGIb2MWhw22Nrgobrtr+qt26m/Su+z0cyGYf0e6I6QuAiEEPhl9Ge75HfuWlwtmmiPcaB9YHu2+DWdSTvXM='
}
]
}
-run_list "recipe[ufw]", "recipe[maintenance]"
+run_list 'recipe[ufw]', 'recipe[maintenance]'
View
18 roles/chef_server.rb
@@ -1,11 +1,11 @@
-name "chef-server"
-description "Chef server - open firewall ports for connections to chef-server"
+name 'chef-server'
+description 'Chef server - open firewall ports for connections to chef-server'
-default_attributes :firewall => {
- :rules => [
- { :chef_server => { :port => "4000"} },
- { :chef_server_webui => { :port => "4040"} }
- ]
-}
+default_attributes firewall: {
+ rules: [
+ { chef_server: { port: '4000'} },
+ { chef_server_webui: { port: '4040'} }
+ ]
+ }
-run_list "recipe[ufw]"
+run_list 'recipe[ufw]'
View
22 roles/copycopter.rb
@@ -1,14 +1,14 @@
-name "copycopter"
-description "Sample role. Manages rails application deployment. See vendor-cookbooks/copycopter."
+name 'copycopter'
+description 'Sample role. Manages rails application deployment. See cookbooks/copycopter.'
-default_attributes :copycopter => {
- :environment => "production",
+default_attributes copycopter: {
+ environment: 'production',
}
-run_list "role[base]",
- "role[chef-server]",
- "role[postgresql-server]",
- "role[nginx]",
- "role[postfix]",
- "role[nodejs]",
- "recipe[copycopter]"
+run_list 'role[base]',
+ 'role[chef-server]',
+ 'role[postgresql-server]',
+ 'role[nginx]',
+ 'role[postfix]',
+ 'role[nodejs]',
+ 'recipe[copycopter]'
View
17 roles/nginx.rb
@@ -1,11 +1,10 @@
-name "nginx"
-description "Installs and configures nginx reverse proxy"
+name 'nginx'
+description 'Installs and configures nginx reverse proxy'
-default_attributes :firewall => {
- :rules => [
- { :http => { :port => "80"} }
- ]
-}
+default_attributes firewall: {
+ rules: [
+ { http: { port: '80'} }
+ ]
+ }
-
-run_list "recipe[nginx]"
+run_list 'recipe[nginx]'
View
6 roles/nodejs.rb
@@ -1,4 +1,4 @@
-name "nodejs"
-description "Installs node js from deb package"
+name 'nodejs'
+description 'Installs node js from deb package'
-run_list "recipe[nodejs]"
+run_list 'recipe[nodejs]'
View
12 roles/postfix.rb
@@ -1,9 +1,9 @@
-name "postfix"
-description "Installs and configures postfix MTA for a single server setup"
+name 'postfix'
+description 'Installs and configures postfix MTA for a single server setup'
-default_attributes :postfix => {
- "mydomain" => "domain.com",
- "myorigin" => "domain.com"
+default_attributes postfix: {
+ mydomain: 'domain.com',
+ myorigin: 'domain.com'
}
-run_list "recipe[postfix]"
+run_list 'recipe[postfix]'
View
6 roles/postgres.rb
@@ -1,4 +1,4 @@
-name "postgresql-server"
-description "Sets up postgresql server and client"
+name 'postgresql-server'
+description 'Sets up postgresql server and client'
-run_list "recipe[postgresql::client]", "recipe[postgresql::server]"
+run_list 'recipe[postgresql::client]', 'recipe[postgresql::server]'
Please sign in to comment.
Something went wrong with that request. Please try again.