bcalloway-slicehost 0.0.3.0 → 0.5.2

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/README CHANGED
@@ -12,7 +12,7 @@ The recipes are designed to work stand alone apart from the standard set of Capi
12
12
 
13
13
  require 'capistrano/ext/slicehost' in your deploy.rb file
14
14
 
15
- Slice setup recipies
15
+ Slice setup recipes
16
16
  ====================
17
17
 
18
18
  Commonly used setup recipies. Check the source for more.
@@ -82,6 +82,83 @@ Reload apache
82
82
  Force reload apache
83
83
  cap apache:force_reload
84
84
 
85
+ All Recipes
86
+ ===================
87
+ cap apache:available_modules # List available Apache modules
88
+ cap apache:available_sites # List available Apache sites
89
+ cap apache:disable_module # Disable Apache module
90
+ cap apache:disable_site # Disable Apache site
91
+ cap apache:enable_module # Enable Apache module
92
+ cap apache:enable_site # Enable Apache site
93
+ cap apache:enabled_modules # List enabled Apache modules
94
+ cap apache:enabled_sites # List enabled Apache sites
95
+ cap apache:force_reload # Force reload Apache webserver
96
+ cap apache:install # Install Apache
97
+ cap apache:reload # Reload Apache webserver
98
+ cap apache:restart # Restarts Apache webserver
99
+ cap apache:start # Starts Apache webserver
100
+ cap apache:stop # Stops Apache webserver
101
+ cap apache:upload_vhost # Upload Apache virtual host
102
+ cap aptitude:full_upgrade # Upgrades your installed software packages.
103
+ cap aptitude:install # Installs a software package via aptitude.
104
+ cap aptitude:safe_upgrade # Upgrades your installed software packages.
105
+ cap aptitude:setup # Updates software packages and creates a solid base for the server
106
+ cap aptitude:uninstall # Uninstalls a software package via aptitude.
107
+ cap aptitude:update # Updates your software package list.
108
+ cap aptitude:upgrade # Alias for 'aptitude:safe_upgrade'
109
+ cap disk:free # Show the amount of free disk space.
110
+ cap disk:memory # Show free memory
111
+ cap gems:install # Install a gem on the remote server
112
+ cap gems:install_rubygems # Install the gem package system
113
+ cap gems:list # List gems on remote server
114
+ cap gems:uninstall # Uninstall a gem on the remote server
115
+ cap gems:update # Update gems on remote server
116
+ cap gems:update_system # Update gem system on remote server
117
+ cap git:install # Install git
118
+ cap iptables:configure # Harden iptables configuration.
119
+ cap mysql:export # Export MySQL database
120
+ cap mysql:import # Import MySQL database
121
+ cap mysql:install # Install MySQL
122
+ cap mysql:restart # Restarts MySQL database server
123
+ cap mysql:start # Starts MySQL database server
124
+ cap mysql:stop # Stops MySQL database server
125
+ cap nginx:available_sites # List available Nginx sites
126
+ cap nginx:disable_site # Disable Nginx site
127
+ cap nginx:enable_site # Enable Nginx site
128
+ cap nginx:enabled_sites # List enabled Nginx sites
129
+ cap nginx:force_reload # Force reload Nginx webserver
130
+ cap nginx:install # Install Nginx
131
+ cap nginx:reload # Reload Nginx webserver
132
+ cap nginx:restart # Restarts Nginx webserver
133
+ cap nginx:start # Starts Nginx webserver
134
+ cap nginx:stop # Stops Nginx webserver
135
+ cap nginx:upload_vhost # Upload Nginx virtual host
136
+ cap postgresql:export # Export PostgreSQL database
137
+ cap postgresql:import # Import PostgreSQL database
138
+ cap postgresql:install # Install PostgreSQL
139
+ cap postgresql:restart # Restarts PostgreSQL database server
140
+ cap postgresql:start # Starts PostgreSQL database server
141
+ cap postgresql:stop # Stops PostgreSQL database server
142
+ cap prod # Set the target stage to `prod'.
143
+ cap profile:configure # Setup .bashrc the way we like it
144
+ cap ruby:install_enterprise # Install Ruby Enterpise Edition
145
+ cap ruby:install_passenger_apache # Install Phusion Passenger
146
+ cap ruby:setup_18 # Install Ruby 1.8
147
+ cap ruby:setup_19 # Install Ruby 1.9
148
+ cap shell # Begin an interactive Capistrano session.
149
+ cap slice:configure # set up ssh, iptables, aptitude and vim
150
+ cap ssh:configure_sshd # Configure SSH daemon with more secure setings
151
+ cap ssh:reload # Reload SSH service.
152
+ cap ssh:setup # Setup SSH on the gateway host.
153
+ cap ssh:upload_keys # Uploads your local public SSH keys
154
+ cap staging # Set the target stage to `staging'.
155
+ cap useradd:check_sudoers # Check that %sudo entry exists in the /etc/sudoers file
156
+ cap useradd:setup # Interactive adduser
157
+ cap vim:install # install vim from aptitude
158
+ cap vim:load_vimrc # load up a simple .vimrc
159
+ cap vim:setup # setup vim on slicehost
160
+
161
+
85
162
 
86
163
  Contributors
87
164
  ============
@@ -6,8 +6,8 @@ namespace :iptables do
6
6
  http://articles.slicehost.com/2008/4/25/ubuntu-hardy-setup-page-1
7
7
  DESC
