Module Expr Str Import alias alias alias Import alias ImportFrom alias ImportFrom alias alias alias ImportFrom alias alias ImportFrom alias alias alias alias alias ImportFrom alias alias alias alias alias alias ImportFrom alias ImportFrom alias alias ImportFrom alias alias alias alias ImportFrom alias alias alias FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Str Assign NameStore ListLoad For TupleStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad body If NameLoad body For NameStore NameLoad body If CompareNotEq SubscriptLoad NameLoad Index Num Str body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Return Call NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Expr Str If BoolOpAnd UnaryOpNot AttributeLoad NameLoad attr CompareEq AttributeLoad NameLoad attr Call NameLoad Str body Return If AttributeLoad NameLoad attr body Print AttributeLoad NameLoad attr Str If Call NameLoad keyword Str keyword Str body Expr Call NameLoad Str Expr Call NameLoad Str Str keyword NameLoad Expr Call NameLoad Str For NameStore AttributeLoad NameLoad attr body Expr Call NameLoad BinOpMod Str NameLoad If AttributeLoad NameLoad attr body Print Str NameLoad Expr Call NameLoad Str AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults Str Str Str NameLoad body Expr Str If NameLoad body Assign NameStore BinOpMod Str NameLoad If UnaryOpNot NameLoad body Expr Call NameLoad BinOpMod Str TupleLoad NameLoad NameLoad If UnaryOpNot NameLoad body Expr Call NameLoad BinOpMod Str TupleLoad NameLoad NameLoad Expr Call NameLoad Str Expr Call NameLoad Str orelse Expr Call NameLoad BinOpMod Str NameLoad Expr Call NameLoad BinOpMod Str NameLoad decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore SubscriptLoad Call NameLoad AttributeLoad NameLoad attr Index Num Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call NameLoad AttributeLoad NameLoad attr Assign NameStore Call NameLoad AttributeLoad NameLoad attr NameLoad NameLoad With Call NameLoad keyword NameLoad keyword AttributeLoad NameLoad attr body If AttributeLoad NameLoad attr body Print AttributeLoad NameLoad attr BinOpAdd Str Call NameLoad NameLoad Expr Call NameLoad Str BinOpAdd Str Call NameLoad NameLoad BinOpAdd Str Call NameLoad NameLoad keyword NameLoad If AttributeLoad NameLoad attr body Print AttributeLoad NameLoad attr Str NameLoad Expr Call NameLoad Str Return NameLoad decorator_list FunctionDef arguments args defaults body Expr Str FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr keyword BinOpMod Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword Str If CompareNotEq NameLoad NameLoad body Print AttributeLoad NameLoad attr Str Expr Call NameLoad Return NameLoad decorator_list Assign TupleStore NameStore NameStore NameStore Call NameLoad AttributeLoad NameLoad attr If BoolOpAnd AttributeLoad NameLoad attr UnaryOpNot BoolOpOr AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Print Str If AttributeLoad NameLoad attr body Assign NameStore Call NameLoad Str keyword AttributeLoad NameLoad attr orelse Assign NameStore AttributeLoad NameLoad attr If CompareNotEq AttributeLoad NameLoad attr Str body Assign NameStore AttributeLoad NameLoad attr orelse Assign NameStore Str If AttributeLoad NameLoad attr body Assign NameStore Call NameLoad Str keyword NameLoad orelse Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str Str Assign NameStore Call NameLoad NameLoad NameLoad Call NameLoad AttributeLoad NameLoad attr With Call NameLoad keyword NameLoad keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr body If UnaryOpNot Call NameLoad Str Str keyword NameLoad body Expr Call NameLoad Str Assign NameStore BinOpMod Str NameLoad If UnaryOpNot Call NameLoad NameLoad body If AttributeLoad NameLoad attr body Print AttributeLoad NameLoad attr BinOpMod Str NameLoad If UnaryOpNot NameLoad body Assign NameStore Call NameLoad Expr Call NameLoad keyword NameLoad keyword NameLoad keyword Str orelse Expr Call NameLoad BinOpMod Str NameLoad Expr Call NameLoad BinOpMod Str NameLoad If UnaryOpNot Call NameLoad Str keyword NameLoad body Expr Call NameLoad Str Expr Call NameLoad Str Expr Call NameLoad Str Str keyword NameLoad Expr Call NameLoad Str Str keyword NameLoad Expr Call NameLoad Str Expr Call NameLoad Str Expr Call NameLoad Str If AttributeLoad NameLoad attr body Expr Call NameLoad BinOpMod Str NameLoad Expr Call NameLoad BinOpMod Str NameLoad Expr Call NameLoad BinOpMod Str TupleLoad NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad Assign NameStore Call NameLoad NameLoad NameLoad Call NameLoad AttributeLoad NameLoad attr With Call NameLoad keyword NameLoad body If BoolOpAnd CompareNotEq NameLoad NameLoad CompareEq NameLoad Str body If AttributeLoad NameLoad attr body Assign NameStore Call NameLoad Str keyword NameLoad orelse Assign NameStore AttributeLoad NameLoad attr If NameLoad body If AttributeLoad NameLoad attr body Print AttributeLoad NameLoad attr Str Expr Call NameLoad BinOpMod Str Str Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call NameLoad BinOpMod Str NameLoad keyword NameLoad decorator_list FunctionDef arguments args defaults body Expr Str If AttributeLoad NameLoad attr body Print AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad Call NameLoad Str attr Str If BoolOpOr AttributeLoad NameLoad attr BoolOpAnd UnaryOpNot Call NameLoad Str CompareIn Str NameLoad body With Call NameLoad keyword NameLoad body Expr Call NameLoad Str Expr Call NameLoad Str Expr Call NameLoad Str Assign SubscriptStore AttributeLoad NameLoad attr Index AttributeLoad NameLoad attr ListLoad Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index AttributeLoad NameLoad attr Assign NameStore Call NameLoad For NameStore NameLoad body If UnaryOpNot CompareIn NameLoad NameLoad body Expr Call NameLoad NameLoad If AttributeLoad NameLoad attr body Print Str NameLoad Expr Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index AttributeLoad NameLoad attr attr NameLoad If BoolOpOr AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index AttributeLoad NameLoad attr body Expr Call NameLoad Str NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index AttributeLoad NameLoad attr NameLoad If BoolOpAnd AttributeLoad NameLoad attr CompareIn Str SubscriptLoad AttributeLoad NameLoad attr Index AttributeLoad NameLoad attr body Expr Call NameLoad Str Expr Call NameLoad Str keyword Str keyword Str keyword NameLoad keyword Str Expr Call NameLoad Str keyword Str keyword Str keyword NameLoad keyword Str Expr Call NameLoad Str keyword Str keyword Str keyword NameLoad keyword Str For NameStore AttributeLoad NameLoad attr body Expr Call NameLoad BinOpMod Str NameLoad If BoolOpAnd BoolOpOr AttributeLoad NameLoad attr UnaryOpNot Call NameLoad Str CompareIn Str NameLoad body Expr Call NameLoad Str Expr Call NameLoad Str Expr Call NameLoad Str If AttributeLoad NameLoad attr body Print Str Expr Call NameLoad Str If UnaryOpNot Call NameLoad BinOpMod Str AttributeLoad NameLoad attr Str body Expr Call NameLoad BinOpMod Str AttributeLoad NameLoad attr Str Expr Call NameLoad BinOpMod Str AttributeLoad NameLoad attr Str Expr Call NameLoad Str decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore Call AttributeLoad Call NameLoad Str attr Str Assign NameStore Call NameLoad Dict For NameStore NameLoad body TryExcept body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Str handlers ExceptHandler type NameLoad body Continue Assign SubscriptStore NameLoad Index Call AttributeLoad Call AttributeLoad Call AttributeLoad NameLoad attr attr Str Str attr Call AttributeLoad NameLoad attr If Call NameLoad Str body Assign AttributeStore NameLoad attr Str orelse If Call NameLoad Str body Assign AttributeStore NameLoad attr Str orelse Assign AttributeStore NameLoad attr Str Return NameLoad decorator_list FunctionDef arguments args defaults body Expr Str With Call NameLoad Call NameLoad Str keyword NameLoad body TryExcept body If AttributeLoad NameLoad attr body Print BinOpMod Str AttributeLoad NameLoad attr Assign NameStore Call NameLoad handlers ExceptHandler type NameLoad body If AttributeLoad NameLoad attr body Print AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Num ExceptHandler body Return NameLoad If CompareNotEq AttributeLoad NameLoad attr Str body Print AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam defaults NameLoad body Expr Str If UnaryOpNot NameLoad body If Call NameLoad Str body Return NameLoad Assign NameStore Str If AttributeLoad NameLoad attr body Print AttributeLoad NameLoad attr BinOpAdd Str NameLoad Assign NameStore Str If UnaryOpNot Call NameLoad BinOpMod Str AttributeLoad NameLoad attr body Print AttributeLoad NameLoad attr Str Return NameLoad Expr Call NameLoad NameLoad Assign NameStore Dict Str AttributeLoad NameLoad attr Expr Call NameLoad Str Str keyword NameLoad keyword NameLoad Expr Call NameLoad Str Assign NameStore NameLoad If BoolOpAnd UnaryOpNot AttributeLoad NameLoad attr BoolOpOr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call NameLoad Str Str keyword NameLoad body Print BinOpMod Str TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Str Assign NameStore Call NameLoad NameLoad keyword NameLoad If BoolOpOr UnaryOpNot AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr body Expr Call NameLoad NameLoad Str keyword NameLoad Expr Call NameLoad Str Expr Call NameLoad Str Return NameLoad orelse Expr Call NameLoad Str If Call NameLoad Str body Expr Call NameLoad Str BinOpAdd Str Call NameLoad AttributeLoad NameLoad attr BinOpAdd Str Call NameLoad AttributeLoad NameLoad attr keyword NameLoad Expr Call NameLoad Str Expr Call NameLoad Str Expr Call NameLoad Str keyword NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults NameLoad body Expr Str If UnaryOpNot NameLoad body If Call NameLoad keyword Str keyword AttributeLoad NameLoad attr keyword NameLoad body Return NameLoad If AttributeLoad NameLoad attr body Print AttributeLoad NameLoad attr BinOpAdd Str AttributeLoad NameLoad attr Expr Call NameLoad Str Expr Call NameLoad BinOpMod Str AttributeLoad NameLoad attr Expr Call NameLoad Str Expr Call NameLoad Str orelse Expr Call NameLoad Str Expr Call NameLoad Str Return NameLoad decorator_list FunctionDef arguments args defaults body Expr Str If UnaryOpNot AttributeLoad NameLoad attr body Return Assign NameStore Call NameLoad Str If BoolOpOr BoolOpAnd NameLoad UnaryOpNot AttributeLoad NameLoad attr CompareEq NameLoad Call NameLoad AttributeLoad NameLoad attr body Return Assign NameStore Call AttributeLoad Call NameLoad Str attr If UnaryOpNot NameLoad body If AttributeLoad NameLoad attr body Print AttributeLoad NameLoad attr Str Expr Call NameLoad Str If AttributeLoad NameLoad attr body Print AttributeLoad NameLoad attr Str Expr Call NameLoad Call AttributeLoad Str attr ListLoad Str Str Str Dict Str AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad Expr Call NameLoad Str With Call NameLoad keyword NameLoad body If UnaryOpNot NameLoad body Expr Call NameLoad Str orelse Expr Call NameLoad Str Expr Call NameLoad Str Expr Call NameLoad Str Str Str keyword NameLoad keyword Str With Call NameLoad keyword NameLoad body Assign NameStore Call NameLoad Str If AttributeLoad NameLoad attr body Print NameLoad Expr Call NameLoad Str Call NameLoad AttributeLoad NameLoad attr Return decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore Call NameLoad Str If NameLoad body Assign NameStore Call NameLoad NameLoad orelse Assign NameStore Call NameLoad ListLoad Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index AttributeLoad NameLoad attr Assign NameStore Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad If BoolOpAnd UnaryOpNot AttributeLoad NameLoad attr CompareEq NameLoad NameLoad body Return If AttributeLoad NameLoad attr body Print Str Assign NameStore BinOpSub NameLoad NameLoad For NameStore NameLoad body With Call NameLoad keyword NameLoad body If AttributeLoad NameLoad attr body Print Str NameLoad Expr Call NameLoad BinOpMod Str NameLoad Assign NameStore BinOpSub NameLoad NameLoad For NameStore NameLoad body With Call NameLoad keyword NameLoad body If AttributeLoad NameLoad attr body Print Str NameLoad Expr Call NameLoad BinOpMod Str NameLoad Expr Call NameLoad Str Call NameLoad NameLoad Assign NameStore Call NameLoad Str If AttributeLoad NameLoad attr body Print NameLoad decorator_list FunctionDef arguments args defaults body Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call NameLoad BinOpMod Str NameLoad keyword NameLoad decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore Call NameLoad Str If NameLoad body Assign NameStore Call NameLoad NameLoad orelse Return Assign SubscriptStore AttributeLoad NameLoad attr Index AttributeLoad NameLoad attr ListLoad Assign NameStore Call NameLoad Call NameLoad Assign NameStore BinOpSub NameLoad NameLoad If BoolOpAnd NameLoad AttributeLoad NameLoad attr body Print AttributeLoad NameLoad attr Str For NameStore NameLoad body If AttributeLoad NameLoad attr body Print Str NameLoad Expr Call NameLoad NameLoad Expr Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index AttributeLoad NameLoad attr attr NameLoad Expr Call NameLoad Str Call NameLoad Return decorator_list FunctionDef arguments args defaults body Expr Str If AttributeLoad NameLoad attr body Print AttributeLoad NameLoad attr Str Print Str Expr Call NameLoad Str If AttributeLoad NameLoad attr body Print Str Print Str Print Str Print Str Expr Call NameLoad Str decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index AttributeLoad NameLoad attr Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad If AttributeLoad NameLoad attr body Print Str If UnaryOpNot Call NameLoad NameLoad Str body Assign NameStore Num Assign AttributeStore NameLoad attr Str For NameStore AttributeLoad NameLoad attr body If NameLoad body Assign NameStore Call NameLoad NameLoad If CompareLt NameLoad NameLoad body Assign NameStore NameLoad Assign AttributeStore NameLoad attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Index Num Str Str Assign NameStore Call NameLoad NameLoad If AttributeLoad NameLoad attr body Assign NameStore Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str orelse Assign NameStore Call NameLoad ListLoad Assign NameStore BinOpBitOr NameLoad NameLoad Assign NameStore Dict Str Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr If BoolOpOr AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index AttributeLoad NameLoad attr body Assign NameStore NameLoad orelse Assign NameStore NameLoad For NameStore NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Str Str Num Assign TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr Str Index Num If CompareIn NameLoad ListLoad Str Str Str Str Str body If BoolOpAnd UnaryOpNot Call NameLoad NameLoad CompareNotIn NameLoad NameLoad body Continue orelse If CompareEq NameLoad Str body If CompareNotIn NameLoad NameLoad body Continue orelse If UnaryOpNot Call NameLoad NameLoad keyword NameLoad body Continue Assign NameStore Call NameLoad NameLoad NameLoad keyword NameLoad keyword NameLoad keyword NameLoad If NameLoad body Expr Call NameLoad Call AttributeLoad Str attr ListLoad Str NameLoad If CompareIn Str NameLoad body Expr Call NameLoad Call AttributeLoad Str attr ListLoad Str NameLoad orelse Expr Call NameLoad Call AttributeLoad Str attr ListLoad Str NameLoad If AttributeLoad NameLoad attr body Print Str NameLoad decorator_list FunctionDef arguments args NameParam defaults NameLoad body Expr Str Assign NameStore BinOpMod Str AttributeLoad NameLoad attr If UnaryOpNot NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad Str attr ListLoad NameLoad NameLoad Assign NameStore BinOpMod Str NameLoad If BoolOpAnd UnaryOpNot AttributeLoad NameLoad attr Call NameLoad NameLoad body Return If UnaryOpNot Call NameLoad Str body Expr Call NameLoad Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str If BoolOpAnd AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Assign NameStore Call NameLoad BinOpMod Str Call NameLoad AttributeLoad NameLoad attr keyword NameLoad If NameLoad body If Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Assign NameStore NameLoad orelse If Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Assign NameStore NameLoad If NameLoad body Assign NameStore Call AttributeLoad Call NameLoad NameLoad Str attr If Call NameLoad NameLoad body Expr Call NameLoad NameLoad If AttributeLoad NameLoad attr body Print AttributeLoad NameLoad attr Str Expr Call NameLoad NameLoad NameLoad Expr Call NameLoad NameLoad Return orelse If Call NameLoad BinOpAdd NameLoad Str body Expr Call NameLoad BinOpMod Str AttributeLoad NameLoad attr orelse Expr Call NameLoad Str Return decorator_list
N/A N/A 
Replaces the ubuntu.py module with more generic linux functions.
 N/A os socket sys N/A getpass django.utils importlib fabric.state _AttributeDict env connections fabric.context_managers settings hide fabric.operations prompt run sudo get put fabric.contrib.files comment uncomment contains exists append sed fabric.contrib.console confirm fabric.network join_host_strings normalize woven.deployment _backup_file _restore_file deploy_files upload_template woven.environment server_state set_server_state get_packages _get_template_files N/A N/A template_dir N/A N/A N/A etc_dir N/A N/A N/A os path join template_dir woven etc N/A templates N/A N/A N/A root dirs files N/A N/A os walk etc_dir N/A N/A files N/A N/A f files N/A N/A N/A N/A f N/A 0 . N/A N/A new_root N/A N/A root replace template_dir N/A N/A N/A templates append N/A N/A N/A os path join new_root f N/A N/A set templates N/A add_repositories N/A N/A N/A N/A N/A 
    Adds additional sources as defined in LINUX_PACKAGE_REPOSITORIES.

     N/A N/A N/A N/A env overwrite N/A N/A env LINUX_PACKAGE_REPOSITORIES N/A server_state linux_package_repositories N/A N/A N/A N/A env verbosity N/A N/A N/A env host UNCOMMENTING SOURCES in /etc/apt/sources.list and adding PPAs N/A N/A contains filename /etc/apt/sources.list text #(.?)deb(.*)http:(.*)universe N/A N/A N/A _backup_file /etc/apt/sources.list N/A N/A uncomment /etc/apt/sources.list #(.?)deb(.*)http:(.*)universe use_sudo True N/A N/A install_package python-software-properties N/A p N/A env LINUX_PACKAGE_REPOSITORIES N/A N/A N/A sudo N/A add-apt-repository %s p N/A N/A env verbosity N/A N/A added source p N/A N/A set_server_state linux_package_repositories N/A env LINUX_PACKAGE_REPOSITORIES N/A add_user N/A N/A username password group site_user N/A False N/A N/A 
    Adds the username
     N/A group N/A N/A group N/A -g %s group N/A N/A site_user N/A N/A N/A run N/A echo %s:%s > /tmp/users.txt N/A username password N/A N/A site_user N/A N/A N/A sudo N/A useradd -m -s /bin/bash %s %s N/A group username N/A N/A sudo chpasswd < /tmp/users.txt N/A N/A sudo rm -rf /tmp/users.txt N/A N/A N/A sudo N/A useradd -M -d /var/www -s /bin/bash %s username N/A N/A sudo N/A usermod -a -G www-data %s username N/A change_ssh_port N/A N/A N/A N/A N/A 
    For security woven changes the default ssh port.
    
     N/A host N/A N/A normalize N/A env host_string N/A 1 N/A after N/A env port N/A before N/A str N/A env DEFAULT_SSH_PORT N/A host_string N/A join_host_strings N/A env user host before N/A N/A settings host_string host_string user N/A env user N/A N/A N/A env verbosity N/A N/A N/A env host N/A CHANGING SSH PORT TO:  N/A str after N/A N/A sed /etc/ssh/sshd_config N/A Port  N/A str before N/A Port  N/A str after use_sudo True N/A N/A env verbosity N/A N/A N/A env host RESTARTING SSH on after N/A N/A sudo /etc/init.d/ssh restart N/A True N/A disable_root N/A N/A N/A N/A N/A 
    Disables root and creates a new sudo user as specified by HOST_USER in your
    settings or your host_string
    
    The normal pattern for hosting is to get a root account which is then disabled.
    
    returns True on success
     enter_password N/A N/A N/A N/A N/A password1 N/A N/A getpass getpass prompt N/A Enter the password for %s: sudo_user N/A password2 N/A N/A getpass getpass prompt Re-enter the password: N/A N/A password1 password2 N/A N/A N/A env host The password was not the same N/A N/A enter_password N/A password1 N/A N/A N/A olduser host port N/A normalize N/A env host_string N/A N/A N/A env verbosity N/A N/A N/A env HOST_USER N/A env ROLEDEFS N/A N/A 
