pyami

boto.pyami

boto.pyami.bootstrap

class boto.pyami.bootstrap.Bootstrap

The Bootstrap class is instantiated and run as part of the PyAMI instance initialization process. The methods in this class will be run from the rc.local script of the instance and will be run as the root user.

The main purpose of this class is to make sure the boto distribution on the instance is the one required.

create_working_dir()
fetch_s3_file(s3_file)
load_boto()
load_packages()
main()
write_metadata()

boto.pyami.config

class boto.pyami.config.Config(path=None, fp=None, do_load=True)
dump()
dump_safe(fp=None)
dump_to_sdb(domain_name, item_name)
get(section, name, default=None)
get_instance(name, default=None)
get_user(name, default=None)
get_value(section, name, default=None)
getbool(section, name, default=False)
getfloat(section, name, default=0.0)
getint(section, name, default=0)
getint_user(name, default=0)
load_credential_file(path)

Load a credential file as is setup like the Java utilities

load_from_path(path)
load_from_sdb(domain_name, item_name)
save_option(path, section, option, value)

Write the specified Section.Option to the config file specified by path. Replace any previous value. If the path doesn’t exist, create it. Also add the option the the in-memory config.

save_system_option(section, option, value)
save_user_option(section, option, value)
setbool(section, name, value)

boto.pyami.copybot

class boto.pyami.copybot.CopyBot
copy_bucket_acl()
copy_key_acl(src, dst)
copy_keys()
copy_log()
main()

boto.pyami.installers

boto.pyami.installers.ubuntu

boto.pyami.installers.ubuntu.apache

boto.pyami.installers.ubuntu.ebs

boto.pyami.installers.ubuntu.installer

boto.pyami.installers.ubuntu.mysql

boto.pyami.installers.ubuntu.trac

boto.pyami.launch_ami

boto.pyami.launch_ami.main()
boto.pyami.launch_ami.usage()

boto.pyami.scriptbase

class boto.pyami.scriptbase.ScriptBase(config_file=None)
main()
mkdir(path)
notify(subject, body='')
run(command, notify=True, exit_on_error=False, cwd=None)
umount(path)

boto.pyami.startup

class boto.pyami.startup.Startup(config_file=None)
main()
run_scripts()