8
8
  task :configure, :roles => :gateway do
9
- put render("iptables", binding), "iptables.up.rules"
10
- sudo "mv iptables.up.rules /etc/iptables.up.rules"
9
+ put render("iptables", binding), "iptables.test.rules"
10
+ sudo "mv iptables.test.rules /etc/iptables.test.rules"
11
11
 
12
12
  if capture("cat /etc/network/interfaces").grep(/iptables/).empty?
13
13
  run %(cat /etc/network/interfaces |
@@ -17,5 +17,8 @@ namespace :iptables do
17
17
  )
18
18
  sudo "mv interfaces /etc/network/interfaces"
19
19
  end
20
+
21
+ sudo "iptables-restore < /etc/iptables.test.rules"
22
+ sudo "iptables-save > /etc/iptables.up.rules"
20
23
  end
21
- end
24
+ end
@@ -56,14 +56,14 @@ PasswordAuthentication no
56
56
  #KerberosTicketCleanup yes
57
57
 
58
58
  # GSSAPI options
59
- GSSAPIAuthentication no
59
+ #GSSAPIAuthentication no
60
60
  #GSSAPICleanupCredentials yes
61
61
 
62
- X11Forwarding no
62
+ X11Forwarding yes
63
63
  X11DisplayOffset 10
64
64
  PrintMotd no
65
65
  PrintLastLog yes
66
- KeepAlive yes
66
+ TCPKeepAlive yes
67
67
  #UseLogin no
68
68
 
69
69
  #MaxStartups 10:30:60
@@ -74,8 +74,6 @@ AcceptEnv LANG LC_*
74
74
 
75
75
  Subsystem sftp /usr/lib/openssh/sftp-server
76
76
 
77
- UsePAM no
78
-
79
- UseDNS no
77
+ UsePAM yes
80
78
 
81
79
  AllowUsers <%= user %>
metadata CHANGED
@@ -1,38 +1,48 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bcalloway-slicehost
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3.0
4
+ prerelease: false
5
+ segments:
6
+ - 0
7
+ - 5
8
+ - 2
9
+ version: 0.5.2
5
10
  platform: ruby
6
11
  authors:
7
- - Brandon Calloway
12
+ - Joshua Peek, Brandon Calloway
8
13
  autorequire:
9
14
  bindir: bin
10
15
  cert_chain: []
11
16
 
12
- date: 2009-11-12 00:00:00 -05:00
17
+ date: 2010-04-28 00:00:00 -04:00
13
18
  default_executable:
14
19
  dependencies:
15
20
  - !ruby/object:Gem::Dependency
16
21
  name: capistrano
17
- type: :runtime
18
- version_requirement:
19
- version_requirements: !ruby/object:Gem::Requirement
22
+ prerelease: false
23
+ requirement: &id001 !ruby/object:Gem::Requirement
20
24
  requirements:
21
25
  - - ">"
22
26
  - !ruby/object:Gem::Version
27
+ segments:
28
+ - 2
29
+ - 5
30
+ - 0
23
31
  version: 2.5.0
24
- version:
32
+ type: :runtime
33
+ version_requirements: *id001
25
34
  description: Slicehost Capistrano recipes for configuring and managing your slice.
26
- email: brandon@brandoncalloway.com
35
+ email: josh@joshpeek.com, brandon@brandoncalloway.com
27
36
  executables: []
28
37
 
29
38
  extensions: []
30
39
 
31
- extra_rdoc_files: []
32
-
33
- files:
40
+ extra_rdoc_files:
34
41
  - README
42
+ files:
35
43
  - MIT-LICENSE
44
+ - README
45
+ - lib/capistrano/ext/slicehost.rb
36
46
  - lib/capistrano/ext/slicehost/apache.rb
37
47
  - lib/capistrano/ext/slicehost/aptitude.rb
38
48
  - lib/capistrano/ext/slicehost/disk.rb
@@ -59,34 +69,35 @@ files:
59
69
  - lib/capistrano/ext/slicehost/templates/vimrc.erb
60
70
  - lib/capistrano/ext/slicehost/useradd.rb
61
71
  - lib/capistrano/ext/slicehost/vim.rb
62
- - lib/capistrano/ext/slicehost.rb
63
72
  has_rdoc: true
64
73
  homepage: http://github.com/bcalloway/slicehost
65
74
  licenses: []
66
75
 
67
76
  post_install_message:
68
- rdoc_options: []
69
-
77
+ rdoc_options:
78
+ - --charset=UTF-8
70
79
  require_paths:
71
80
  - lib
72
81
  required_ruby_version: !ruby/object:Gem::Requirement
73
82
  requirements:
74
83
  - - ">="
75
84
  - !ruby/object:Gem::Version
85
+ segments:
86
+ - 0
76
87
  version: "0"
77
- version:
78
88
  required_rubygems_version: !ruby/object:Gem::Requirement
79
89
  requirements:
80
90
  - - ">="
81
91
  - !ruby/object:Gem::Version
92
+ segments:
93
+ - 0
82
94
  version: "0"
83
- version:
84
95
  requirements: []
85
96
 
86
97
  rubyforge_project:
87
- rubygems_version: 1.3.5
98
+ rubygems_version: 1.3.6
88
99
  signing_key:
89
100
  specification_version: 3
90
- summary: Fork of original Capistrano recipes for setting up and deploying to Slicehost
101
+ summary: Capistrano recipes for setting up and deploying to Slicehost
91
102
  test_files: []
92
103