WOVEN will now walk through setting up your node (host).
 N/A N/A env INTERACTIVE N/A N/A root_user N/A prompt 
What is the default administrator account for your node? default N/A env ROOT_USER N/A N/A root_user N/A env ROOT_USER N/A N/A N/A env user root N/A N/A sudo_user N/A env user N/A N/A sudo_user N/A N/A env INTERACTIVE N/A N/A sudo_user N/A prompt What is the new or existing account you wish to use to setup and deploy to your node? default sudo_user N/A N/A root_user N/A env ROOT_USER N/A sudo_user N/A env user N/A original_password N/A N/A env get HOST_PASSWORD N/A host_string N/A join_host_strings root_user host N/A str N/A env DEFAULT_SSH_PORT N/A N/A settings host_string host_string key_filename N/A env key_filename password N/A env ROOT_PASSWORD N/A N/A N/A N/A contains /etc/group sudo use_sudo True N/A N/A N/A sudo groupadd sudo N/A home_path N/A /home/%s sudo_user N/A N/A N/A exists home_path N/A N/A N/A env verbosity N/A N/A N/A env host N/A CREATING A NEW ACCOUNT WITH SUDO PRIVILEGE: %s sudo_user N/A N/A original_password N/A N/A original_password N/A enter_password N/A N/A add_user username sudo_user password original_password group sudo N/A N/A N/A sudo N/A adduser %s sudo sudo_user N/A N/A sudo N/A usermod -a -G adm %s sudo_user N/A N/A N/A exists /etc/sudoers.wovenbak use_sudo True N/A N/A N/A sudo cp -f /etc/sudoers /etc/sudoers.wovenbak N/A N/A sudo cp -f /etc/sudoers /tmp/sudoers.tmp N/A N/A append /tmp/sudoers.tmp # Members of the sudo group may gain root privileges use_sudo True N/A N/A append /tmp/sudoers.tmp %sudo ALL=(ALL) NOPASSWD:ALL use_sudo True N/A N/A sudo visudo -c -f /tmp/sudoers.tmp N/A N/A sudo cp -f /tmp/sudoers.tmp /etc/sudoers N/A N/A sudo rm -rf /tmp/sudoers.tmp N/A N/A env key_filename N/A N/A N/A sudo N/A mkdir -p /home/%s/.ssh sudo_user N/A N/A sudo N/A cp -f ~/.ssh/authorized_keys /home/%s/.ssh/authorized_keys sudo_user N/A N/A sudo N/A chown -R %s:sudo /home/%s/.ssh N/A sudo_user sudo_user N/A N/A env password original_password N/A host_string N/A join_host_strings sudo_user host N/A str N/A env DEFAULT_SSH_PORT N/A N/A settings host_string host_string N/A N/A N/A N/A sudo_user root_user N/A root_user root N/A N/A N/A env INTERACTIVE N/A N/A d_root N/A confirm Disable the root account default True N/A N/A d_root N/A env DISABLE_ROOT N/A d_root N/A N/A N/A env verbosity N/A N/A N/A env host DISABLING ROOT N/A N/A sudo N/A usermod -L %s root N/A True N/A install_package N/A N/A package N/A N/A N/A 
    apt-get install [package]
     N/A N/A sudo N/A apt-get install -qqy %s package pty True N/A install_packages N/A N/A N/A N/A N/A 
    Install a set of baseline packages and configure where necessary
     N/A N/A env verbosity N/A N/A N/A env host INSTALLING & CONFIGURING NODE PACKAGES: N/A p N/A N/A N/A run dpkg -l | awk '/ii/ {print $2}' split N/A N/A N/A env overwrite N/A N/A N/A server_state apparmor-disabled N/A apparmor p N/A N/A N/A settings warn_only True N/A N/A N/A sudo /etc/init.d/apparmor stop N/A N/A sudo update-rc.d -f apparmor remove N/A N/A set_server_state apparmor-disabled N/A N/A N/A env installed_packages N/A N/A env host N/A N/A role N/A N/A env role_lookup N/A N/A env host_string N/A packages N/A get_packages N/A package packages N/A N/A N/A N/A package p N/A N/A N/A install_package package N/A N/A env verbosity N/A N/A  * installed package N/A N/A N/A N/A N/A env installed_packages N/A N/A env host append package N/A N/A N/A env overwrite N/A N/A env installed_packages N/A N/A env host N/A N/A N/A set_server_state packages_installed packages N/A N/A N/A env installed_packages N/A N/A env host packages N/A N/A N/A env overwrite N/A apache2 N/A N/A env installed_packages N/A N/A env host N/A N/A N/A sudo rm -f /etc/apache2/sites-enabled/000-default N/A N/A sed /etc/apache2/apache2.conf before KeepAlive On after KeepAlive Off use_sudo True backup N/A N/A sed /etc/apache2/apache2.conf before StartServers          2 after StartServers          1 use_sudo True backup N/A N/A sed /etc/apache2/apache2.conf before MaxClients          150 after MaxClients          100 use_sudo True backup N/A module N/A env APACHE_DISABLE_MODULES N/A N/A N/A sudo N/A rm -f /etc/apache2/mods-enabled/%s* module N/A N/A N/A N/A env overwrite N/A N/A server_state pip-venv-wrapper-installed N/A python-setuptools packages N/A N/A N/A sudo easy_install virtualenv N/A N/A sudo easy_install pip N/A N/A sudo easy_install virtualenvwrapper N/A N/A env verbosity N/A N/A  * easy installed pip, virtualenv, virtualenvwrapper N/A N/A set_server_state pip-venv-wrapper-installed N/A N/A N/A contains N/A /home/%s/.profile N/A env user source /usr/local/bin/virtualenvwrapper.sh N/A N/A N/A append N/A /home/%s/.profile N/A env user export WORKON_HOME=$HOME/env N/A N/A append N/A /home/%s/.profile N/A env user source /usr/local/bin/virtualenvwrapper.sh N/A N/A sudo rm -rf build N/A lsb_release N/A N/A N/A N/A N/A 
    Get the linux distribution information and return in an attribute dict
    
    The following attributes should be available:
    base, distributor_id, description, release, codename
    
    For example Ubuntu Lucid would return
    base = debian
    distributor_id = Ubuntu
    description = Ubuntu 10.04.x LTS
    release = 10.04
    codename = lucid
    
     N/A output N/A N/A N/A run lsb_release -a split N/A release N/A _AttributeDict N/A N/A line output N/A N/A N/A N/A N/A key value N/A N/A line split : N/A N/A N/A ValueError N/A N/A N/A N/A release N/A N/A N/A N/A N/A N/A N/A key strip replace _ lower N/A N/A value strip N/A N/A exists /etc/debian_version N/A N/A N/A release base debian N/A N/A N/A exists /etc/redhat-release N/A N/A N/A release base redhat N/A N/A N/A release base unknown N/A release N/A port_is_open N/A N/A N/A N/A N/A 
    Determine if the default port and user is open for business.
     N/A N/A settings N/A hide aborts warn_only True N/A N/A N/A N/A N/A env verbosity N/A N/A N/A Testing node for previous installation on port %s: N/A env port N/A distribution N/A lsb_release N/A N/A N/A KeyboardInterrupt N/A N/A N/A env verbosity N/A N/A N/A sys stderr 
