Exemplo n.º 1
0
def run(argv):
    tag = 'cloudseed-%s-%s-master' % (env.location_name(), env.env_name())
    prefix = os.path.join(env.current_env_path(), 'salt')

    saltcloud.execute_profile(
        'master',
        tag=tag,
        cloud_config=os.path.join(prefix, 'cloud'),
        cloud_providers=os.path.join(prefix, 'cloud.providers'),
        cloud_profiles=os.path.join(prefix, 'cloud.profiles'),
        master_config=os.path.join(prefix, 'master'))
Exemplo n.º 2
0
def run(argv):
    tag = "cloudseed-%s-%s-master" % (env.location_name(), env.env_name())
    prefix = os.path.join(env.current_env_path(), "salt")

    saltcloud.execute_profile(
        "master",
        tag=tag,
        cloud_config=os.path.join(prefix, "cloud"),
        cloud_providers=os.path.join(prefix, "cloud.providers"),
        cloud_profiles=os.path.join(prefix, "cloud.profiles"),
        master_config=os.path.join(prefix, "master"),
    )
Exemplo n.º 3
0
def execute_profile(profile, tag=None):
    # depending on how many actions come in
    # we may need to build in a way to limit the
    # number of processes we spawn.
    log.debug('Bootstrapping profile \'%s\' with tag \'%s\'', profile, tag)
    cs_saltcloud.execute_profile(profile, tag, async=True)