.. Copyright 2018 Bull S.A.S. Atos Technologies - Bull, Rue Jean Jaures, B.P.68, 78340, Les Clayes-sous-Bois, France. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. --- .. _yorc_config_section: Yorc Server Configuration ========================== Yorc has various configuration options that could be specified either by command-line flags, configuration file or environment variables. If an option is specified several times using flags, environment and config file, command-line flag will have the precedence then the environment variable and finally the value defined in the configuration file. Globals Command-line options ---------------------------- .. _option_ansible_ssh_cmd: * ``--ansible_use_openssh``: Prefer OpenSSH over Paramiko a Python implementation of SSH (the default) to provision remote hosts. OpenSSH have several optimization like reusing connections that should improve preformance but may lead to issues on older systems. .. _option_ansible_debug_cmd: * ``--ansible_debug``: Prints massive debug information from Ansible especially about connections .. _option_ansible_connection_retries_cmd: * ``--ansible_connection_retries``: Number of retries in case of Ansible SSH connection failure. .. _option_ansible_cache_facts_cmd: * ``--ansible_cache_facts``: If set to true, caches Ansible facts (values fetched on remote hosts about network/hardware/OS/virtualization configuration) so that these facts are not recomputed each time a new operation is a run for a given deployment (false by default: no caching). .. _option_ansible_archive_artifacts_cmd: * ``--ansible_archive_artifacts``: If set to true, archives operation bash/python scripts locally, copies this archive and unarchives it on remote hosts (requires tar to be installed on remote hosts), to avoid multiple time consuming remote copy operations of individual scripts (false by default: no archive). .. _option_ansible_job_monitoring_time_interval_cmd: * ``--ansible_job_monitoring_time_interval``: Default duration for monitoring time interval for jobs handled by Ansible (defaults to 15s). .. _option_ansible_keep_generated_recipes_cmd: * ``--ansible_keep_generated_recipes``: If set to true, generated Ansible recipes on Yorc server are not deleted. (false by default: generated recipes are deleted). .. _option_operation_remote_base_dir_cmd: * ``--operation_remote_base_dir``: Specify an alternative working directory for Ansible on provisioned Compute. .. _option_config_cmd: * ``--config`` or ``-c``: Specify an alternative configuration file. By default Yorc will look for a file named config.yorc.json in ``/etc/yorc`` directory then if not found in the current directory. .. _option_consul_addr_cmd: * ``--consul_address``: Specify the address (using the format host:port) of Consul. Consul default is used if not provided. .. _option_consul_token_cmd: * ``--consul_token``: Specify the security token to use with Consul. No security token used by default. .. _option_consul_dc_cmd: * ``--consul_datacenter``: Specify the Consul's datacenter to use. Consul default (dc1) is used by default. .. _option_consul_key_cmd: * ``--consul_key_file``: Specify the Consul client's key to use when commuicating over TLS. .. _option_consul_cert_cmd: * ``--consul_cert_file``: Specify the Consul client's certificate to use when commuicating over TLS. .. _option_consul_ca_cert_cmd: * ``--consul_ca_cert``: Specify the CA used to sign Consul certificates. .. _option_consul_ca_path_cmd: * ``--consul_ca_path``: Specify the path to the CA used to sign Consul certificates .. _option_consul_ssl_cmd: * ``--consul_ssl``: If set to true, enable SSL (false by default). .. _option_consul_ssl_verify_cmd: * ``--consul_ssl_verify``: If set to false, disable Consul certificate checking (true by default is ssl enabled). .. _option_consul_tls_handshake_timeout_cmd: * ``--consul_tls_handshake_timeout``: Maximum duration to wait for a TLS handshake with Consul, the default is ``50s``. .. _option_terraform_plugins_dir_cmd: * ``--terraform_plugins_dir``: Specify the directory where to find Terraform pre-installed providers plugins. If not specified, required plugins will be downloaded during deployment. See https://www.terraform.io/guides/running-terraform-in-automation.html#pre-installed-plugins for more information. .. _option_terraform_aws_plugin_version_constraint_cmd: * ``--terraform_aws_plugin_version_constraint``: Specify the Terraform AWS plugin version constraint. Default one compatible with our source code is ``"~> 1.36"``. If you choose another, it's at your own risk. See https://www.terraform.io/docs/configuration/providers.html#provider-versions for more information. .. _option_terraform_consul_plugin_version_constraint_cmd: * ``--terraform_consul_plugin_version_constraint``: Specify the Terraform Consul plugin version constraint. Default one compatible with our source code is ``"~> 2.1"``. If you choose another, it's at your own risk. See https://www.terraform.io/docs/configuration/providers.html#provider-versions for more information. .. _option_terraform_google_plugin_version_constraint_cmd: * ``--terraform_google_plugin_version_constraint``: Specify the Terraform Google plugin version constraint. Default one compatible with our source code is ``"~> 1.18"``. If you choose another, it's at your own risk. See https://www.terraform.io/docs/configuration/providers.html#provider-versions for more information. .. _option_terraform_openstack_plugin_version_constraint_cmd: * ``--terraform_openstack_plugin_version_constraint``: Specify the Terraform OpenStack plugin version constraint. Default one compatible with our source code is ``"~> 1.9"``. If you choose another, it's at your own risk. See https://www.terraform.io/docs/configuration/providers.html#provider-versions for more information. .. _option_terraform_keep_generated_files_cmd: * ``--terraform_keep_generated_files``: If set to true, generated Terraform infrastructures files on Yorc server are not deleted. (false by default: generated files are deleted). .. _option_pub_routines_cmd: * ``--consul_publisher_max_routines``: Maximum number of parallelism used to store key/values in Consul. If you increase the default value you may need to tweak the ulimit max open files. If set to 0 or less the default value (500) will be used. .. _option_shut_timeout_cmd: * ``--graceful_shutdown_timeout``: Timeout to wait for a graceful shutdown of the Yorc server. After this delay the server immediately exits. The default is ``5m``. .. _option_wf_step_termination_timeout_cmd: * ``--wf_step_graceful_termination_timeout``: Timeout to wait for a graceful termination of a workflow step during concurrent workflow step failure. After this delay the step is set on error. The default is ``2m``. .. _option_purged_deployments_eviction_timeout_cmd: * ``--purged_deployments_eviction_timeout``: When a deployment is purged an event is kept to let a chance to external systems to detect it via the events API, this timeout controls the retention time of such events. The default is ``30m``. .. _option_http_addr_cmd: * ``--http_address``: Restrict the listening interface for the Yorc HTTP REST API. By default Yorc listens on all available interfaces .. _option_http_port_cmd: * ``--http_port``: Port number for the Yorc HTTP REST API. If omitted or set to '0' then the default port number is used, any positive integer will be used as it, and finally any negative value will let use a random port. .. _option_keep_remote_path_cmd: * ``--keep_operation_remote_path``: If set to true, do not delete temporary artifacts on provisioned Compute at the end of deployment (false by default for deployment temporary artifacts cleanup). .. _option_keyfile_cmd: * ``--key_file``: File path to a PEM-encoded private key. The key is used to enable SSL for the Yorc HTTP REST API. This must be provided along with cert_file. If one of key_file or cert_file is not provided then SSL is disabled. .. _option_certfile_cmd: * ``--cert_file``: File path to a PEM-encoded certificate. The certificate is used to enable SSL for the Yorc HTTP REST API. This must be provided along with key_file. If one of key_file or cert_file is not provided then SSL is disabled. .. _option_ca_file_cmd: * ``--ca_file``: If set to true, enable TLS certificate checking. Must be provided with cert_file ; key_file and ca_file. Disabled by default. .. _option_ssl_verify_cmd: * ``--ssl_verify``: If set to true, enable TLS certificate checking for clients of the Yorc's API. Must be provided with cert_file ; key_file and ca_file. Disabled by default. .. _option_pluginsdir_cmd: * ``--plugins_directory``: The name of the plugins directory of the Yorc server. The default is to use a directory named *plugins* in the current directory. .. _option_resources_prefix_cmd: * ``--resources_prefix``: Specify a prefix that will be used for names when creating resources such as Compute instances or volumes. Defaults to ``yorc-``. .. _option_workers_cmd: * ``--workers_number``: Yorc instances use a pool of workers to handle deployment tasks. This option defines the size of this pool. If not set the default value of `30` will be used. .. _option_workdir_cmd: * ``--working_directory`` or ``-w``: Specify an alternative working directory for Yorc. The default is to use a directory named *work* in the current directory. .. _option_server_id_cmd: * ``--server_id``: Specify the server ID used to identify the server node in a cluster. The default is the hostname. .. _option_disable_ssh_agent_cmd: * ``--disable_ssh_agent``: Allow disabling ssh-agent use for SSH authentication on provisioned computes. Default is false. If true, compute credentials must provide a path to a private key file instead of key content. .. _yorc_config_file_section: Configuration files ------------------- Configuration files are either JSON or YAML formatted as a single object containing the following configuration options. By default Yorc will look for a file named config.yorc.json in ``/etc/yorc`` directory then if not found in the current directory. The :ref:`--config ` command line flag allows to specify an alternative configuration file. Below is an example of configuration file. .. code-block:: JSON { "resources_prefix": "yorc1-", "infrastructures": { "openstack": { "auth_url": "http://your-openstack:5000/v2.0", "tenant_name": "your-tenant", "user_name": "os-user", "password": "os-password", "private_network_name": "default-private-network", "default_security_groups": ["default"] } } } Below is an example of configuration file with TLS enabled. .. code-block:: JSON { "resources_prefix": "yorc1-", "key_file": "/etc/pki/tls/private/yorc.key", "cert_file": "/etc/pki/tls/certs/yorc.crt", "infrastructures": { "openstack": { "auth_url": "http://your-openstack:5000/v2.0", "tenant_name": "your-tenant", "user_name": "os-user", "password": "os-password", "private_network_name": "default-private-network", "default_security_groups": ["default"] } } } .. _option_shut_timeout_cfg: * ``server_graceful_shutdown_timeout``: Equivalent to :ref:`--graceful_shutdown_timeout ` command-line flag. .. _option_wf_step_termination_timeout_cfg: * ``wf_step_graceful_termination_timeout``: Equivalent to :ref:`--wf_step_graceful_termination_timeout ` command-line flag. .. _option_purged_deployments_eviction_timeout_cfg: * ``purged_deployments_eviction_timeout``: Equivalent to :ref:`--purged_deployments_eviction_timeout ` command-line flag. .. _option_http_addr_cfg: * ``http_address``: Equivalent to :ref:`--http_address ` command-line flag. .. _option_http_port_cfg: * ``http_port``: Equivalent to :ref:`--http_port ` command-line flag. .. _option_keyfile_cfg: * ``key_file``: Equivalent to :ref:`--key_file ` command-line flag. .. _option_certfile_cfg: * ``cert_file``: Equivalent to :ref:`--cert_file ` command-line flag. .. _option_sslverify_cfg: * ``ssl_verify``: Equivalent to :ref:`--ssl_verify ` command-line flag. .. _option_ca_file_cfg: * ``ca_file``: Equivalent to :ref:`--ca_file ` command-line flag. .. _option_plugindir_cfg: * ``plugins_directory``: Equivalent to :ref:`--plugins_directory ` command-line flag. .. _option_resources_prefix_cfg: * ``resources_prefix``: Equivalent to :ref:`--resources_prefix ` command-line flag. .. _option_workers_cfg: * ``workers_number``: Equivalent to :ref:`--workers_number ` command-line flag. .. _option_workdir_cfg: * ``working_directory``: Equivalent to :ref:`--working_directory ` command-line flag. .. _option_server_id_cfg: * ``server_id``: Equivalent to :ref:`--server_id ` command-line flag. .. _option_disable_ssh_agent_cfg: * ``disable_ssh_agent``: Equivalent to :ref:`--disable_ssh_agent ` command-line flag. .. _yorc_config_file_ansible_section: Ansible configuration ~~~~~~~~~~~~~~~~~~~~~ Below is an example of configuration file with Ansible configuration options. .. code-block:: JSON { "resources_prefix": "yorc1-", "infrastructures": { "openstack": { "auth_url": "http://your-openstack:5000/v2.0", "tenant_name": "your-tenant", "user_name": "os-user", "password": "os-password", "private_network_name": "default-private-network", "default_security_groups": ["default"] } }, "ansible": { "use_openssh": true, "connection_retries": 3, "hosted_operations": { "unsandboxed_operations_allowed": false, "default_sandbox": { "image": "jfloff/alpine-python:2.7-slim", "entrypoint": ["python", "-c"], "command": ["import time;time.sleep(31536000);"] } }, "config": { "defaults": { "display_skipped_hosts": "False", "special_context_filesystems": "nfs,vboxsf,fuse,ramfs,myspecialfs", "timeout": "60" } }, "inventory":{ "target_hosts:vars": ["ansible_python_interpreter=/usr/bin/python3"] } } } All available configuration options for Ansible are: .. _option_ansible_ssh_cfg: * ``use_openssh``: Equivalent to :ref:`--ansible_use_openssh ` command-line flag. .. _option_ansible_debug_cfg: * ``debug``: Equivalent to :ref:`--ansible_debug ` command-line flag. .. _option_ansible_connection_retries_cfg: * ``connection_retries``: Equivalent to :ref:`--ansible_connection_retries ` command-line flag. .. _option_ansible_cache_facts_cfg: * ``cache_facts``: Equivalent to :ref:`--ansible_cache_facts ` command-line flag. .. _option_ansible_archive_artifacts_cfg: * ``archive_artifacts``: Equivalent to :ref:`--ansible_archive_artifacts ` command-line flag. .. _option_ansible_job_monitoring_time_interval_cfg: * ``job_monitoring_time_interval``: Equivalent to :ref:`--ansible_job_monitoring_time_interval ` command-line flag. .. _option_operation_remote_base_dir_cfg: * ``operation_remote_base_dir``: Equivalent to :ref:`--operation_remote_base_dir ` command-line flag. .. _option_keep_remote_path_cfg: * ``keep_operation_remote_path``: Equivalent to :ref:`--keep_operation_remote_path ` command-line flag. .. _option_ansible_keep_generated_recipes_cfg: * ``keep_generated_recipes``: Equivalent to :ref:`--ansible_keep_generated_recipes ` command-line flag. .. _option_ansible_sandbox_hosted_ops_cfg: * ``hosted_operations``: This is a complex structure that allow to define the behavior of a Yorc server when it executes an hosted operation. For more information about hosted operation please see :ref:`The hosted operations paragraph in the TOSCA support section `. This structure contains the following configuration options: .. _option_ansible_sandbox_hosted_ops_unsandboxed_flag_cfg: * ``unsandboxed_operations_allowed``: This option control if operations can be executed directly on the system that hosts Yorc if no default sandbox is defined. **This is not permitted by default.** .. _option_ansible_sandbox_hosted_ops_default_sandbox_cfg: * ``default_sandbox``: This complex structure allows to define the default docker container to use to sandbox orchestrator-hosted operations. Bellow configuration options ``entrypoint`` and ``command`` should be carefully set to run the container and make it sleep until operations are executed on it. Defaults options will run a python inline script that sleeps for 1 year. .. _option_ansible_sandbox_hosted_ops_default_sandbox_image_cfg: * ``image``: This is the docker image identifier (in the docker format ``[repository/]name[:tag]``) is option is **required**. .. _option_ansible_sandbox_hosted_ops_default_sandbox_entrypoint_cfg: * ``entrypoint``: This allows to override the default image entrypoint. If both ``entrypoint`` and ``command`` are empty the default value for ``entrypoint`` is ``["python", "-c"]``. .. _option_ansible_sandbox_hosted_ops_default_sandbox_command_cfg: * ``command``: This allows to run a command within the container. If both ``entrypoint`` and ``command`` are empty the default value for ``command`` is ``["import time;time.sleep(31536000);"]``. .. _option_ansible_sandbox_hosted_ops_default_sandbox_env_cfg: * ``env``: An optional list environment variables to set when creating the container. The format of each variable is ``var_name=value``. * ``config`` and ``inventory`` are complex structure allowing to configure Ansible behavior, these options are described in more details in next section. .. _option_ansible_config_cfg: Ansible config option ^^^^^^^^^^^^^^^^^^^^^ ``config`` is a complex structure allowing to define `Ansible configuration settings `_ if you need a specific Ansible Configuration. You should first provide the Ansible Configuration section (for example ``defaults``, ``ssh_connection``...). You should then provide the list of parameters within this section, ie. what `Ansible documentation `_ describes as the ``Ini key`` within the ``Ini Section``. Each parameter value must be provided here as a string : for a boolean parameter, you would provide the string ``False`` or ``True`` as expected in Ansible Confiugration. For example, it would give in Yaml: .. code-block:: YAML ansible: config: defaults: display_skipped_hosts: "False" special_context_filesystems: "nfs,vboxsf,fuse,ramfs,myspecialfs" timeout: "60" By default, the Orchestrator will define these Ansible Configuration settings : * ``host_key_checking: "False"``, to avoid host key checking by the underlying tools Ansible uses to connect to the host * ``timeout: "30"``, to set the connection timeout to 30 seconds * ``stdout_callback: "yaml"``, to display ansible output in yaml format * ``nocows: "1"``, to disable cowsay messages that can cause parsing issues in the Orchestrator And when :ref:`ansible fact caching ` is enabled, the Orchestrator adds these settings : * ``gathering: "smart"``, to set Ansible fact gathering to smart: each new host that has no facts discovered will be scanned * ``fact_caching: "jsonfile"``, to use a json file-based cache plugin .. warning:: Be careful when overriding these settings defined by default by the Orchestrator, as it might lead to unpredictable results. .. _option_ansible_inventory_cfg: Ansible inventory option ^^^^^^^^^^^^^^^^^^^^^^^^ ``inventory`` is a structure allowing to configure `Ansible inventory settings `_ if you need to define variables for hosts or groups. You should first provide the Ansible Inventory group name. You should then provide the list of parameters to define for this group, which can be any parameter specific to your ansible playbooks, or `behavioral inventory parameters `_ describing how Ansible interacts with remote hosts. For example, for Ansible to use python3 on remote hosts, you must define the Ansible behavioral inventory parameter ``ansible_python_interpreter`` in the Ansible inventory Yorc configuration, like below in Yaml: .. code-block:: YAML ansible: inventory: "target_hosts:vars": - ansible_python_interpreter=/usr/bin/python3 By default, the Orchestrator will define : * an inventory group ``target_hosts`` containing the list of remote hosts, and its associated variable group ``target_hosts:vars`` configuring by default this behavioral parameter: * ``ansible_ssh_common_args="-o ConnectionAttempts=20"`` * an inventory group ``hosted_operations`` and its associated variable group ``hosted_operations:vars`` for operations that are executed on the orchestrator host, configuring by default this behavioral parameter: * ``ansible_python_interpreter=/usr/bin/env python`` .. warning:: Settings defined by the user take precedence over settings defined by the Orchestrator. Be careful when overriding these settings defined by default by the Orchestrator, as it might lead to unpredictable results. Ansible performance considerations ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ As described in TOSCA :ref:`tosca_operations_implementations_section`, Yorc supports these builtin implementations for operations to execute on remote hosts : * Bash scripts * Python scripts * Ansible Playbooks It is recommended to implement operations as Ansible Playbooks to get the best execution performance. When operations are not implemented using Ansible playbooks, see the Performance section on :ref:`tosca_operations_performance_section` to improve the performance of scripts execution on remote hosts. .. _yorc_config_file_consul_section: Consul configuration ~~~~~~~~~~~~~~~~~~~~ Below is an example of configuration file with Consul configuration options. .. code-block:: JSON { "resources_prefix": "yorc1-", "infrastructures": { "openstack": { "auth_url": "http://your-openstack:5000/v2.0", "tenant_name": "your-tenant", "user_name": "os-user", "password": "os-password", "private_network_name": "default-private-network", "default_security_groups": ["default"] } }, "consul": { "address": "http://consul-host:8500", "datacenter": "dc1", "publisher_max_routines": 500 } } All available configuration options for Consul are: .. _option_consul_addr_cfg: * ``address``: Equivalent to :ref:`--consul_address ` command-line flag. .. _option_consul_token_cfg: * ``token``: Equivalent to :ref:`--consul_token ` command-line flag. .. _option_consul_dc_cfg: * ``datacenter``: Equivalent to :ref:`--consul_datacenter ` command-line flag. .. _option_consul_key_cfg: * ``key_file``: Equivalent to :ref:`--consul_key_file ` command-line flag. .. _option_consul_cert_cfg: * ``cert_file``: Equivalent to :ref:`--consul_cert_file ` command-line flag. .. _option_consul_ca_cert_cfg: * ``ca_cert``: Equivalent to :ref:`--consul_ca_cert ` command-line flag. .. _option_consul_ca_path_cfg: * ``ca_path``: Equivalent to :ref:`--consul_ca_path ` command-line flag. .. _option_consul_ssl_cfg: * ``ssl``: Equivalent to :ref:`--consul_ssl ` command-line flag. .. _option_consul_ssl_verify_cfg: * ``ssl_verify``: Equivalent to :ref:`--consul_ssl_verify ` command-line flag. .. _option_consul_tls_handshake_timeout: * ``tls_handshake_timeout``: Equivalent to :ref:`--consul_tls_handshake_timeout ` command-line flag. .. _option_pub_routines_cfg: * ``publisher_max_routines``: Equivalent to :ref:`--consul_publisher_max_routines ` command-line flag. .. _yorc_config_file_terraform_section: Terraform configuration ~~~~~~~~~~~~~~~~~~~~~~~ Below is an example of configuration file with Terraform configuration options. .. code-block:: JSON { "resources_prefix": "yorc1-", "infrastructures": { "openstack": { "auth_url": "http://your-openstack:5000/v2.0", "tenant_name": "your-tenant", "user_name": "os-user", "password": "os-password", "private_network_name": "default-private-network", "default_security_groups": ["default"] } }, "terraform": { "plugins_dir": "home/yorc/terraform_plugins_directory", } } All available configuration options for Terraform are: .. _option_plugins_dir_cfg: * ``plugins_dir``: Equivalent to :ref:`--terraform_plugins_dir ` command-line flag. .. _option_aws_plugin_version_constraint_cfg: * ``aws_plugin_version_constraint``: Equivalent to :ref:`--terraform_aws_plugin_version_constraint ` command-line flag. .. _option_consul_plugin_version_constraint_cfg: * ``consul_plugin_version_constraint``: Equivalent to :ref:`--terraform_consul_plugin_version_constraint ` command-line flag. .. _option_google_plugin_version_constraint_cfg: * ``google_plugin_version_constraint``: Equivalent to :ref:`--terraform_google_plugin_version_constraint ` command-line flag. .. _option_openstack_plugin_version_constraint_cfg: * ``openstack_plugin_version_constraint``: Equivalent to :ref:`--terraform_openstack_plugin_version_constraint ` command-line flag. .. _option_terraform_keep_generated_files_cfg: * ``keep_generated_files``: Equivalent to :ref:`--terraform_keep_generated_files ` command-line flag. .. _yorc_config_file_telemetry_section: Telemetry configuration ~~~~~~~~~~~~~~~~~~~~~~~ Telemetry configuration can only be done via the configuration file. By default telemetry data are only stored in memory. See :ref:`yorc_telemetry_section` for more information about telemetry. Below is an example of configuration file with telemetry metrics forwarded to a ``Statsd`` instance and with a ``Prometheus`` HTTP endpoint exposed. .. code-block:: JSON { "resources_prefix": "yorc1-", "infrastructures": { "openstack": { "auth_url": "http://your-openstack:5000/v2.0", "tenant_name": "your-tenant", "user_name": "os-user", "password": "os-password", "private_network_name": "default-private-network", "default_security_groups": ["default"] } }, "telemetry": { "statsd_address": "127.0.0.1:8125", "expose_prometheus_endpoint": true } } All available configuration options for telemetry are: .. _option_telemetry_srvname_cfg: * ``service_name``: Metrics keys prefix, defaults to ``yorc``. .. _option_telemetry_disHostName_cfg: * ``disable_hostname``: Specifies if gauge values should not be prefixed with the local hostname. Defaults to ``false``. .. _option_telemetry_disRuntimeMetrics_cfg: * ``disable_go_runtime_metrics``: Specifies Go runtime metrics (goroutines, memory, ...) should not be published. Defaults to ``false``. .. _option_telemetry_statsd_cfg: * ``statsd_address``: Specify the address (in form
:) of a statsd server to forward metrics data to. .. _option_telemetry_statsite_cfg: * ``statsite_address``: Specify the address (in form
:) of a statsite server to forward metrics data to. .. _option_telemetry_prom_cfg: * ``expose_prometheus_endpoint``: Specify if an HTTP Prometheus endpoint should be exposed allowing Prometheus to scrape metrics. .. _yorc_config_file_deprecated_section: Deprecated configuration options ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .. deprecated:: 3.0.0 .. _option_deprecated_ansible_ssh_cfg: * ``ansible_use_openssh``: Equivalent to :ref:`--ansible_use_openssh ` command-line flag. .. _option_deprecated_ansible_debug_cfg: * ``ansible_debug``: Equivalent to :ref:`--ansible_debug ` command-line flag. .. _option_deprecated_ansible_connection_retries_cfg: * ``ansible_connection_retries``: Equivalent to :ref:`--ansible_connection_retries ` command-line flag. .. _option_deprecated_operation_remote_base_dir_cfg: * ``operation_remote_base_dir``: Equivalent to :ref:`--operation_remote_base_dir ` command-line flag. .. _option_deprecated_keep_remote_path_cfg: * ``keep_operation_remote_path``: Equivalent to :ref:`--keep_operation_remote_path ` command-line flag. .. _option_deprecated_consul_addr_cfg: * ``consul_address``: Equivalent to :ref:`--consul_address ` command-line flag. .. _option_deprecated_consul_token_cfg: * ``consul_token``: Equivalent to :ref:`--consul_token ` command-line flag. .. _option_deprecated_consul_dc_cfg: * ``consul_datacenter``: Equivalent to :ref:`--consul_datacenter ` command-line flag. .. _option_deprecated_consul_key_cfg: * ``consul_key_file``: Equivalent to :ref:`--consul_key_file ` command-line flag. .. _option_deprecated_consul_cert_cfg: * ``consul_cert_file``: Equivalent to :ref:`--consul_cert_file ` command-line flag. .. _option_deprecated_consul_ca_cert_cfg: * ``consul_ca_cert``: Equivalent to :ref:`--consul_ca_cert ` command-line flag. .. _option_deprecated_consul_ca_path_cfg: * ``consul_ca_path``: Equivalent to :ref:`--consul_ca_path ` command-line flag. .. _option_deprecated_consul_ssl_cfg: * ``consul_ssl``: Equivalent to :ref:`--consul_ssl ` command-line flag. .. _option_deprecated_consul_ssl_verify_cfg: * ``consul_ssl_verify``: Equivalent to :ref:`--consul_ssl_verify ` command-line flag. .. _option_deprecated_pub_routines_cfg: * ``consul_publisher_max_routines``: Equivalent to :ref:`--consul_publisher_max_routines ` command-line flag. Environment variables --------------------- .. _option_ansible_ssh_env: * ``YORC_ANSIBLE_USE_OPENSSH``: Equivalent to :ref:`--ansible_use_openssh ` command-line flag. .. _option_ansible_debug_env: * ``YORC_ANSIBLE_DEBUG``: Equivalent to :ref:`--ansible_debug ` command-line flag. .. _option_ansible_connection_retries_env: * ``YORC_ANSIBLE_CONNECTION_RETRIES``: Equivalent to :ref:`--ansible_connection_retries ` command-line flag. .. _option_ansible_cache_facts_env: * ``YORC_ANSIBLE_CACHE_FACTS``: Equivalent to :ref:`--ansible_cache_facts ` command-line flag. .. _option_ansible_archive_artifacts_env: * ``YORC_ANSIBLE_JOB_MONITORING_TIME_INTERVAL``: Equivalent to :ref:`--ansible_job_monitoring_time_interval ` command-line flag. .. _option_ansible_keep_generated_recipes_env: * ``YORC_ANSIBLE_KEEP_GENERATED_RECIPES``: Equivalent to :ref:`--ansible_keep_generated_recipes ` command-line flag. .. _option_operation_remote_base_dir_env: * ``YORC_OPERATION_REMOTE_BASE_DIR``: Equivalent to :ref:`--operation_remote_base_dir ` command-line flag. .. _option_consul_addr_env: * ``YORC_CONSUL_ADDRESS``: Equivalent to :ref:`--consul_address ` command-line flag. .. _option_consul_token_env: * ``YORC_CONSUL_TOKEN``: Equivalent to :ref:`--consul_token ` command-line flag. .. _option_consul_dc_env: * ``YORC_CONSUL_DATACENTER``: Equivalent to :ref:`--consul_datacenter ` command-line flag. .. _option_consul_key_file_env: * ``YORC_CONSUL_KEY_FILE``: Equivalent to :ref:`--consul_key_file ` command-line flag. .. _option_consul_cert_file_env: * ``YORC_CONSUL_CERT_FILE``: Equivalent to :ref:`--consul_cert_file ` command-line flag. .. _option_consul_ca_cert_env: * ``YORC_CONSUL_CA_CERT``: Equivalent to :ref:`--consul_ca_cert ` command-line flag. .. _option_consul_ca_path_env: * ``YORC_CONSUL_CA_PATH``: Equivalent to :ref:`--consul_ca_path ` command-line flag. .. _option_consul_ssl_env: * ``YORC_CONSUL_SSL``: Equivalent to :ref:`--consul_ssl ` command-line flag. .. _option_consul_ssl_verify_env: * ``YORC_CONSUL_SSL_VERIFY``: Equivalent to :ref:`--consul_ssl_verify ` command-line flag. .. _option_consul_tls_handshake_timeout_env: * ``YORC_CONSUL_TLS_HANDSHAKE_TIMEOUT``: Equivalent to :ref:`--consul_tls_handshake_timeout ` command-line flag. .. _option_pub_routines_env: * ``YORC_CONSUL_PUBLISHER_MAX_ROUTINES``: Equivalent to :ref:`--consul_publisher_max_routines ` command-line flag. .. _option_shut_timeout_env: * ``YORC_SERVER_GRACEFUL_SHUTDOWN_TIMEOUT``: Equivalent to :ref:`--graceful_shutdown_timeout ` command-line flag. .. _option_wf_step_termination_timeout_env: * ``YORC_WF_STEP_GRACEFUL_TERMINATION_TIMEOUT``: Equivalent to :ref:`--wf_step_graceful_termination_timeout ` command-line flag. .. _option_purged_deployments_eviction_timeout_env: * ``YORC_PURGED_DEPLOYMENTS_EVICTION_TIMEOUT``: Equivalent to :ref:`--purged_deployments_eviction_timeout ` command-line flag. .. _option_http_addr_env: * ``YORC_HTTP_ADDRESS``: Equivalent to :ref:`--http_address ` command-line flag. .. _option_http_port_env: * ``YORC_HTTP_PORT``: Equivalent to :ref:`--http_port ` command-line flag. .. _option_keep_remote_path_env: * ``YORC_KEEP_OPERATION_REMOTE_PATH``: Equivalent to :ref:`--keep_operation_remote_path ` command-line flag. .. _option_keyfile_env: * ``YORC_KEY_FILE``: Equivalent to :ref:`--key_file ` command-line flag. .. _option_certfile_env: * ``YORC_CERT_FILE``: Equivalent to :ref:`--cert_file ` command-line flag. .. _option_sslverify_env: * ``YORC_SSL_VERIFY``: Equivalent to :ref:`--ssl_verify ` command-line flag. .. _option_ca_file_env: * ``YORC_CA_FILE``: Equivalent to :ref:`--ca_file ` command-line flag. .. _option_plugindir_env: * ``YORC_PLUGINS_DIRECTORY``: Equivalent to :ref:`--plugins_directory ` command-line flag. .. _option_resources_prefix_env: * ``YORC_RESOURCES_PREFIX``: Equivalent to :ref:`--resources_prefix ` command-line flag. .. _option_workers_env: * ``YORC_WORKERS_NUMBER``: Equivalent to :ref:`--workers_number ` command-line flag. .. _option_workdir_env: * ``YORC_WORKING_DIRECTORY``: Equivalent to :ref:`--working_directory ` command-line flag. .. _option_server_id_env: * ``YORC_SERVER_ID``: Equivalent to :ref:`--server_id ` command-line flag. .. _option_disable_ssh_agent_env: * ``YORC_DISABLE_SSH_AGENT``: Equivalent to :ref:`--disable_ssh_agent ` command-line flag. .. _option_log_env: * ``YORC_LOG``: If set to ``1`` or ``DEBUG``, enables debug logging for Yorc. .. _option_terraform_plugins_dir_env: * ``YORC_TERRAFORM_PLUGINS_DIR``: Equivalent to :ref:`--terraform_plugins_dir ` command-line flag. .. _option_terraform_aws_plugin_version_constraint: * ``YORC_TERRAFORM_AWS_PLUGIN_VERSION_CONSTRAINT``: Equivalent to :ref:`--terraform_aws_plugin_version_constraint ` command-line flag. .. _option_terraform_consul_plugin_version_constraint: * ``YORC_TERRAFORM_CONSUL_PLUGIN_VERSION_CONSTRAINT``: Equivalent to :ref:`--terraform_consul_plugin_version_constraint ` command-line flag. .. _option_terraform_google_plugin_version_constraint: * ``YORC_TERRAFORM_GOOGLE_PLUGIN_VERSION_CONSTRAINT``: Equivalent to :ref:`--terraform_google_plugin_version_constraint ` command-line flag. .. _option_terraform_openstack_plugin_version_constraint: * ``YORC_TERRAFORM_OPENSTACK_PLUGIN_VERSION_CONSTRAINT``: Equivalent to :ref:`--terraform_openstack_plugin_version_constraint ` command-line flag. .. _option_terraform_keep_generated_files_env: * ``YORC_TERRAFORM_KEEP_GENERATED_FILES``: Equivalent to :ref:`--terraform_keep_generated_files ` command-line flag. .. _infrastructures_configuration: Infrastructures configuration ----------------------------- Due to the pluggable nature of infrastructures support in Yorc their configuration differ from other configurable options. An infrastructure configuration option could be specified by either a its configuration placeholder in the configuration file, a command line flag or an environment variable. The general principle is for a configurable option ``option_1`` for infrastructure ``infra1`` it should be specified in the configuration file as following: .. code-block:: JSON { "infrastructures": { "infra1": { "option_1": "value" } } } Similarly a command line flag with the name ``--infrastructure_infra1_option_1`` and an environment variable with the name ``YORC_INFRA_INFRA1_OPTION_1`` will be automatically supported and recognized. The default order of precedence apply here. Builtin infrastructures configuration ------------------------------------- .. _option_infra_os: OpenStack ~~~~~~~~~ OpenStack infrastructure key name is ``openstack`` in lower case. .. MAG - According to: https://github.com/sphinx-doc/sphinx/issues/3043 http://www.sphinx-doc.org/en/stable/markup/misc.html#tables .. tabularcolumns:: |p{0.35\textwidth}|p{0.30\textwidth}|p{0.05\textwidth}|p{0.15\textwidth}|p{0.10\textwidth}| +-----------------------------------+---------------------------------------------------------------------------------------------------------------------+-----------+----------------------------------------------------+---------------+ | Option Name | Description | Data Type | Required | Default | | | | | | | +===================================+=====================================================================================================================+===========+====================================================+===============+ | ``auth_url`` | Specify the authentication url for OpenStack (should be the Keystone endpoint ie: http://your-openstack:5000/v2.0). | string | yes | | +-----------------------------------+---------------------------------------------------------------------------------------------------------------------+-----------+----------------------------------------------------+---------------+ | ``tenant_id`` | Specify the OpenStack tenant id to use. | string | Either this or ``tenant_name`` should be provided. | | +-----------------------------------+---------------------------------------------------------------------------------------------------------------------+-----------+----------------------------------------------------+---------------+ | ``tenant_name`` | Specify the OpenStack tenant name to use. | string | Either this or ``tenant_id`` should be provided. | | +-----------------------------------+---------------------------------------------------------------------------------------------------------------------+-----------+----------------------------------------------------+---------------+ | ``user_domain_name`` | Specify the domain name where the user is located (Identity v3 only). | string | yes (if use Identity v3) | | +-----------------------------------+---------------------------------------------------------------------------------------------------------------------+-----------+----------------------------------------------------+---------------+ | ``project_id`` | Specify the ID of the project to login with (Identity v3 only). | string | Either this or ``project_name`` should be provided.| | +-----------------------------------+---------------------------------------------------------------------------------------------------------------------+-----------+----------------------------------------------------+---------------+ | ``project_name`` | Specify the name of the project to login with (Identity v3 only). | string | Either this or ``project_id`` should be provided. | | +-----------------------------------+---------------------------------------------------------------------------------------------------------------------+-----------+----------------------------------------------------+---------------+ | ``user_name`` | Specify the OpenStack user name to use. | string | yes | | +-----------------------------------+---------------------------------------------------------------------------------------------------------------------+-----------+----------------------------------------------------+---------------+ | ``password`` | Specify the OpenStack password to use. | string | yes | | +-----------------------------------+---------------------------------------------------------------------------------------------------------------------+-----------+----------------------------------------------------+---------------+ | ``region`` | Specify the OpenStack region to use | string | no | ``RegionOne`` | +-----------------------------------+---------------------------------------------------------------------------------------------------------------------+-----------+----------------------------------------------------+---------------+ | ``private_network_name`` | Specify the name of private network to use as primary adminstration network between Yorc and Compute | string | Required to use the ``PRIVATE`` keyword for TOSCA | | | | instances. It should be a private network accessible by this instance of Yorc. | | admin networks | | +-----------------------------------+---------------------------------------------------------------------------------------------------------------------+-----------+----------------------------------------------------+---------------+ | ``provisioning_over_fip_allowed`` | This allows to perform the provisioning of a Compute over the associated floating IP if it exists. This is useful | boolean | no | ``false`` | | | when Yorc is not deployed on the same private network than the provisioned Compute. | | | | +-----------------------------------+---------------------------------------------------------------------------------------------------------------------+-----------+----------------------------------------------------+---------------+ | ``default_security_groups`` | Default security groups to be used when creating a Compute instance. It should be a comma-separated list of | list of | no | | | | security group names | strings | | | +-----------------------------------+---------------------------------------------------------------------------------------------------------------------+-----------+----------------------------------------------------+---------------+ | ``insecure`` | Trust self-signed SSL certificates | boolean | no | ``false`` | +-----------------------------------+---------------------------------------------------------------------------------------------------------------------+-----------+----------------------------------------------------+---------------+ | ``cacert_file`` | Specify a custom CA certificate when communicating over SSL. You can specify either a path to the file or the | string | no | | | | contents of the certificate | | | | +-----------------------------------+---------------------------------------------------------------------------------------------------------------------+-----------+----------------------------------------------------+---------------+ | ``cert`` | Specify client certificate file for SSL client authentication. You can specify either a path to the file or | string | no | | | | the contents of the certificate | | | | +-----------------------------------+---------------------------------------------------------------------------------------------------------------------+-----------+----------------------------------------------------+---------------+ | ``key`` | Specify client private key file for SSL client authentication. You can specify either a path to the file or | string | no | | | | the contents of the key | | | | +-----------------------------------+---------------------------------------------------------------------------------------------------------------------+-----------+----------------------------------------------------+---------------+ .. _option_infra_kubernetes: Kubernetes ~~~~~~~~~~ Kubernetes infrastructure key name is ``kubernetes`` in lower case. .. MAG - According to: https://github.com/sphinx-doc/sphinx/issues/3043 http://www.sphinx-doc.org/en/stable/markup/misc.html#tables .. tabularcolumns:: |l|L|L|L|L| +----------------------------------+---------------------------------------------------------------------------------+-----------+----------+---------+ | Option Name | Description | Data Type | Required | Default | | | | | | | +==================================+=================================================================================+===========+==========+=========+ | ``kubeconfig`` | Path or content of Kubernetes cluster configuration file* | string | no | | +----------------------------------+---------------------------------------------------------------------------------+-----------+----------+---------+ | ``application_credentials`` | Path or content of file containing credentials** | string | no | | +----------------------------------+---------------------------------------------------------------------------------+-----------+----------+---------+ | ``master_url`` | URL of the HTTP API of Kubernetes is exposed. Format: ``https://:`` | string | no | | +----------------------------------+---------------------------------------------------------------------------------+-----------+----------+---------+ | ``ca_file`` | Path to a trusted root certificates for server | string | no | | +----------------------------------+---------------------------------------------------------------------------------+-----------+----------+---------+ | ``cert_file`` | Path to the TLS client certificate used for authentication | string | no | | +----------------------------------+---------------------------------------------------------------------------------+-----------+----------+---------+ | ``key_file`` | Path to the TLS client key used for authentication | string | no | | +----------------------------------+---------------------------------------------------------------------------------+-----------+----------+---------+ | ``insecure`` | Server should be accessed without verifying the TLS certificate (testing only) | boolean | no | | +----------------------------------+---------------------------------------------------------------------------------+-----------+----------+---------+ | ``job_monitoring_time_interval`` | Default duration for job monitoring time interval | string | no | 5s | +----------------------------------+---------------------------------------------------------------------------------+-----------+----------+---------+ * ``kubeconfig`` is the path (accessible to Yorc server) or the content of a Kubernetes cluster configuration file. When ``kubeconfig`` is defined, other infrastructure configuration properties (``master_url``, keys or certificates) don't have to be defined here. If neither ``kubeconfig`` nor ``master_url`` is specified, the Orchestrator will consider it is running within a Kubernetes Cluster and will attempt to authenticate inside this cluster. * ``application_credentials`` is the path (accessible to Yorc server) or the content of a file containing Google service account private keys in JSON format. This file can be downloaded from the Google Cloud Console at `Google Cloud service account file `_. It is needed to authenticate against Google Cloud when the ``kubeconfig`` property above refers to a Kubernetes Cluster created on Google Kubernetes Engine, and the orchestrator is running on a host where `gcloud `_ is not installed. .. _option_infra_google: Google Cloud Platform ~~~~~~~~~~~~~~~~~~~~~ Google Cloud Platform infrastructure key name is ``google`` in lower case. +-----------------------------+----------------------------------------------+-----------+----------+----------------------------------------+ | Option Name | Description | Data Type | Required | Default | | | | | | | +=============================+==============================================+===========+==========+========================================+ | ``project`` | ID of the project to apply any resources to | string | yes | | +-----------------------------+----------------------------------------------+-----------+----------+----------------------------------------+ | ``application_credentials`` | Path of file containing credentials* | string | no | Google Application Default Credentials | +-----------------------------+----------------------------------------------+-----------+----------+----------------------------------------+ | ``credentials`` | Content of file containing credentials | string | no | Google Application Default Credentials | +-----------------------------+----------------------------------------------+-----------+----------+----------------------------------------+ | ``region`` | The region to operate under | string | no | | +-----------------------------+----------------------------------------------+-----------+----------+----------------------------------------+ ``application_credentials`` is the path (accessible to Yorc server) of a file containing service account private keys in JSON format. This file can be downloaded from the Google Cloud Console at `Google Cloud service account file `_. If no file path is specified in ``application_credentials`` and no file content is specified in ``credentials``, the orchestrator will fall back to using the `Google Application Default Credentials `_ if any. .. _option_infra_aws: AWS ~~~ AWS infrastructure key name is ``aws`` in lower case. +----------------+----------------------------------------+-----------+----------+---------+ | Option Name | Description | Data Type | Required | Default | | | | | | | +================+========================================+===========+==========+=========+ | ``access_key`` | Specify the AWS access key credential. | string | yes | | +----------------+----------------------------------------+-----------+----------+---------+ | ``secret_key`` | Specify the AWS secret key credential. | string | yes | | +----------------+----------------------------------------+-----------+----------+---------+ | ``region`` | Specify the AWS region to use. | string | yes | | +----------------+----------------------------------------+-----------+----------+---------+ .. _option_infra_slurm: Slurm ~~~~~ Slurm infrastructure key name is ``slurm`` in lower case. +----------------------------------+------------------------------------------------------------------+-----------+---------------------------------------------------+---------+ | Option Name | Description | Data Type | Required | Default | | | | | | | +==================================+==================================================================+===========+===================================================+=========+ | ``user_name`` | SSH Username to be used to connect to the Slurm Client's node | string | yes (see below for alternatives) | | +----------------------------------+------------------------------------------------------------------+-----------+---------------------------------------------------+---------+ | ``password`` | SSH Password to be used to connect to the Slurm Client's node | string | Either this or ``private_key`` should be provided | | +----------------------------------+------------------------------------------------------------------+-----------+---------------------------------------------------+---------+ | ``private_key`` | SSH Private key to be used to connect to the Slurm Client's node | string | Either this or ``password`` should be provided | | +----------------------------------+------------------------------------------------------------------+-----------+---------------------------------------------------+---------+ | ``url`` | IP address of the Slurm Client's node | string | yes | | +----------------------------------+------------------------------------------------------------------+-----------+---------------------------------------------------+---------+ | ``port`` | SSH Port to be used to connect to the Slurm Client's node | string | yes | | +----------------------------------+------------------------------------------------------------------+-----------+---------------------------------------------------+---------+ | ``default_job_name`` | Default name for the job allocation. | string | no | | +----------------------------------+------------------------------------------------------------------+-----------+---------------------------------------------------+---------+ | ``job_monitoring_time_interval`` | Default duration for job monitoring time interval | string | no | 5s | +----------------------------------+------------------------------------------------------------------+-----------+---------------------------------------------------+---------+ | ``enforce_accounting`` | If true, account properties are mandatory for jobs and computes | boolean | no | false | +----------------------------------+------------------------------------------------------------------+-----------+---------------------------------------------------+---------+ | ``keep_job_remote_artifacts`` | If true, job artifacts are not deleted at the end of the job. | boolean | no | false | +----------------------------------+------------------------------------------------------------------+-----------+---------------------------------------------------+---------+ An alternative way to specify user credentials for SSH connection to the Slurm Client's node (user_name, password or private_key), is to provide them as application properties. In this case, Yorc gives priority to the application provided properties. Moreover, if all the applications provide their own user credentials, the configuration properties user_name, password and private_key, can be omitted. See `Working with jobs `_ for more information. Vault configuration ------------------- Due to the pluggable nature of vaults support in Yorc their configuration differ from other configurable options. A vault configuration option could be specified by either its configuration placeholder in the configuration file, a command line flag or an environment variable. The general principle is for a configurable option ``option_1`` it should be specified in the configuration file as following: .. code-block:: JSON { "vault": { "type": "vault_implementation", "option_1": "value" } } Similarly a command line flag with the name ``--vault_option_1`` and an environment variable with the name ``YORC_VAULT_OPTION_1`` will be automatically supported and recognized. The default order of precedence apply here. ``type`` is the only mandatory option for all vaults configurations, it allows to select the vault implementation by specifying it's ID. If the ``type`` option is not present either in the config file, as a command line flag or as an environment variable, Vault configuration will be ignored. The integration with a Vault is totally optional and this configuration part may be leave empty. Builtin Vaults configuration ---------------------------- .. _option_hashivault: HashiCorp's Vault ~~~~~~~~~~~~~~~~~ This is the only builtin supported Vault implementation. Implementation ID to use with the vault type configuration parameter is ``hashicorp``. Bellow are recognized configuration options for Vault: .. MAG - According to: https://github.com/sphinx-doc/sphinx/issues/3043 http://www.sphinx-doc.org/en/stable/markup/misc.html#tables .. tabularcolumns:: |l|L|l|l|l| +---------------------+-----------------------------------------------------------------------------------------------------------------------------------+-----------+----------+-----------+ | Option Name | Description | Data Type | Required | Default | | | | | | | +=====================+===================================================================================================================================+===========+==========+===========+ | ``address`` | Address is the address of the Vault server. This should be a complete URL such as "https://vault.example.com". | string | yes | | +---------------------+-----------------------------------------------------------------------------------------------------------------------------------+-----------+----------+-----------+ | ``max_retries`` | MaxRetries controls the maximum number of times to retry when a 5xx error occurs. Set to 0 or less to disable | integer | no | ``0`` | | | retrying. | | | | +---------------------+-----------------------------------------------------------------------------------------------------------------------------------+-----------+----------+-----------+ | ``timeout`` | Timeout is for setting custom timeout parameter in the HttpClient. | string | no | | +---------------------+-----------------------------------------------------------------------------------------------------------------------------------+-----------+----------+-----------+ | ``ca_cert`` | CACert is the path to a PEM-encoded CA cert file to use to verify the Vault server SSL certificate. | string | no | | +---------------------+-----------------------------------------------------------------------------------------------------------------------------------+-----------+----------+-----------+ | ``ca_path`` | CAPath is the path to a directory of PEM-encoded CA cert files to verify the Vault server SSL certificate. | string | no | | +---------------------+-----------------------------------------------------------------------------------------------------------------------------------+-----------+----------+-----------+ | ``client_cert`` | ClientCert is the path to the certificate for Vault communication. | string | no | | +---------------------+-----------------------------------------------------------------------------------------------------------------------------------+-----------+----------+-----------+ | ``client_key`` | ClientKey is the path to the private key for Vault communication | string | no | | +---------------------+-----------------------------------------------------------------------------------------------------------------------------------+-----------+----------+-----------+ | ``tls_server_name`` | TLSServerName, if set, is used to set the SNI host when connecting via TLS. | string | no | | +---------------------+-----------------------------------------------------------------------------------------------------------------------------------+-----------+----------+-----------+ | ``tls_skip_verify`` | Disables SSL verification | boolean | no | ``false`` | +---------------------+-----------------------------------------------------------------------------------------------------------------------------------+-----------+----------+-----------+ | ``token`` | Specifies the access token to use to connect to vault. This is highly discouraged to this option in the | string | no | | | | configuration file as the token is a sensitive data and should not be written on disk. Prefer the associated environment variable | | | | +---------------------+-----------------------------------------------------------------------------------------------------------------------------------+-----------+----------+-----------+ .. _yorc_config_client_section: Yorc Client CLI Configuration ============================= This section is dedicated to the CLI part of yorc that covers everything except the server configuration detailed above. It focus on configuration options commons to all the commands. Sub commands may have additional options please use the cli *help* command to see them. Just like for its server part Yorc Client CLI has various configuration options that could be specified either by command-line flags, configuration file or environment variables. If an option is specified several times using flags, environment and config file, command-line flag will have the precedence then the environment variable and finally the value defined in the configuration file. Command-line options -------------------- .. _option_client_ca_file_cmd: * ``--ca_file``: This provides a file path to a PEM-encoded certificate authority. This implies the use of HTTPS to connect to the Yorc REST API. .. _option_client_ca_path_cmd: * ``--ca_path``: Path to a directory of PEM-encoded certificates authorities. This implies the use of HTTPS to connect to the Yorc REST API. .. _option_client_cert_file_cmd: * ``--cert_file``: File path to a PEM-encoded client certificate used to authenticate to the Yorc API. This must be provided along with key-file. If one of key-file or cert-file is not provided then SSL authentication is disabled. If both cert-file and key-file are provided this implies the use of HTTPS to connect to the Yorc REST API. .. _option_client_config_cmd: * ``-c`` or ``--config``: config file (default is /etc/yorc/yorc-client.[json|yaml]) .. _option_client_key_file_cmd: * ``--key_file``: File path to a PEM-encoded client private key used to authenticate to the Yorc API. This must be provided along with cert-file. If one of key-file or cert-file is not provided then SSL authentication is disabled. If both cert-file and key-file are provided this implies the use of HTTPS to connect to the Yorc REST API. .. _option_client_skip_tls_verify_cmd: * ``--skip_tls_verify``: Controls whether a client verifies the server's certificate chain and host name. If set to true, TLS accepts any certificate presented by the server and any host name in that certificate. In this mode, TLS is susceptible to man-in-the-middle attacks. This should be used only for testing. This implies the use of HTTPS to connect to the Yorc REST API. .. _option_client_tls_cmd: * ``-s`` or ``--ssl_enabled``: Use HTTPS to connect to the Yorc REST API. This is automatically implied if one of ``--ca_file``, ``--ca_path``, ``--cert_file``, ``--key_file`` or ``--skip_tls_verify`` is provided. .. _option_client_yorc_api_cmd: * ``--yorc_api``: specify the host and port used to join the Yorc' REST API (default "localhost:8800") Configuration files ------------------- Configuration files are either JSON or YAML formatted as a single object containing the following configuration options. By default Yorc will look for a file named yorc-client.json or yorc-client.yaml in ``/etc/yorc`` directory then if not found in the current directory. The :ref:`--config ` command line flag allows to specify an alternative configuration file. .. _option_client_ca_file_cfg: * ``ca_file``: Equivalent to :ref:`--ca_file ` command-line flag. .. _option_client_ca_path_cfg: * ``ca_path``: Equivalent to :ref:`--ca_path ` command-line flag. .. _option_client_cert_file_cfg: * ``cert_file``: Equivalent to :ref:`--cert_file ` command-line flag. .. _option_client_key_file_cfg: * ``key_file``: Equivalent to :ref:`--key_file ` command-line flag. .. _option_client_skip_tls_verify_cfg: * ``skip_tls_verify``: Equivalent to :ref:`--skip_tls_verify ` command-line flag. .. _option_client_tls_cfg: * ``ssl_enabled``: Equivalent to :ref:`--ssl_enabled ` command-line flag. .. _option_client_yorc_api_cfg: * ``yorc_api``: Equivalent to :ref:`--yorc_api ` command-line flag. Environment variables --------------------- .. _option_client_ca_file_env: * ``YORC_CA_FILE``: Equivalent to :ref:`--ca_file ` command-line flag. .. _option_client_ca_path_env: * ``YORC_CA_PATH``: Equivalent to :ref:`--ca_path ` command-line flag. .. _option_client_cert_file_env: * ``YORC_CERT_FILE``: Equivalent to :ref:`--cert_file ` command-line flag. .. _option_client_key_file_env: * ``YORC_KEY_FILE``: Equivalent to :ref:`--key_file ` command-line flag. .. _option_client_skip_tls_verify_env: * ``YORC_SKIP_TLS_VERIFY``: Equivalent to :ref:`--skip_tls_verify ` command-line flag. .. _option_client_tls_env: * ``YORC_SSL_ENABLED``: Equivalent to :ref:`--ssl_enabled ` command-line flag. .. _option_client_yorc_api_env: * ``YORC_API``: Equivalent to :ref:`--yorc_api ` command-line flag.