Exemplo n.º 1
0
def puppetmaster_bootstrap():
    '''
    Setup a puppet master
    '''
    resolv_conf()
    install_puppetmaster()
    setup_puppetmaster()
Exemplo n.º 2
0
def system_setup(name):
    """
    Setup an existing server that has been booted. User will
    be prompted for root password.
    """
    env.host_string = name
    env.user = "******"
    resolv_conf()
    set_pkg_os()
    puppetlabs_repo()
    disable_ipv6()
    centos_fixes()
    print(green("Updating system"))
    print(blue("This can take a few minutes. Hang tight..."))
    with hide("stdout"):
        package_update()
        package_upgrade()
    install_puppet()
    config_puppet()
    create_default_user()
    create_deployment_user()
    first_run_puppet()