Module: INFRA


    Pigsty will set up these components for you on infra nodes. You can expose them to the outside world by configuring the parameter.


    • : Install Pigsty on current node in one-pass
    • infra.yml : Init pigsty infrastructure on infra nodes
    • : Remove infrastructure components from infra nodes


    API Reference for module:

    • CA: self-signed CA
    • : Portals and identity
    • REPO: local yum repo
    • : packages to be installed
    • NGINX : nginx web server
    • : dnsmasq nameserver
    • PROMETHEUS : prometheus, alertmanager, pushgateway & blackbox_exporter
    • : Loki, the logging server
    ParameterSectionTypeLevelComment
    versionstringGpigsty version string
    admin_ipipGadmin node ip address
    regionenumGupstream mirror region: default,china,europe
    proxy_envdictGglobal proxy env when downloading packages
    ca_methodenumGcreate,recreate,copy, create by default
    ca_cnstringGca common name, fixed as pigsty-ca
    cert_validityintervalGcert validity, 20 years by default
    infra_seqintIinfra node identity, REQUIRED
    infra_portaldictGinfra services exposed via portal
    repo_enabledboolG/Icreate a yum repo on this infra node?
    repo_homepathGrepo home dir, /www by default
    repo_namestringGrepo name, pigsty by default
    repo_endpointurlGaccess point to this repo by domain or ip:port
    repo_removeboolG/Aremove existing upstream repo
    repo_upstreamupstream[]Gwhere to download upstream packages
    repo_packagesstring[]Gwhich packages to be included
    repo_url_packagesstring[]Gextra packages from url
    infra_packagesstring[]Gpackages to be installed on infra nodes
    infra_packages_pipstringGpip installed packages for infra nodes
    nginx_enabledboolG/Ienable nginx on this infra node?
    nginx_sslmodeenumGnginx ssl mode? disable,enable,enforce
    nginx_homepathGnginx content dir, /www by default
    nginx_portportGnginx listen port, 80 by default
    nginx_ssl_portportGnginx ssl listen port, 443 by default
    nginx_navbarindex[]Gnginx index page navigation links
    dns_enabledboolG/Isetup dnsmasq on this infra node?
    dns_portportGdns server listen port, 53 by default
    dns_recordsstring[]Gdynamic dns records resolved by dnsmasq
    prometheus_enabledboolG/Ienable prometheus on this infra node?
    prometheus_cleanboolG/Aclean prometheus data during init?
    prometheus_datapathGprometheus data dir, by default
    prometheus_sd_intervalintervalGprometheus target refresh interval, 5s by default
    prometheus_scrape_intervalintervalGprometheus scrape & eval interval, 10s by default
    prometheus_scrape_timeoutintervalGprometheus global scrape timeout, 8s by default
    prometheus_optionsargGprometheus extra server options
    pushgateway_enabledboolG/Isetup pushgateway on this infra node?
    pushgateway_optionsargGpushgateway extra server options
    blackbox_enabledboolG/Isetup blackbox_exporter on this infra node?
    blackbox_optionsargGblackbox_exporter extra server options
    alertmanager_enabledboolG/Isetup alertmanager on this infra node?
    alertmanager_optionsargGalertmanager extra server options
    exporter_metrics_pathpathGexporter metric path, /metrics by default
    exporter_installenumGhow to install exporter? none,yum,binary
    exporter_repo_urlurlGexporter repo file url if install exporter via yum
    grafana_enabledboolG/Ienable grafana on this infra node?
    grafana_cleanboolG/Aclean grafana data during init?
    grafana_admin_usernameusernameGgrafana admin username, admin by default
    grafana_admin_passwordpasswordGgrafana admin password, by default
    grafana_plugin_cachepathGpath to grafana plugins cache tarball
    grafana_plugin_liststring[]Ggrafana plugins to be downloaded with grafana-cli
    loki_enabledboolG/Ienable loki on this infra node?
    loki_cleanboolG/Awhether remove existing loki data?
    loki_datapathGloki data dir, /data/loki by default
    loki_retentionintervalGloki log retention period, 15d by default

    Last modified 2023-02-27: add v2.0 images and docs (5b09f12)