Skip to content

Instantly share code, notes, and snippets.

@bcarpio
Created March 27, 2012 16:51
Show Gist options
  • Save bcarpio/2217854 to your computer and use it in GitHub Desktop.
Save bcarpio/2217854 to your computer and use it in GitHub Desktop.
-- mongod.py ---
@task
def rolling_upgrade():
""" Rolling upgrade of mongodb """
execute(puppet.puppetd_test)
--- puppet.py ---
@task
@parallel
def puppetd_test():
""" Runs puppetd --test Which Will Update Puppet Changes """
users.root()
env.warn_only
run ('puppetd --test')
---- command ---
fab -R mongod-s1 puppet.rolling_upgrade
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment