From: Oliver Kurth Date: Sat, 24 Dec 2016 00:46:38 +0000 (-0800) Subject: - add missing directory common-agent/etc/config X-Git-Tag: stable-10.1.10~18 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5a9033ddfa95786d867e4d02bbb9a29bac8fb64f;p=thirdparty%2Fopen-vm-tools.git - add missing directory common-agent/etc/config - fix .gitignore, so the directory above will not be ignored any more --- diff --git a/open-vm-tools/.gitignore b/open-vm-tools/.gitignore index dfc1a5a6b..0b46a8cb6 100644 --- a/open-vm-tools/.gitignore +++ b/open-vm-tools/.gitignore @@ -12,6 +12,7 @@ Makefile Makefile.in aclocal.m4 config +!common-agent/etc/config config.log config.status configure diff --git a/open-vm-tools/common-agent/etc/config/CommAmqpListener-appconfig b/open-vm-tools/common-agent/etc/config/CommAmqpListener-appconfig new file mode 100644 index 000000000..b34e55751 --- /dev/null +++ b/open-vm-tools/common-agent/etc/config/CommAmqpListener-appconfig @@ -0,0 +1,80 @@ +[globals] +response_dir=${output_dir}/responses +event_dir=${output_dir}/events +request_dir=${output_dir}/requests +tmp_dir=${output_dir}/tmp +persistence_dir=${input_dir}/persistence +monitor_dir=${input_dir}/monitor +log_config_file=${config_dir}/CommAmqpListener-log4cpp_config + +thread_stack_size_kb=0 + +schema_namespace_root=http://schemas.vmware.com/caf/schema +schema_location_root=${input_dir}/schemas/caf + +remap_logging_location=false + +[communication_amqp] +working_dir=${output_dir}/comm-wrk +context_file=${comm_amqp_listener_context} +resolver_cache_file=${output_dir}/cache/commAmqpResolver-cache + +reactive_request_queue_id=${reactive_request_amqp_queue_id} + +startup_timeout=5000 +shutdown_timeout=5000 +connection_retry_interval=5000 + +# Temporarily set to 60MB for Hyperic Agent POC +# 1024 Bytes/KB * 1024 KB/MB * 60 +max_part_size=62976000 + +vhost=caf + +# Wait for (connection_retries * connection_seconds_to_wait) in milli-seconds +connection_timeout=150000 + +connection_retries=10 +connection_seconds_to_wait=15 +channel_cache_size=4 +reply_timeout=5000 + +[security] +cms_policy=CAF_Encrypted_And_Signed +is_signing_enforced=true +is_encryption_enforced=true + +tls_protocol=TLSv1_2 +tls_ciphers=SRP-RSA-AES-128-CBC-SHA +cms_cipher=des-ede3-cbc + +[subsystems] +# Integration System Beans +com.vmware.commonagent.integration.objectfactory=IntegrationSubsys +com.vmware.commonagent.integration.channels.errorchannel=IntegrationSubsys +com.vmware.commonagent.integration.channels.nullchannel=IntegrationSubsys +com.vmware.commonagent.integration.headerexpressioninvoker=IntegrationSubsys + +# Communication Integration Beans +com.vmware.caf.comm.integration.cmsmessagetransformer=CommIntegrationSubsys +com.vmware.caf.comm.integration.cmsmessagetransformerinstance=CommIntegrationSubsys +com.vmware.caf.comm.integration.eventtopiccalculator=CommIntegrationSubsys +com.vmware.caf.comm.integration.incomingmessagehandler=CommIntegrationSubsys +com.vmware.caf.comm.integration.incomingmessagehandlerinstance=CommIntegrationSubsys +com.vmware.caf.comm.integration.outgoingmessagehandler=CommIntegrationSubsys +com.vmware.caf.comm.integration.protocolheaderenricher=CommIntegrationSubsys +com.vmware.caf.comm.integration.protocolheaderenricherinstance=CommIntegrationSubsys +com.vmware.caf.comm.integration.replytocacher=CommIntegrationSubsys +com.vmware.caf.comm.integration.replytocacherinstance=CommIntegrationSubsys +com.vmware.caf.comm.integration.replytoresolver=CommIntegrationSubsys +com.vmware.caf.comm.integration.objects=CommAmqpIntegrationSubsys + +# Amqp Listener Context Beans +com.vmware.caf.comm.integration.amqp.caching.connection.factory=CommAmqpIntegrationSubsys +com.vmware.caf.comm.integration.amqp.secure.caching.connection.factory=CommAmqpIntegrationSubsys + +# CAF Integration System Beans +com.vmware.commonagent.cafintegration.errortoresponsetransformerinstance=CafIntegrationSubsys +com.vmware.commonagent.cafintegration.errortoresponsetransformer=CafIntegrationSubsys +com.vmware.commonagent.cafintegration.payloadheaderenricherinstance=CafIntegrationSubsys +com.vmware.commonagent.cafintegration.payloadheaderenricher=CafIntegrationSubsys diff --git a/open-vm-tools/common-agent/etc/config/CommAmqpListener-context-amqp.xml b/open-vm-tools/common-agent/etc/config/CommAmqpListener-context-amqp.xml new file mode 100644 index 000000000..71148568b --- /dev/null +++ b/open-vm-tools/common-agent/etc/config/CommAmqpListener-context-amqp.xml @@ -0,0 +1,65 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/open-vm-tools/common-agent/etc/config/CommAmqpListener-context-common.xml b/open-vm-tools/common-agent/etc/config/CommAmqpListener-context-common.xml new file mode 100644 index 000000000..8e06ca5a2 --- /dev/null +++ b/open-vm-tools/common-agent/etc/config/CommAmqpListener-context-common.xml @@ -0,0 +1,200 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/open-vm-tools/common-agent/etc/config/CommAmqpListener-context-tunnel.xml b/open-vm-tools/common-agent/etc/config/CommAmqpListener-context-tunnel.xml new file mode 100644 index 000000000..469b5c77b --- /dev/null +++ b/open-vm-tools/common-agent/etc/config/CommAmqpListener-context-tunnel.xml @@ -0,0 +1,43 @@ + + + + + + + + + + + + + + + + + + diff --git a/open-vm-tools/common-agent/etc/config/CommAmqpListener-log4cpp_config b/open-vm-tools/common-agent/etc/config/CommAmqpListener-log4cpp_config new file mode 100644 index 000000000..d6949ebc0 --- /dev/null +++ b/open-vm-tools/common-agent/etc/config/CommAmqpListener-log4cpp_config @@ -0,0 +1,18 @@ +#log4j.rootCategory=DEBUG, console +log4j.rootCategory=ERROR, rolling + +log4j.appender.console=org.apache.log4j.ConsoleAppender +log4j.appender.console.layout=org.apache.log4j.PatternLayout +log4j.appender.console.layout.ConversionPattern=%p|%d{ISO8601}|%t|%c|%m%n + +log4j.appender.logfile=org.apache.log4j.FileAppender +log4j.appender.logfile.fileName=CommAmqpListener-log4cpp.log +log4j.appender.logfile.layout=org.apache.log4j.PatternLayout +log4j.appender.logfile.layout.ConversionPattern=%p|%d{ISO8601}|%t|%c|%m%n + +log4j.appender.rolling=org.apache.log4j.RollingFileAppender +log4j.appender.rolling.fileName=CommAmqpListener-log4cpp_rolling.log +log4j.appender.rolling.layout=org.apache.log4j.PatternLayout +log4j.appender.rolling.layout.ConversionPattern=%p|%d{ISO8601}|%t|%c|%m%n +log4j.appender.rolling.MaxFileSize=1024KB +log4j.appender.rolling.MaxBackupIndex=5 diff --git a/open-vm-tools/common-agent/etc/config/IntBeanConfigFile.xml b/open-vm-tools/common-agent/etc/config/IntBeanConfigFile.xml new file mode 100644 index 000000000..d4e22ed46 --- /dev/null +++ b/open-vm-tools/common-agent/etc/config/IntBeanConfigFile.xml @@ -0,0 +1,19 @@ + + + + + + + + + + diff --git a/open-vm-tools/common-agent/etc/config/Makefile.am b/open-vm-tools/common-agent/etc/config/Makefile.am new file mode 100644 index 000000000..acc715b15 --- /dev/null +++ b/open-vm-tools/common-agent/etc/config/Makefile.am @@ -0,0 +1,36 @@ +################################################################################ +### Copyright (C) 2016 VMware, Inc. All rights reserved. +### +### This program is free software; you can redistribute it and/or modify +### it under the terms of version 2 of the GNU General Public License as +### published by the Free Software Foundation. +### +### This program is distributed in the hope that it will be useful, +### but WITHOUT ANY WARRANTY; without even the implied warranty of +### MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +### GNU General Public License for more details. +### +### You should have received a copy of the GNU General Public License +### along with this program; if not, write to the Free Software +### Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +################################################################################ + +confdir=/etc/vmware-caf/pme/config + +conf_DATA = \ + cafenv-appconfig \ + CommAmqpListener-appconfig \ + CommAmqpListener-context-amqp.xml \ + CommAmqpListener-context-common.xml \ + CommAmqpListener-context-tunnel.xml \ + CommAmqpListener-log4cpp_config \ + IntBeanConfigFile.xml \ + ma-appconfig \ + ma-context.xml \ + ma-log4cpp_config \ + providerFx-appconfig \ + providerFx-log4cpp_config \ + vgauth.conf + +install-data-local: + D=$(DESTDIR) /bin/bash $(top_srcdir)/common-agent/etc/install/install.sh -L -l $(libdir)/open-vm-tools -B $(libdir)/open-vm-tools -i /var -o /var diff --git a/open-vm-tools/common-agent/etc/config/cafenv-appconfig b/open-vm-tools/common-agent/etc/config/cafenv-appconfig new file mode 100644 index 000000000..91e8e2af5 --- /dev/null +++ b/open-vm-tools/common-agent/etc/config/cafenv-appconfig @@ -0,0 +1,39 @@ +[globals] +# Specifies where python is located. +python_dir=/opt/vmware/caf/python + +# Substitute @binDir@ for the value passed in during install +# Maps to 'bin' in the build output +bin_dir=@binDir@ + +# Substitute @libDir@ for the value passed in during install +# Maps to 'lib' in the build output +lib_dir=@libDir@ + +# Substitute @configDir@ for the value passed in during install +# Maps to 'config' in the build output +config_dir=@configDir@ + +# Substitute @inputDir@ for the value passed in during install +# Maps to 'data/input' in the build output +input_dir=@inputDir@ + +# Substitute @outputDir@ for the value passed in during install +# No mapping in the build output since the output files are created at run-time +output_dir=@outputDir@ + +# Substitute @logDir@ for the value passed in during install +# No mapping in the build output since the log files are created at run-time +log_dir=@logDir@ + +# Substitute @invokersDir@ for the value passed in during install +# Maps to 'invokers' in the build output - Used by the internal providers +invokers_dir=@invokersDir@ + +# Substitute @providersDir@ for the value passed in during install +# Maps to 'providers' in the build output - Used by the internal providers +providers_dir=@providersDir@ + +# Substitute @toolsLibDir@ for the value passed in during install +# Maps to 'lib' in the build output +tools_lib_dir=@toolsLibDir@ diff --git a/open-vm-tools/common-agent/etc/config/ma-appconfig b/open-vm-tools/common-agent/etc/config/ma-appconfig new file mode 100644 index 000000000..1818b9bac --- /dev/null +++ b/open-vm-tools/common-agent/etc/config/ma-appconfig @@ -0,0 +1,89 @@ +[globals] +persistence_dir=${input_dir}/persistence +monitor_dir=${input_dir}/monitor +response_dir=${output_dir}/responses +request_dir=${output_dir}/requests +split_request_dir=${output_dir}/split-requests +tmp_dir=${output_dir}/tmp +bean_config_file=${config_dir}/ma-context.xml +log_config_file=${config_dir}/ma-log4cpp_config +scripts_dir=${config_dir}/../scripts + +thread_stack_size_kb=0 + +schema_namespace_root=http://schemas.vmware.com/caf/schema +schema_location_root=${input_dir}/schemas/caf + +remap_logging_location=false + +[security] +cms_policy=CAF_Encrypted_And_Signed + +[managementAgent] +host_delay_sec=5 +host_integration_timeout_ms=5000 +use_impersonation=false +# Value used to specify the priority that provider sub-process are created at. +# Valid values are: NORMAL, LOW, IDLE. Default value is NORMAL. +provider_process_priority=NORMAL + +[providerHost] +install_dir=${config_dir}/../install +invokers_dir=${invokers_dir} +providers_dir=${providers_dir} +schema_cache_dir=${output_dir}/schemaCache +provider_reg_dir=${input_dir}/providerReg +common_packages_dir=${input_dir}/commonPackages + +[provider] +diagFileAliases=ma-appconfig:ma-log4cpp_config:ma-context:CommAmqpListener-appconfig:CommAmqpListener-log4cpp_config:CommAmqpListener-context:IntBeanConfigFile +diagFileAlias_ma-appconfig=file://${root_dir}/config/ma-appconfig?encoding=iniFile +diagFileAlias_ma-log4cpp_config=file://${root_dir}/config/ma-log4cpp_config?encoding=iniFileWithoutSection +diagFileAlias_ma-context=file://${root_dir}/config/ma-context.xml?encoding=xmlFile +diagFileAlias_CommAmqpListener-appconfig=file://${root_dir}/config/CommAmqpListener-appconfig?encoding=iniFile +diagFileAlias_CommAmqpListener-log4cpp_config=file://${root_dir}/config/CommAmqpListener-log4cpp_config?encoding=iniFileWithoutSection +diagFileAlias_CommAmqpListener-context=file://${root_dir}/config/CommAmqpListener-context.xml?encoding=xmlFile +diagFileAlias_IntBeanConfigFile=file://${root_dir}/config/IntBeanConfigFile.xml?encoding=xmlFile + +[monitor] +listener_retry_max=-1 +listener_startup_type=Automatic +listener_restart_hours=48 +nsdb_poller_signal_file=${monitor_dir}/nsdbPollerSignal.txt +nsdb_polling_interval_secs=86400 + +[subsystems] +# Integration System Beans +com.vmware.commonagent.integration.objectfactory=IntegrationSubsys +com.vmware.commonagent.integration.channels.errorchannel=IntegrationSubsys +com.vmware.commonagent.integration.channels.nullchannel=IntegrationSubsys + +# CAF Integration +com.vmware.commonagent.cafintegration.errortoresponsetransformerinstance=CafIntegrationSubsys +com.vmware.commonagent.cafintegration.errortoresponsetransformer=CafIntegrationSubsys +com.vmware.commonagent.cafintegration.payloadheaderenricherinstance=CafIntegrationSubsys +com.vmware.commonagent.cafintegration.payloadheaderenricher=CafIntegrationSubsys +com.vmware.commonagent.cafintegration.envelopetopayloadtransformerinstance=CafIntegrationSubsys +com.vmware.commonagent.cafintegration.envelopetopayloadtransformer=CafIntegrationSubsys + +# Management Agent + +# MA Integration +com.vmware.commonagent.maintegration.collectschemaexecutor=MaIntegrationSubsys +com.vmware.commonagent.maintegration.providercollectschemaexecutor=MaIntegrationSubsys +com.vmware.commonagent.maintegration.providerexecutor=MaIntegrationSubsys +com.vmware.commonagent.maintegration.singlepmerequestsplitterinstance=MaIntegrationSubsys +com.vmware.commonagent.maintegration.singlepmerequestsplitter=MaIntegrationSubsys +com.vmware.commonagent.maintegration.diagtomgmtrequesttransformerinstance=MaIntegrationSubsys +com.vmware.commonagent.maintegration.diagtomgmtrequesttransformer=MaIntegrationSubsys +com.vmware.commonagent.maintegration.installtomgmtrequesttransformerinstance=MaIntegrationSubsys +com.vmware.commonagent.maintegration.installtomgmtrequesttransformer=MaIntegrationSubsys +com.vmware.commonagent.maintegration.versiontransformerinstance=MaIntegrationSubsys +com.vmware.commonagent.maintegration.versiontransformer=MaIntegrationSubsys +com.vmware.commonagent.maintegration.attachmentrequesttransformerinstance=MaIntegrationSubsys +com.vmware.commonagent.maintegration.attachmentrequesttransformer=MaIntegrationSubsys +com.vmware.commonagent.maintegration.integrationobjects=MaIntegrationSubsys +com.vmware.commonagent.maintegration.guestauthenticatorinstance=VgAuthIntegrationSubsys +com.vmware.commonagent.maintegration.guestauthenticator=VgAuthIntegrationSubsys +com.vmware.commonagent.maintegration.configenv=MaIntegrationSubsys +com.vmware.commonagent.maintegration.persistencenamespacedb=MaIntegrationSubsys diff --git a/open-vm-tools/common-agent/etc/config/ma-context.xml b/open-vm-tools/common-agent/etc/config/ma-context.xml new file mode 100644 index 000000000..cf0c0a4b2 --- /dev/null +++ b/open-vm-tools/common-agent/etc/config/ma-context.xml @@ -0,0 +1,340 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/open-vm-tools/common-agent/etc/config/ma-log4cpp_config b/open-vm-tools/common-agent/etc/config/ma-log4cpp_config new file mode 100644 index 000000000..b4f9156de --- /dev/null +++ b/open-vm-tools/common-agent/etc/config/ma-log4cpp_config @@ -0,0 +1,18 @@ +#log4j.rootCategory=DEBUG, console +log4j.rootCategory=ERROR, rolling + +log4j.appender.console=org.apache.log4j.ConsoleAppender +log4j.appender.console.layout=org.apache.log4j.PatternLayout +log4j.appender.console.layout.ConversionPattern=%p|%d{ISO8601}|%t|%c|%m%n + +log4j.appender.logfile=org.apache.log4j.FileAppender +log4j.appender.logfile.fileName=ma-log4cpp.log +log4j.appender.logfile.layout=org.apache.log4j.PatternLayout +log4j.appender.logfile.layout.ConversionPattern=%p|%d{ISO8601}|%t|%c|%m%n + +log4j.appender.rolling=org.apache.log4j.RollingFileAppender +log4j.appender.rolling.fileName=ma-log4cpp_rolling.log +log4j.appender.rolling.layout=org.apache.log4j.PatternLayout +log4j.appender.rolling.layout.ConversionPattern=%p|%d{ISO8601}|%t|%c|%m%n +log4j.appender.rolling.MaxFileSize=1024KB +log4j.appender.rolling.MaxBackupIndex=5 diff --git a/open-vm-tools/common-agent/etc/config/providerFx-appconfig b/open-vm-tools/common-agent/etc/config/providerFx-appconfig new file mode 100644 index 000000000..94858c318 --- /dev/null +++ b/open-vm-tools/common-agent/etc/config/providerFx-appconfig @@ -0,0 +1,24 @@ +[globals] +#response_dir=${output_dir}/responses +#request_dir=${output_dir}/requests +#tmp_dir=${output_dir}/tmp +#bean_config_file=${config_dir}/ma-context.xml +log_config_file=${config_dir}/providerFx-log4cpp_config + +thread_stack_size_kb=0 + +schema_namespace_root=http://schemas.vmware.com/caf/schema +schema_location_root=${input_dir}/schemas/caf + +remap_logging_location=false + +[providerHost] +install_dir=${config_dir}/../install +invokers_dir=${invokers_dir} +providers_dir=${providers_dir} +schema_cache_dir=${output_dir}/schemaCache +provider_reg_dir=${input_dir}/providerReg +common_packages_dir=${input_dir}/commonPackages + +[security] +cms_policy=CAF_Encrypted_And_Signed \ No newline at end of file diff --git a/open-vm-tools/common-agent/etc/config/providerFx-log4cpp_config b/open-vm-tools/common-agent/etc/config/providerFx-log4cpp_config new file mode 100644 index 000000000..f4ac36574 --- /dev/null +++ b/open-vm-tools/common-agent/etc/config/providerFx-log4cpp_config @@ -0,0 +1,18 @@ +#log4j.rootCategory=DEBUG, console +log4j.rootCategory=ERROR, rolling + +log4j.appender.console=org.apache.log4j.ConsoleAppender +log4j.appender.console.layout=org.apache.log4j.PatternLayout +log4j.appender.console.layout.ConversionPattern=%p|%d{ISO8601}|%t|%c|%m%n + +log4j.appender.logfile=org.apache.log4j.FileAppender +log4j.appender.logfile.fileName=providerFx-log4cpp.log +log4j.appender.logfile.layout=org.apache.log4j.PatternLayout +log4j.appender.logfile.layout.ConversionPattern=%p|%d{ISO8601}|%t|%c|%m%n + +log4j.appender.rolling=org.apache.log4j.RollingFileAppender +log4j.appender.rolling.fileName=providerFx-log4cpp_rolling.log +log4j.appender.rolling.layout=org.apache.log4j.PatternLayout +log4j.appender.rolling.layout.ConversionPattern=%p|%d{ISO8601}|%t|%c|%m%n +log4j.appender.rolling.MaxFileSize=1024KB +log4j.appender.rolling.MaxBackupIndex=5 diff --git a/open-vm-tools/common-agent/etc/config/vgauth.conf b/open-vm-tools/common-agent/etc/config/vgauth.conf new file mode 100644 index 000000000..aa13fa7ce --- /dev/null +++ b/open-vm-tools/common-agent/etc/config/vgauth.conf @@ -0,0 +1,9 @@ +[service] +logfile=@logDir@/vgauth.log +loglevel=verbose +enableLogging=true +enableCoreDumps=true +samlSchemaDir=${input_dir}/schemas/saml + +[auditing] +auditSuccessEvents=true