Stopped. N/A N/A N/A sys exit 1 N/A N/A N/A False N/A N/A N/A distribution distributor_id Ubuntu N/A N/A N/A env host WARNING: Woven has only been tested on Ubuntu >= 10.04. It may not work as expected on N/A distribution description N/A True N/A restrict_ssh N/A N/A rollback N/A False N/A N/A 
    Set some sensible restrictions in Ubuntu /etc/ssh/sshd_config and restart sshd
    UseDNS no #prevents dns spoofing sshd defaults to yes
    X11Forwarding no # defaults to no
    AuthorizedKeysFile  %h/.ssh/authorized_keys

    uncomments PasswordAuthentication no and restarts sshd
     N/A N/A rollback N/A N/A N/A server_state ssh_restricted N/A N/A False N/A sshd_config /etc/ssh/sshd_config N/A N/A env verbosity N/A N/A N/A env host N/A RESTRICTING SSH with  sshd_config N/A filename sshd_config N/A N/A N/A exists N/A /home/%s/.ssh/authorized_keys N/A env user N/A N/A N/A env host You need to upload_ssh_key first. N/A False N/A N/A _backup_file sshd_config N/A context N/A HOST_SSH_PORT N/A env HOST_SSH_PORT N/A N/A upload_template woven/ssh/sshd_config /etc/ssh/sshd_config context context use_sudo True N/A N/A sudo /etc/init.d/ssh restart N/A proceed True N/A N/A N/A N/A env key_filename N/A N/A env DISABLE_SSH_PASSWORD N/A env INTERACTIVE N/A contains /etc/ssh/sshd_config #PasswordAuthentication no use_sudo True N/A N/A N/A WARNING: You may want to test your node ssh login at this point ssh %s@%s -p%s N/A N/A env user N/A env host N/A env port N/A c_text Would you like to disable password login and use only ssh key authentication N/A proceed N/A confirm c_text default False N/A N/A N/A N/A env INTERACTIVE proceed N/A env DISABLE_SSH_PASSWORD N/A N/A N/A uncomment sshd_config #(\s?)PasswordAuthentication(\s*)no use_sudo True N/A N/A sudo /etc/init.d/ssh restart N/A N/A set_server_state ssh_restricted N/A True N/A N/A N/A _restore_file /etc/ssh/sshd_config N/A N/A server_state ssh_port_changed N/A N/A N/A sed /etc/ssh/sshd_config N/A Port  N/A str N/A env DEFAULT_SSH_PORT N/A Port  N/A str N/A env HOST_SSH_PORT use_sudo True N/A N/A sudo /etc/init.d/ssh restart N/A N/A sudo /etc/init.d/ssh restart N/A N/A set_server_state ssh_restricted delete True N/A True N/A set_timezone N/A N/A rollback N/A False N/A N/A 
    Set the time zone on the server using Django settings.TIME_ZONE
     N/A N/A rollback N/A N/A N/A contains filename /etc/timezone text N/A env TIME_ZONE use_sudo True N/A N/A False N/A N/A env verbosity N/A N/A N/A env host N/A CHANGING TIMEZONE /etc/timezone to  N/A env TIME_ZONE N/A N/A _backup_file /etc/timezone N/A N/A sudo N/A echo %s > /tmp/timezone N/A env TIME_ZONE N/A N/A sudo cp -f /tmp/timezone /etc/timezone N/A N/A sudo dpkg-reconfigure --frontend noninteractive tzdata N/A N/A N/A _restore_fie /etc/timezone N/A N/A sudo dpkg-reconfigure --frontend noninteractive tzdata N/A True N/A setup_ufw N/A N/A N/A N/A N/A 
    Setup basic ufw rules just for ssh login
     N/A N/A N/A env ENABLE_UFW N/A N/A N/A ufw_state N/A server_state ufw_installed N/A N/A N/A ufw_state N/A N/A env overwrite N/A ufw_state N/A str N/A env HOST_SSH_PORT N/A N/A N/A ufw N/A N/A N/A run dpkg -l | grep 'ufw' | awk '{print $2}' strip N/A N/A ufw N/A N/A N/A env verbosity N/A N/A N/A env host INSTALLING & ENABLING FIREWALL ufw N/A N/A install_package ufw N/A N/A env verbosity N/A N/A N/A env host CONFIGURING FIREWALL ufw N/A N/A upload_template N/A N/A / join N/A woven ufw.txt /etc/ufw/applications.d/woven N/A HOST_SSH_PORT N/A env HOST_SSH_PORT use_sudo True backup False N/A N/A sudo chown root:root /etc/ufw/applications.d/woven N/A N/A settings warn_only True N/A N/A N/A ufw_state N/A N/A N/A sudo ufw allow woven N/A N/A N/A sudo ufw app update woven N/A N/A _backup_file /etc/ufw/ufw.conf N/A N/A sed /etc/ufw/ufw.conf ENABLED=no ENABLED=yes use_sudo True backup N/A N/A settings warn_only True N/A N/A output N/A sudo ufw reload N/A N/A env verbosity N/A N/A output N/A N/A set_server_state ufw_installed N/A str N/A env HOST_SSH_PORT N/A N/A setup_ufw_rules N/A N/A N/A N/A N/A 
    Setup ufw app rules from application templates and settings UFW_RULES

     N/A current_rules N/A server_state ufw_rules N/A current_rules N/A N/A current_rules N/A set current_rules N/A N/A current_rules N/A set N/A N/A role N/A N/A env role_lookup N/A N/A env host_string N/A firewall_rules N/A set N/A N/A env firewall_rules N/A role N/A N/A N/A N/A env overwrite N/A firewall_rules current_rules N/A N/A N/A N/A env verbosity N/A N/A CONFIGURING FIREWALL N/A delete_rules N/A current_rules firewall_rules N/A rule delete_rules N/A N/A N/A settings warn_only True N/A N/A N/A env verbosity N/A N/A ufw delete rule N/A N/A sudo N/A ufw delete %s rule N/A new_rules N/A firewall_rules current_rules N/A rule new_rules N/A N/A N/A settings warn_only True N/A N/A N/A env verbosity N/A N/A ufw rule N/A N/A sudo N/A ufw %s rule N/A N/A set_server_state ufw_rules N/A list firewall_rules N/A output N/A sudo ufw reload N/A N/A env verbosity N/A N/A output N/A skip_disable_root N/A N/A N/A N/A N/A N/A env root_disabled N/A uninstall_package N/A N/A package N/A N/A N/A 
    apt-get autoremove --purge
     N/A N/A sudo N/A apt-get autoremove --purge -qqy %s package pty True N/A uninstall_packages N/A N/A N/A N/A N/A 
    Uninstall unwanted packages
     N/A p N/A server_state packages_installed N/A p N/A N/A installed N/A set p N/A N/A N/A N/A N/A env uninstalled_packages N/A N/A env host N/A N/A packages N/A set N/A get_packages N/A uninstall N/A installed packages N/A N/A uninstall N/A env verbosity N/A N/A N/A env host UNINSTALLING HOST PACKAGES N/A p uninstall N/A N/A N/A env verbosity N/A N/A  - uninstalling p N/A N/A uninstall_package p N/A N/A N/A N/A N/A env uninstalled_packages N/A N/A env host append p N/A N/A set_server_state packages_installed N/A get_packages N/A N/A upgrade_packages N/A N/A N/A N/A N/A 
    apt-get update and apt-get upgrade
     N/A N/A env verbosity N/A N/A N/A env host apt-get UPDATING and UPGRADING SERVER PACKAGES N/A  * running apt-get update  N/A N/A sudo apt-get -qqy update N/A N/A env verbosity N/A N/A  * running apt-get upgrade N/A  NOTE: apt-get upgrade has been known in rare cases to require user input. N/A If apt-get upgrade does not complete within 15 minutes N/A see troubleshooting docs *before* aborting the process to avoid package management corruption. N/A N/A sudo apt-get -qqy upgrade N/A upload_etc N/A N/A N/A N/A N/A 
    Upload and render all templates in the woven/etc directory to the respective directories on the nodes
    
    Only configuration for installed packages will be uploaded where that package creates it's own subdirectory
    in /etc/ ie /etc/apache2.
    
    For configuration that falls in some other non package directories ie init.d, logrotate.d etc
    it is intended that this function only replace existing configuration files. To ensure we don't upload 
    etc files that are intended to accompany a particular package.
     N/A role N/A N/A env role_lookup N/A N/A env host_string N/A packages N/A N/A env packages N/A role N/A N/A env verbosity N/A N/A UPLOAD ETC configuration templates N/A N/A N/A hasattr env project_template_dir N/A N/A length 1000 N/A N/A env project_template_dir N/A dir N/A env TEMPLATE_DIRS N/A N/A dir N/A N/A len_dir N/A len dir N/A N/A len_dir length N/A N/A length len_dir N/A N/A env project_template_dir dir N/A template_dir N/A N/A N/A os path join N/A N/A N/A N/A os path split N/A N/A N/A os path realpath __file__ N/A 0 templates N/A default_templates N/A _get_template_files template_dir N/A N/A env project_template_dir N/A N/A user_templates N/A _get_template_files N/A N/A N/A os path join N/A env project_template_dir N/A N/A user_templates N/A set N/A N/A etc_templates N/A user_templates default_templates N/A context N/A host_ip N/A N/A socket gethostbyname N/A env host N/A N/A N/A env overwrite N/A N/A env installed_packages N/A N/A env host N/A N/A mod_only False N/A N/A mod_only True N/A t etc_templates N/A N/A dest N/A N/A t replace woven 1 N/A N/A directory filename N/A N/A N/A os path split dest N/A package_name N/A N/A N/A filename split . N/A 0 N/A N/A directory N/A /etc /etc/init.d /etc/init /etc/logrotate.d /etc/rsyslog.d N/A N/A N/A N/A N/A exists dest N/A package_name packages N/A N/A N/A N/A N/A directory /etc/ufw/applications.d N/A N/A N/A filename packages N/A N/A N/A N/A N/A N/A exists directory use_sudo True N/A N/A N/A uploaded N/A upload_template t dest context context use_sudo True modified_only mod_only N/A uploaded N/A N/A N/A sudo N/A N/A join N/A chown root:root dest N/A N/A init.d dest N/A N/A N/A sudo N/A N/A join N/A chmod ugo+rx dest N/A N/A N/A sudo N/A N/A join N/A chmod ugo+r dest N/A N/A env verbosity N/A N/A  * uploaded dest N/A upload_ssh_key N/A N/A rollback N/A False N/A N/A 
    Upload your ssh key for passwordless logins
     N/A auth_keys N/A /home/%s/.ssh/authorized_keys N/A env user N/A N/A rollback N/A N/A local_user N/A N/A getpass getuser N/A host N/A N/A socket gethostname N/A u N/A N/A @ join N/A local_user host N/A u N/A ssh-key-uploaded-%s u N/A N/A N/A N/A env overwrite N/A server_state u N/A N/A N/A N/A N/A exists .ssh N/A N/A N/A run mkdir .ssh N/A home N/A N/A N/A os path expanduser ~ N/A ssh_key None N/A upload_key True N/A ssh_dsa N/A N/A N/A os path join home .ssh/id_dsa.pub N/A ssh_rsa N/A N/A N/A os path join home .ssh/id_rsa.pub N/A N/A N/A env key_filename N/A env INTERACTIVE N/A N/A upload_key N/A confirm N/A Would you like to upload your personal key in addition to %s N/A str N/A env key_filename default True N/A upload_key N/A N/A N/A N/A N/A os path exists ssh_dsa N/A N/A ssh_key ssh_dsa N/A N/A N/A N/A N/A os path exists ssh_rsa N/A N/A ssh_key ssh_rsa N/A ssh_key N/A N/A ssh_file N/A N/A N/A open ssh_key r read N/A N/A exists auth_keys N/A N/A N/A _backup_file auth_keys N/A N/A env verbosity N/A N/A N/A env host UPLOADING SSH KEY N/A N/A append auth_keys ssh_file N/A N/A set_server_state u N/A N/A N/A N/A exists N/A auth_keys .wovenbak N/A N/A N/A _restore_file N/A /home/%s/.ssh/authorized_keys N/A env user N/A N/A N/A sudo rm -rf /home/%s/.ssh N/A N/A