def test_download_cplane_packages(self, m_json_dump, m_download_package, m_get_pkg_json, m_create_log): cplane_utils.CPLANE_URL = 'https://www.dropbox.com/s/h2edle1o0jj1btt/\ cplane_metadata.json?dl=1' cplane_utils.cplane_packages = cplane_install_package cplane_utils.download_cplane_packages() m_download_package.assert_called_with('oracle-12c', '0')
def install(): pkgs = determine_packages() apt_install(pkgs, fatal=True) download_cplane_packages() install_oracle() configure_oracle() install_reboot_scripts()
def test_download_cplane_packages(self, m_download_package, m_get_pkg_json, m_create_log): cplane_utils.CPLANE_URL = 'https://www.dropbox.com/s/h2edle1o0jj1btt/\ cplane_metadata.json?dl=1' cplane_utils.cplane_packages = cplane_install_package cplane_utils.download_cplane_packages() m_download_package.assert_called_with(config('oracle-version'), '0')
def install(): pkgs = determine_packages() apt_install(pkgs, fatal=True) configure_host() download_cplane_packages() install_oracle() configure_oracle() install_reboot_scripts()
def start(): if not config('slave-units-number'): status_set('maintenance', 'Performing Oracle standalone Installation') download_cplane_packages() copy_oracle_package() modify_oracle_db_response_file() if install_db(): install_db_root_scripts() set_oracle_env() create_db() juju_log('Database is created and the listerner is started') status_set('active', 'Unit is ready')
def start(): if not config('slave-units-number'): status_set('maintenance', 'Performing Oracle standalone Installation') download_cplane_packages() copy_oracle_package() modify_oracle_db_response_file() if install_db(): install_db_root_scripts() set_oracle_env() create_db() configure_database() juju_log('Database is created and the listerner is started') status_set('active', 'Unit is ready')
def install(): apt_update(fatal=True) pkgs = determine_packages() apt_install(pkgs, fatal=True) pkgs = determine_pip_packages() pip_install(pkgs, fatal=True, upgrade=True) download_cplane_packages() install_cplane_packages() prepare_env() install_neutron() if config('db-on-host') is False: install_oracle_client() configure_oracle_client() os.system("pip install python-openstackclient") copy_neutron_files() install_cplane_neutron()
def install(): apt_update(fatal=True) pkgs = determine_packages() apt_install(pkgs, fatal=True) pkgs = determine_pip_packages() pip_install(pkgs, fatal=True, upgrade=True) download_cplane_packages() install_cplane_packages() prepare_env() install_keystone() cmd = 'pip install -r requirement.txt' os.system(cmd) if config('db-on-host') is False: install_oracle_client() configure_oracle_client() os.system("pip install python-openstackclient") restart_service()
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 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_download_cplane_packages(self, m_json_dump, m_download_package, m_get_pkg_json, m_create_log): cplane_utils.CPLANE_URL = CPLANE_URL cplane_utils.cplane_packages = cplane_install_package cplane_utils.download_cplane_packages() m_download_package.assert_called_with('dvnd', '0')
def test_download_cplane_packages(self, m_json_dump, m_download_package, m_get_pkg_json, m_create_log): cplane_utils.CPLANE_URL = CPLANE_URL cplane_utils.cplane_packages = cplane_install_package cplane_utils.download_cplane_packages() m_download_package.assert_called_with('dvnd', '0')