fedora 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,3 @@
1
+ LoadModule passenger_module <%= passenger_root %>/ext/apache2/mod_passenger.so
2
+ PassengerRoot <%= passenger_root %>
3
+ PassengerRuby <%= ruby_path %>
@@ -0,0 +1,10 @@
1
+ <VirtualHost *:80>
2
+ ServerName <%= url %>
3
+ DocumentRoot "<%= app_path %>/public"
4
+
5
+ <Directory "<%= app_path %>/public">
6
+ Options FollowSymLinks
7
+ Order deny,allow
8
+ Allow from all
9
+ </Directory>
10
+ </VirtualHost>
@@ -0,0 +1,35 @@
1
+ # phpMyAdmin - Web based MySQL browser written in php
2
+ #
3
+ # Allows only localhost by default
4
+ #
5
+ # But allowing phpMyAdmin to anyone other than localhost should be considered
6
+ # dangerous unless properly secured by SSL
7
+
8
+ Alias /phpMyAdmin /usr/share/phpMyAdmin
9
+ Alias /phpmyadmin /usr/share/phpMyAdmin
10
+ <Directory /usr/share/phpMyAdmin/>
11
+ order deny,allow
12
+ deny from all
13
+ allow from 127.0.0.1
14
+ allow from ::1
15
+ allow from <%= ip %>
16
+ </Directory>
17
+
18
+ # This directory does not require access over HTTP - taken from the original
19
+ # phpMyAdmin upstream tarball
20
+ #
21
+ <Directory /usr/share/phpMyAdmin/libraries>
22
+ Order Deny,Allow
23
+ Deny from All
24
+ Allow from None
25
+ </Directory>
26
+
27
+ # This configuration prevents mod_security at phpMyAdmin directories from
28
+ # filtering SQL etc. This may break your mod_security implementation.
29
+ #
30
+ #<IfModule mod_security.c>
31
+ # <Directory /usr/share/phpMyAdmin>
32
+ # SecRuleInheritance Off
33
+ # </Directory>
34
+ #</IfModule>
35
+
@@ -0,0 +1,14 @@
1
+ #
2
+ # This configuration file maps the phpPgAdmin directory into the URL space.
3
+ # By default this application is only accessible from the local host.
4
+ #
5
+
6
+ Alias /phpPgAdmin /usr/share/phpPgAdmin
7
+
8
+ <Location /phpPgAdmin>
9
+ Order deny,allow
10
+ Deny from all
11
+ Allow from 127.0.0.1
12
+ Allow from ::1
13
+ Allow from <%= ip %>
14
+ </Location>
data/readme.markdown ADDED
@@ -0,0 +1,56 @@
1
+ # Fedora
2
+ Fedora is based off the idea from Ubuntu Machine. Fedora is a set of capistrano recipies designed to make the initial server setup much faster. The gem contains recipies to install all basic services on your server. The recipes are divided up into two categories: Base and Ext. Base contains Apache,FTP,Git,MySQL,PostgreSQL, Python, Ruby and Yum. Ext contains recipies for Rails and Django. If you are deploying your applications with Django or Rails, you can set up your server in on easy command through a combination of base recipes.
3
+
4
+ # Tasks
5
+
6
+ ## Base
7
+ * Apache
8
+ * Setup: Installs the 'Web Server' group
9
+ * Tasks to start/stop/reload and turn on/off the httpd service.
10
+ * FTP
11
+ * Setup: Install the 'FTP Server' group.
12
+ * Tasks to start/stop/reload and turn on/off the vsftpd service.
13
+ * Git
14
+ * Setup: Installs the git packages and configures it.
15
+ * MySQL
16
+ * Setup: Installs the 'MySQL Server' group.
17
+ * phpMyAdmin: Installs phpMyAdmin and allows remote access from your IP.
18
+ * Tasks to start/stop/reload and turn on/off the mysqld service
19
+ * PostgreSQL
20
+ * Setup: Installs the 'PostgreSQL Server' group.
21
+ * phpPgAdmin: Install phpPgAdmin and allows remote access from your IP.
22
+ * Tasks to start/stop/reload and turn on/off the postgresql service
23
+ * Python
24
+ * Setup: Install python and common python packages.
25
+ * Ruby
26
+ * Setup: Install Ruby and Ruby Gems. Configures gems and installs a few common gems.
27
+ * PostgreSQL: Configure the PostgreSQL gems. Setup PostgreSQL before running this task
28
+ * MySQL: Configure the MySQL gem. Setup MySQL before running this task.
29
+ * Yum
30
+ * Update: updates all packages
31
+ * RPMFusion: enables the RPMFusion repo
32
+
33
+ ## Ext
34
+ * Rails
35
+ * Setup: Installs Rails and many common gems. Also installs Passenger for Apache
36
+ * Vhost: Generates a simple passenger vhost you can use and adds it to the server
37
+ * Django
38
+ * Setup: Installs Django and apache modules needed for deployment
39
+
40
+ # Install
41
+ # gem install gemcutter
42
+ # gem tumble
43
+ # gem install fedora
44
+
45
+ # Using Fedora in Your CapFile
46
+ To use the gem, first require RubyGems, then require this gem.
47
+
48
+ require 'rubygems'
49
+ require 'fedora'
50
+
51
+
52
+ # Using the Recipies to Work Quickly
53
+ You should use the tasks in order to construct the server you need. For example, if you need to deploy Rails with PostgreSQL run:
54
+ cap apache:setup ruby:setup postgresql:setup ruby:postgresql rails:setup
55
+
56
+ The tasks are independant of each other so you can install services one by one if you like.
metadata ADDED
@@ -0,0 +1,75 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: fedora
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.0
5
+ platform: ruby
6
+ authors:
7
+ - Adam Hawkins
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+
12
+ date: 2009-11-06 00:00:00 -08:00
13
+ default_executable:
14
+ dependencies: []
15
+
16
+ description: Set of capistrano recipies for automating creation of Fedora servers.
17
+ email: Adman1965@gmail.com
18
+ executables: []
19
+
20
+ extensions: []
21
+
22
+ extra_rdoc_files: []
23
+
24
+ files:
25
+ - .gitignore
26
+ - Rakefile
27
+ - VERSION
28
+ - lib/fedora.rb
29
+ - lib/helpers.rb
30
+ - lib/recipes/base/apache.rb
31
+ - lib/recipes/base/ftp.rb
32
+ - lib/recipes/base/git.rb
33
+ - lib/recipes/base/mysql.rb
34
+ - lib/recipes/base/postgresql.rb
35
+ - lib/recipes/base/python.rb
36
+ - lib/recipes/base/ruby.rb
37
+ - lib/recipes/base/yum.rb
38
+ - lib/recipes/ext/django.rb
39
+ - lib/recipes/ext/rails.rb
40
+ - lib/templates/httpd.conf.erb
41
+ - lib/templates/passenger.conf.erb
42
+ - lib/templates/passenger.vhost.erb
43
+ - lib/templates/phpMyAdmin.conf.erb
44
+ - lib/templates/phpPgAdmin.conf.erb
45
+ - readme.markdown
46
+ has_rdoc: true
47
+ homepage: http://github.com/Adman65/fedora
48
+ licenses: []
49
+
50
+ post_install_message:
51
+ rdoc_options:
52
+ - --charset=UTF-8
53
+ require_paths:
54
+ - lib
55
+ required_ruby_version: !ruby/object:Gem::Requirement
56
+ requirements:
57
+ - - ">="
58
+ - !ruby/object:Gem::Version
59
+ version: "0"
60
+ version:
61
+ required_rubygems_version: !ruby/object:Gem::Requirement
62
+ requirements:
63
+ - - ">="
64
+ - !ruby/object:Gem::Version
65
+ version: "0"
66
+ version:
67
+ requirements: []
68
+
69
+ rubyforge_project:
70
+ rubygems_version: 1.3.5
71
+ signing_key:
72
+ specification_version: 3
73
+ summary: Set of capistrano recipies for automating creation of Fedora servers.
74
+ test_files: []
75
+