def test_prepare_env_jboss_not_exist(self, m_check_call, m_os_path_exists): cplane_utils.JBOSS_DIR = '/opt/jboss' m_os_path_exists.return_value = False cplane_utils.prepare_env() m_check_call.assert_has_calls( [call(['ln', '-sf', '/usr/bin/awk', '/bin/awk']), call(['mkdir', '/var/lock/subsys']), call(['chmod', '-R', '777', '/var/lock/subsys']), call(['mkdir', '/opt/jboss']), call(['mkdir', '/etc/rc.d']), call(['ln', '-sf', '/etc/init.d', '/etc/rc.d/init.d'])], any_order=True)
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 test_prepare_env(self, m_check_call): cplane_utils.JBOSS_DIR = '.' cplane_utils.prepare_env() m_check_call.assert_called_with(['ln', '-sf', '/etc/init.d', '/etc/rc.d/init.d'])
def test_prepare_env(self, m_check_call): cplane_utils.JBOSS_DIR = '.' cplane_utils.prepare_env() m_check_call.assert_called_with(['ln', '-sf', '/etc/init.d', '/etc/\ rc.d/init.d'])
def test_prepare_env(self, m_check_call): cplane_utils.JBOSS_DIR = '.' cplane_utils.prepare_env() m_check_call.assert_called_with(['sysctl', '-p', '/etc/sysctl.d/\ 10-network-security.conf'])