fabfile ======= .. py:module:: fabfile .. autoapi-nested-parse:: This is a fabric script file that allows for remote deployment of GeoNode and a downstream GeoNode project via ssh. To deploy a default GeoNode: fab -H user@hostname deploy_default_geonode To deploy a GeoNode project from current directory: fab -H user@hostname deploy:'project' project - name of project (name of site directory in current dir) This file currently gets GeoNode from GitHub, eventually will install from repo or debian package (once release candidate phase or later) Attributes ---------- .. autoapisummary:: fabfile.logger fabfile.INSTALLDIR fabfile.POSTGIS_VER fabfile.GEONODE_BRANCH fabfile.GEONODE_GIT_URL fabfile.ADMIN_USER fabfile.ADMIN_PASSWORD fabfile.ADMIN_EMAIL fabfile.UBUNTU_VERSION fabfile.ARCH fabfile.VERSION fabfile.MAKE_PUBLIC fabfile.AMI_BUCKET fabfile.AWS_USER_ID fabfile.AWS_ACCESS_KEY_ID fabfile.AWS_SECRET_ACCESS_KEY fabfile.KEY_BASE fabfile.KEY_PATH fabfile.GEONODEDIR fabfile.PYLIBS fabfile.ACT Functions --------- .. autoapisummary:: fabfile.install_depend fabfile.create_postgis_template fabfile.deploy_geonode fabfile.deploy_project fabfile.enable_site fabfile.restore_data fabfile.create_database fabfile.setup_pgsql fabfile.deploy fabfile.deploy_default_geonode fabfile.deploy_geonode_testing_package fabfile.deploy_geonode_snapshot_package fabfile.deploy_geonode_unstable_package fabfile.deploy_geonode_dev_deb fabfile.change_admin_password fabfile.geonode_updateip fabfile.set_temp_hosts_entry fabfile.remove_temp_hosts_entry fabfile.update_geoserver_geonode_auth fabfile.update_instance fabfile.cleanup_temp fabfile.copy_keys fabfile.install_ec2_tools fabfile.build_geonode_ami fabfile.install_sample_data Module Contents --------------- .. py:data:: logger .. py:data:: INSTALLDIR :value: '/var/lib' .. py:data:: POSTGIS_VER :value: '1.5.3-2' .. py:data:: GEONODE_BRANCH :value: 'dev' .. py:data:: GEONODE_GIT_URL :value: 'git://github.com/GeoNode/geonode.git' .. py:data:: ADMIN_USER :value: 'geonode' .. py:data:: ADMIN_PASSWORD :value: 'adm1n' .. py:data:: ADMIN_EMAIL :value: 'admin@admin.admin' .. py:data:: UBUNTU_VERSION :value: 'precise' .. py:data:: ARCH :value: 'x86_64' .. py:data:: VERSION :value: '2.0a0' .. py:data:: MAKE_PUBLIC :value: True .. py:data:: AMI_BUCKET :value: 'geonode-ami-dev' .. py:data:: AWS_USER_ID .. py:data:: AWS_ACCESS_KEY_ID .. py:data:: AWS_SECRET_ACCESS_KEY .. py:data:: KEY_BASE .. py:data:: KEY_PATH :value: '~/.ssh/' .. py:data:: GEONODEDIR .. py:data:: PYLIBS .. py:data:: ACT .. py:function:: install_depend() .. py:function:: create_postgis_template() .. py:function:: deploy_geonode() .. py:function:: deploy_project(project) .. py:function:: enable_site(project) .. py:function:: restore_data(project) .. py:function:: create_database(db, user, password) .. py:function:: setup_pgsql(project) .. py:function:: deploy(project) .. py:function:: deploy_default_geonode() .. py:function:: deploy_geonode_testing_package() .. py:function:: deploy_geonode_snapshot_package() .. py:function:: deploy_geonode_unstable_package() .. py:function:: deploy_geonode_dev_deb() .. py:function:: change_admin_password() .. py:function:: geonode_updateip(server_name='demo.geonode.org') .. py:function:: set_temp_hosts_entry(server_name='demo.geonode.org') .. py:function:: remove_temp_hosts_entry() .. py:function:: update_geoserver_geonode_auth() .. py:function:: update_instance() .. py:function:: cleanup_temp() .. py:function:: copy_keys() .. py:function:: install_ec2_tools() .. py:function:: build_geonode_ami() .. py:function:: install_sample_data()