theoden avatar theoden committed 111ccab

2.1.3-5 from system.install_software
* extra_packages moved to mysql.install
* locales-all moved to apache.install
* curl, screen and memcached were dismissed

Comments (0)

Files changed (3)

fab_deploy/db/mysql.py

         if self.is_installed():
             puts('Mysql is already installed.')
             return
-
+        extra_packages = {
+            'lenny': ['libmysqlclient15-dev'],
+            'squeeze': ['libmysqlclient-dev'],
+            'maverick': ['libmysqlclient-dev'],
+            'lucid': ['libmysqlclient-dev'],
+        }
+        os = utils.detect_os()
+        if os not in extra_packages:
+            fabric_utils.abort('Your OS (%s) is unsupported now.' % os)
         passwd = self._get_root_password()
         self._preseed_password(passwd)
 
         system.aptitude_install('mysql-server')
+        system.aptitude_install(extra_packages[os])
 
     @task
     def is_installed(self):

fab_deploy/system.py

         'libssl-dev', 'libcurl3-dev',
         'libxml2-dev', 'libxslt1-dev', # for lxml
 
-        'screen', 'locales-all', 'curl',
-        'memcached',
         'subversion',
     ]
-    extra_packages = {
-        'lenny': ['libmysqlclient15-dev'],
-        'squeeze': ['libmysqlclient-dev'],
-        'maverick': ['libmysqlclient-dev'],
-        'lucid': ['libmysqlclient-dev'],
-    }
-
-    os = utils.detect_os()
-    if os not in extra_packages:
-        fabric_utils.abort('Your OS (%s) is unsupported now.' % os)
-
-    aptitude_install(" ".join(common_packages + extra_packages[os]))
+    aptitude_install(" ".join(common_packages))
 
     # git and mercurial are outdated in stable Debian Lenny and
     # don't work with some source repositories on github and bitbucket

fab_deploy/webserver/apache.py

 @utils.run_as_sudo
 def install():
     """ Installs apache. """
-    system.aptitude_install('apache2 libapache2-mod-wsgi libapache2-mod-rpaf')
+    system.aptitude_install('apache2 libapache2-mod-wsgi libapache2-mod-rpaf locales-all')
     sudo('rm -f /etc/apache2/sites-enabled/default')
     sudo('rm -f /etc/apache2/sites-enabled/000-default')
     setup_locale()
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.