コード例 #1
0
ファイル: __init__.py プロジェクト: fredrikaslund/multiverse
def all():
    env.hosts = cosmos_db()['members']['all']
コード例 #2
0
def all():
    env.hosts = cosmos_db()['members']['all']
コード例 #3
0
ファイル: __init__.py プロジェクト: fredrikaslund/multiverse
from fabric.api import run,env
from fabric.operations import get,put
import os
import yaml
import re
import sys
from fabfile.db import cosmos_db

env.user = '******'
env.timeout = 30
env.connection_attempts = 3
env.warn_only = True
env.skip_bad_hosts = True
env.roledefs = cosmos_db()['members']

def all():
    env.hosts = cosmos_db()['members']['all']

def cosmos():
    run("cosmos update ; cosmos -v apply");

def upgrade():
    run("apt-get -qq update && apt-get -y -q dist-upgrade");

def facts():
    get("/var/run/facts.yaml",local_path="facts/%(host)s.yaml")

def chassis():
    run("ipmi-chassis --get-chassis-status")

def newvm(fqdn,ip,domain):
コード例 #4
0
from fabric.api import run, env
from fabric.operations import get, put
import os
import yaml
import re
import sys
from fabfile.db import cosmos_db

env.user = '******'
env.timeout = 30
env.connection_attempts = 3
env.warn_only = True
env.skip_bad_hosts = True
env.roledefs = cosmos_db()['members']


def all():
    env.hosts = cosmos_db()['members']['all']


def cosmos():
    run("/usr/local/bin/run-cosmos")


def upgrade():
    run("apt-get -qq update && apt-get -y -q dist-upgrade")


def facts():
    get("/var/run/facts.yaml", local_path="facts/%(host)s.yaml")