fabfile

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

logger

INSTALLDIR

POSTGIS_VER

GEONODE_BRANCH

GEONODE_GIT_URL

ADMIN_USER

ADMIN_PASSWORD

ADMIN_EMAIL

UBUNTU_VERSION

ARCH

VERSION

MAKE_PUBLIC

AMI_BUCKET

AWS_USER_ID

AWS_ACCESS_KEY_ID

AWS_SECRET_ACCESS_KEY

KEY_BASE

KEY_PATH

GEONODEDIR

PYLIBS

ACT

Functions

install_depend()

create_postgis_template()

deploy_geonode()

deploy_project(project)

enable_site(project)

restore_data(project)

create_database(db, user, password)

setup_pgsql(project)

deploy(project)

deploy_default_geonode()

deploy_geonode_testing_package()

deploy_geonode_snapshot_package()

deploy_geonode_unstable_package()

deploy_geonode_dev_deb()

change_admin_password()

geonode_updateip([server_name])

set_temp_hosts_entry([server_name])

remove_temp_hosts_entry()

update_geoserver_geonode_auth()

update_instance()

cleanup_temp()

copy_keys()

install_ec2_tools()

build_geonode_ami()

install_sample_data()

Module Contents

fabfile.logger[source]
fabfile.INSTALLDIR = '/var/lib'[source]
fabfile.POSTGIS_VER = '1.5.3-2'[source]
fabfile.GEONODE_BRANCH = 'dev'[source]
fabfile.GEONODE_GIT_URL = 'git://github.com/GeoNode/geonode.git'[source]
fabfile.ADMIN_USER = 'geonode'[source]
fabfile.ADMIN_PASSWORD = 'adm1n'[source]
fabfile.ADMIN_EMAIL = 'admin@admin.admin'[source]
fabfile.UBUNTU_VERSION = 'precise'[source]
fabfile.ARCH = 'x86_64'[source]
fabfile.VERSION = '2.0a0'[source]
fabfile.MAKE_PUBLIC = True[source]
fabfile.AMI_BUCKET = 'geonode-ami-dev'[source]
fabfile.AWS_USER_ID[source]
fabfile.AWS_ACCESS_KEY_ID[source]
fabfile.AWS_SECRET_ACCESS_KEY[source]
fabfile.KEY_BASE[source]
fabfile.KEY_PATH = '~/.ssh/'[source]
fabfile.GEONODEDIR[source]
fabfile.PYLIBS[source]
fabfile.ACT[source]
fabfile.install_depend()[source]
fabfile.create_postgis_template()[source]
fabfile.deploy_geonode()[source]
fabfile.deploy_project(project)[source]
fabfile.enable_site(project)[source]
fabfile.restore_data(project)[source]
fabfile.create_database(db, user, password)[source]
fabfile.setup_pgsql(project)[source]
fabfile.deploy(project)[source]
fabfile.deploy_default_geonode()[source]
fabfile.deploy_geonode_testing_package()[source]
fabfile.deploy_geonode_snapshot_package()[source]
fabfile.deploy_geonode_unstable_package()[source]
fabfile.deploy_geonode_dev_deb()[source]
fabfile.change_admin_password()[source]
fabfile.geonode_updateip(server_name='demo.geonode.org')[source]
fabfile.set_temp_hosts_entry(server_name='demo.geonode.org')[source]
fabfile.remove_temp_hosts_entry()[source]
fabfile.update_geoserver_geonode_auth()[source]
fabfile.update_instance()[source]
fabfile.cleanup_temp()[source]
fabfile.copy_keys()[source]
fabfile.install_ec2_tools()[source]
fabfile.build_geonode_ami()[source]
fabfile.install_sample_data()[source]