Exemplo n.º 1
0
def passwords(args):
    app.print_verbose("Set all passwords used by syco")
    app.init_all_passwords()
    for section, section_d in app.get_all_passwords().iteritems():
        print "[%s]" % section
        for option, password in section_d.iteritems():
            print "%s = %s" % (option, password)
        print
Exemplo n.º 2
0
def passwords(args):
    app.print_verbose("Set all passwords used by syco")
    app.init_all_passwords()
    for section, section_d in app.get_all_passwords().iteritems():
        print "[%s]" % section
        for option, password in section_d.iteritems():
            print "%s = %s" % (option, password)
        print
Exemplo n.º 3
0
def remote_install_syco(args):
  '''
  '''
  # Ask the user for all passwords that might be used in the remote install
  # so the installation can go on headless.
  app.init_all_passwords()

  remote_host = None
  if len(args) > 1:
    remote_host = args[1]

  obj = RemoteInstall()
  obj.remote_install_syco(remote_host)
Exemplo n.º 4
0
def remote_install_syco(args):
    '''
  '''
    # Ask the user for all passwords that might be used in the remote install
    # so the installation can go on headless.
    app.init_all_passwords()

    remote_host = None
    if len(args) > 1:
        remote_host = args[1]

    obj = RemoteInstall()
    obj.remote_install_syco(remote_host)
Exemplo n.º 5
0
def passwords(args):
  app.print_verbose("Set all passwords used by syco")
  app.init_all_passwords()
  print "root: ", app.get_root_password()
  print "svn: ", app.get_svn_password()
  print "ldap_admin: ", app.get_ldap_admin_password()
  print "ldap_sssd: ", app.get_ldap_sssd_password()
  print "glassfish_master: ", app.get_glassfish_master_password()
  print "glassfish_admin: ", app.get_glassfish_admin_password()
  print "glassfish_user: "******"glassfish")
  print "mysql_root: ", app.get_mysql_root_password()
  print "mysql_int: ", app.get_mysql_integration_password()
  print "mysql_stable: ", app.get_mysql_stable_password()
  print "mysql_uat: ", app.get_mysql_uat_password()
  print "mysql_prod: ", app.get_mysql_production_password()
Exemplo n.º 6
0
def passwords(args):
    app.print_verbose("Set all passwords used by syco")
    app.init_all_passwords()
    print "root: ", app.get_root_password()
    print "svn: ", app.get_svn_password()
    print "ldap_admin: ", app.get_ldap_admin_password()
    print "ldap_sssd: ", app.get_ldap_sssd_password()
    print "glassfish_master: ", app.get_glassfish_master_password()
    print "glassfish_admin: ", app.get_glassfish_admin_password()
    print "glassfish_user: "******"glassfish")
    print "mysql_root: ", app.get_mysql_root_password()
    print "mysql_int: ", app.get_mysql_integration_password()
    print "mysql_stable: ", app.get_mysql_stable_password()
    print "mysql_uat: ", app.get_mysql_uat_password()
    print "mysql_prod: ", app.get_mysql_production_password()
    print "mysql_backup: ", app.get_mysql_backup_password()
    print "mysql_monitor: ", app.get_mysql_monitor_password()
    print "switch_icmp: ", app.get_switch_icmp_password()
Exemplo n.º 7
0
def remote_install(args):
  '''
  '''
  # Ask the user for all passwords that might be used in the remote install
  # so the installation can go on headless.
  app.init_all_passwords()

  # Start installation timer.
  t0= time.time()

  remote_host = None
  if len(args) > 1:
    remote_host = args[1]

  obj = RemoteInstall()
  obj.run(remote_host)

  # Print the time it took to install all servers.
  t= time.time() - t0 # t is CPU seconds elapsed (floating point)
  print "It took " + time.strftime('%X', time.gmtime(t)) + " to install all servers."
Exemplo n.º 8
0
def _remote_install(args, enable_commands_):
    # Ask the user for all passwords that might be used in the remote install
    # so the installation can go on headless.
    app.init_all_passwords()

    # Start installation timer.
    timer = time.time()

    # Should all or just one host be installed?
    remote_host = None
    if len(args) > 1:
        remote_host = args[1]

    # Start the installation.
    obj = RemoteInstall()
    obj.run(remote_host, enable_commands_)

    # Print the time it took to install all servers.
    t = time.time() - timer  # t is CPU seconds elapsed (floating point)
    print "It took " + time.strftime("%X", time.gmtime(t)) + " to install all servers."
Exemplo n.º 9
0
def _remote_install(args, enable_commands_):
    # Ask the user for all passwords that might be used in the remote install
    # so the installation can go on headless.
    app.init_all_passwords()

    # Start installation timer.
    timer = time.time()

    # Should all or just one host be installed?
    remote_host = None
    if len(args) > 1:
        remote_host = args[1]

    # Start the installation.
    obj = RemoteInstall()
    obj.run(remote_host, enable_commands_)

    # Print the time it took to install all servers.
    t= time.time() - timer # t is CPU seconds elapsed (floating point)
    print "It took " + time.strftime('%X', time.gmtime(t)) + " to install all servers."
Exemplo n.º 10
0
def remote_install(args):
    '''
  '''
    # Ask the user for all passwords that might be used in the remote install
    # so the installation can go on headless.
    app.init_all_passwords()

    # Start installation timer.
    t0 = time.time()

    remote_host = None
    if len(args) > 1:
        remote_host = args[1]

    obj = RemoteInstall()
    obj.run(remote_host)

    # Print the time it took to install all servers.
    t = time.time() - t0  # t is CPU seconds elapsed (floating point)
    print "It took " + time.strftime(
        '%X', time.gmtime(t)) + " to install all servers."
Exemplo n.º 11
0
def install_local(args):
  '''
  Run all commands on the localhost.

  '''
  # Ask the user for all passwords that might be used in the remote install
  # so the installation can go on headless.
  app.init_all_passwords()

  hostname = ""
  if len(args) > 1:
    hostname = args[1]

  if hostname == "":
    hostname = socket.gethostname()
  app.print_verbose("Install all commands defined in install.cfg for host " + hostname + ".")

  commands = config.host(hostname).get_commands(app.options.verbose >= 2)
  if len(commands) > 0:
    for command in commands:
      general.shell_exec(command)
  else:
    app.print_error("No commands for this host.")
Exemplo n.º 12
0
def install_local(args):
    '''
    Run all commands on the localhost.

    '''
    # Ask the user for all passwords that might be used in the remote install
    # so the installation can go on headless.
    app.init_all_passwords()

    hostname = ""
    if len(args) > 1:
        hostname = args[1]

    if hostname == "":
        hostname = socket.gethostname()
    app.print_verbose("Install all commands defined in install.cfg for host " + hostname + ".")

    commands = config.host(hostname).get_commands(app.options.verbose >= 2)
    if len(commands) > 0:
        for command in commands:
            general.shell_exec(command)
    else:
        app.print_error("No commands for this host.")