Exemple #1
0
def install():
    pkgs = determine_packages()
    apt_install(pkgs, fatal=True)
    download_cplane_packages()
    install_oracle()
    configure_oracle()
    install_reboot_scripts()
def install():
    pkgs = determine_packages()
    apt_install(pkgs, fatal=True)
    configure_host()
    download_cplane_packages()
    install_oracle()
    configure_oracle()
    install_reboot_scripts()
def install():
    apt_update(fatal=True)
    pkgs = determine_packages()
    apt_install(pkgs, fatal=True)
    prepare_env()
    flush_upgrade_type()
    download_cplane_packages()
    install_jboss()
    install_jdk()
    cmd = "echo '#Added by cplane' >> /etc/hosts"
    os.system(cmd)
    if config('jboss-db-on-host'):
        install_oracle()
        configure_oracle()
    else:
        install_oracle_client()
        configure_oracle_client()
    cplane_installer()
    if config('intall-reboot-scripts') == 'y':
        install_reboot_scripts()
Exemple #4
0
def install():
    apt_update(fatal=True)
    pkgs = determine_packages()
    apt_install(pkgs, fatal=True)
    prepare_env()
    flush_upgrade_type()
    download_cplane_packages()
    install_jboss()
    install_jdk()
    cmd = "echo '#Added by cplane' >> /etc/hosts"
    os.system(cmd)
    if config('jboss-db-on-host'):
        install_oracle()
        configure_oracle()
    else:
        install_oracle_client()
        configure_oracle_client()
    cplane_installer()
    if config('intall-reboot-scripts') == 'y':
        install_reboot_scripts()
 def test_configure_oracle(self, m_oracle_configure_init, m_system, m_chdir,
                           m_set_oracle_env, m_check_call):
     cplane_utils.configure_oracle()
     m_check_call.assert_called_with(['chmod', '+x', 'oracle-xe'])
 def test_configure_oracle(self, m_oracle_configure_init, m_system,
                           m_chdir, m_set_oracle_env, m_check_call):
     cplane_utils.configure_oracle()
     m_check_call.assert_called_with(['chmod', '+x', 'oracle-xe'])