Created
April 23, 2015 16:07
-
-
Save victoraguilarc/ed17a3ea8524f137386e to your computer and use it in GitHub Desktop.
Ejemplo simple para actualizar un servidor.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from fabric.api import * | |
| from fabric.operations import sudo | |
| env.hosts = [ | |
| '[email protected]', | |
| ] | |
| def host_type(): | |
| run('uname -a') | |
| def monitor(): | |
| run('htop') | |
| def upgrade(): | |
| sudo('apt-get update -y') | |
| sudo('apt-get upgrade -y') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment