Пример файла inventory.yml
all:
children:
single:
hosts:
single-instance-prod:
ansible_host: sandbox01-rishat.dev.simpleone.ru
vars:
ansible_user: root
Пример файла
vars.yml
---
### to see more settings go to roles/single/defaults
## app settings
simple_instance_name: "sandbox01-rishat.dev.simpleone.ru"
simple_instance_url: "sandbox01-rishat.dev.simpleone.ru"
simple_admin_password: "12345678"
# s3 minio api url
s3_url: "s3-sandbox01-rishat.dev.simpleone.ru"
# s3 minio management console
s3_console_url: "s3-sandbox01-rishat.dev.simpleone.ru"
## s3 settings
s3_access_key: "s3randomaccesskey"
s3_secret_key: "s3randomsecretkey"
## postgres settings
# set `false` if postgres is self-managed
postgres_internal: true
# directory on host with postgres data
postgres_datadir: /data/postgres
postgres_user: "simple_user"
postgres_pass: "postgresrandompassword"
postgres_user_ro: "simple_user_ro"
postgres_pass_ro: "postgresrandompassword_ro"
# database name except default
postgres_db_name: "simpleone"
# use connection without tls
postgres_allow_nossl: 1
## rabbitmq settings
rabbitmq_default_vhost: "simpleone"
rabbitmq_default_user: "rabbit_user"
rabbitmq_default_pass: "rabbitrandompassword"
## minio settings
# minio temporary directory on host
minio_tmp_dir: "/data/disk/tmp"
# minio data directory on host
minio_data_dir: "/data/disk"
## new sla service settings
# set `true` if new sla deploy needed
new_sla_enabled: true
## kafka settings, set if new_sla_enabled == true
# kafka ui username
# kafka_ui_user: kafkaadmin
# kafka ui password
# kafka_ui_password: kafkastrongpassword
## logging settings
logging_enabled: false
# logging_driver: gelf
# logging_options:
# gelf-address: "udp://logger.host:port"
# tag: "gelf"
## tls certificate settings
# site certificate chain
vault_cert_crt: |
-----BEGIN CERTIFICATE-----
# Ваш сертификат
-----END CERTIFICATE-----
vault_cert_key: |
-----BEGIN PRIVATE KEY-----
# Ваш закрытый ключ сертификата
-----END PRIVATE KEY-----
vault_additional_ca_cert: |
-----BEGIN CERTIFICATE-----
# Ваш сертификат
-----END CERTIFICATE-----
## if you have your own ca, you have to add it here
# vault_additional_ca_cert: |
# -----BEGIN CERTIFICATE-----
# MIIFLjCCBBagAwIBAgITMgAAAAIlvBrC/fKOCwAAAAAAAjANBgkqhkiG9w0BAQsF
# ...
# eJ9w
# -----END CERTIFICATE-----