provisioning/o-klab/wuji/settings.k

59 lines
2.3 KiB
Plaintext
Raw Permalink Normal View History

# Info: KCL Settings for main cluster with provisioning
# Author: JesusPerez jesus@librecloud.online
# Release: 0.0.1
# Date: 7-07-2024
import provisioning
_settings = provisioning.Settings {
main_name = "wuji"
main_title = "Wuji LibreCloud online"
# Settings Data is AUTO Generated, Checked and AUTO Filled during operations taskservs
# Path for Automatic generated setings for VPC, Subnets, SG, etc.
#settings_path = "${provider}_settings.yaml"
#settings_path = "provider_settings.yaml"
# Directory path to collect created infos, taskservs
created_taskservs_dirpath = "tmp/NOW_deployment"
# Directory path to collect created clusters
created_clusters_dirpath = "tmp/NOW_clusters"
# Directory path to collect resources for provisioning
prov_resources_path = "./resources"
# Directory path for local bin on provisioning
prov_local_bin_path = "./bin"
# Settings from servers has priority over these defaults ones, if a value is not set in server item, defaults one will be used instead
#defaults_path = "defs/${provider}_defaults.k"
created_clusters_dirpath = "./tmp/NOW_clusters"
runset = {
# Wait until requested taskserv is completed: true or false
wait = True
# Format for output: human (defaul) | yaml | json
# Server info can be requested with: upclt server show HOSTNAME -o yaml
output_format = "yaml"
# Output path to copy results
output_path = "tmp/NOW"
# Inventory file
inventory_file = "inventory.yaml"
# Use 'time' to get time info for commands if is not empty
use_time = True
}
# Default values can be overwrite by cluster setting
# Cluster clusters admin hosts to connect via SSH
cluster_admin_host = "wuji-cp-0"
#cluster_admin_host: 3.249.232.11
# Cluster clusters admin hosts port to connect via SSH
cluster_admin_port = 22
# Time to wait in seconds for servers for started state and ssh
servers_wait_started = 40
# Cluster clusters admin user connect via SSH
#cluster_admin_user = "root" if provider != "aws" else "admin"
cluster_admin_user = "root"
clusters_save_path = "/${main_name}/clusters"
#clusters_paths = [ "clusters" ]
servers_paths = [ "defs/servers" ]
# Common Clusters clusters definitions, mainly Cluster ones
#clusters = [ "web" ]
clusters_paths = [ "clusters" ]
}
_settings