Parameters and deployment logic required by puppet to deploy the Horizon server
Source: Internet
Author: User
Required parameter: $ secret_key, $ bind_address = '2017. 0.0.1 ', $ cache_server_ip =' 127. 0.0.1 ', $ cache_server_port = '000000', $ swift = false, $ quantum = false, $ package_ensure = present, $ horizon_app_links = false, $ keystone_host =' 11211. 0.0.1 ', $ keystone_port = 5000, $ keystone_scheme = 'http', $ scheme = 'member', $ django_debug = false, $ django_verbose = false, $ api_result_limit = 1000, $ http_port = 80, $ https_port = 443, $ use_ssl = false, $ log_level = 'warning', $ use_syslog = false, $ logdir = '/var/log/Horizon' $ http_service = 'httpd '$ vhosts_file ='/etc/httpd/CONF. d/SSL. conf '$ http_modwsgi = 'mod _ wsgi' $ package_name = 'openstack-Dashboard '$ horizon_additional_packages = ['nodejs', 'nodejs-less ', 'python-lesscpy'] $ httpd_listen_config_file = '/etc/httpd/CONF. d/ports. conf '$ local_settings _ Path = '/etc/openstack-dashboard/local_settings' $ root_url = '/dashboard' $ apache_user = 'apache' $ apache_group = 'apache' $ apache_confdir = ['/etc/httpd ', '/etc/httpd/CONF. d'] $ ssl_key_group = 'root' $ ssl_cert_file = '/etc/pki/tls/certs/localhost. CRT '$ ssl_key_file ='/etc/pki/tls/private/localhost. key '$ ssl_cert_type = 'crt' $ dashboard_http_conf_file = '/etc/httpd/CONF. d/openstack-dashboard.conf '$ Apache_tuning_file ='/etc/httpd/CONF. d/zzz_cece_tuning.conf installation process: 1. install Apache and mod_wsgi2, and install openstack-dashboard (after installation 1) 3. Add users and user groups for dashboard apache4, add content and 644 permissions for/etc/openstack-dashboard/local_settings 5, create/usr/share/openstack-dashboard/directory 6, and execute chrown-r Apache: apache/usr/share/openstack-dashboard/7. User Certificate judgment case $ use_ssl {...} the default $ use_ssl is false. The default package certificate is used to generate $ generate_sslcert_n. Ame and $ inject_certs8. Set $ ssl_cert_file and $ ssl_key_file to generate $ generate_sslcert_name 9 based on the above default options. Inject the default $ inject_certs generated by the signature certificate to false. Therefore, this will not execute 10 and/ var/log/Horizon directory, then generate horizon. log File, which belongs to the user group apache11. Confirm the execution sequence between resources. Package ["dashboard"]-> file [$ horizon: Params :: logdir] File ["$ {horizon: Params: logdir}/Horizon. log "]-> service ['httpd '] 12,/etc/httpd/CONF. d/SSL. CONF file. The content is the template horizon/vhosts. erb, permission 644. modify this file and restart HTTPd service 1. 3./etc/httpd/CONF. d/openstack-dashboard.conf file, content for Horizon/openstack-dashboard.conf.erb template, permission 644, after modification restart HTTPd service, need '/etc/httpd', '/etc/httpd/CONF. D has 14,/etc/httpd/CONF. d/zzz_performance_tuning.conf file, which contains the horizon/zzz_performance_tuning.conf.erb template, mode 644. After modification, restart the HTTPd service and require '/etc/httpd', '/etc/httpd/CONF. D has 15,/etc/httpd/CONF. d/ports. the conf file is the content horizon/ports. conf. erb, the owner and user group are all root users. After modification, restart the HTTPd service and run the command before httpd installation '/ ETC/httpd ','/etc/httpd/CONF. D has 16, ['/etc/httpd', '/etc/httpd/CONF. d '] Directory. the user and user group are root17, nodejs installation, nodejs-less, Python-lesscpy 18, and/etc/httpd/CONF. d/wsgi. CONF file, mode 644, owner and user group are root, content: "loadmodule wsgi_module modules/mod_wsgi.so \ n", after installing Apache and mod_wsgi, run the command 19 before dashboard installation. Before the HTTPd service is started, install mod_ssl20 and file/etc/sysconfig/httpd mode 644. the user and user group are root. Content: horizon/redhat_sysconfig_httpd.erb template, httpd needs to be installed. Restart h after modification. Ttpd service 21. Modify "/files/etc/httpd/CONF/httpd. conf ", delete the listen command. The commands 22 and horizon_compress_styles must be executed before the HTTPd service starts: in/usr/share/openstack-Dashboard Python manage. after py compress installs the dashboard, execute the command to install nodejs ', 'nodejs-less ', 'python-lesscpy: Execute the command to run the horizon_compress_styles command to restart the HTTPd service 23, confirm that the HTTPd service is enabled 24, and the file execution sequence file [$: horizon: Params: local_settings_path:: horizon: Params: logdir] ~> Service ['httpd '] package [$: horizon: Params: http_service, $: horizon: Params :: http_modwsgi]-> service ['httpd '] package <| title ==: horizon: Params: http_service or title ==: horizon: Params :: http_modwsgi | >~~> Service <| Title = 'httpd '|> 25 if $ cache_server_ip is not 127.0.0.1, run class ['memcached']
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.