Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use file-based renderer on CLI #2550

Closed
Thomas-Gelf opened this issue Jun 20, 2022 · 0 comments
Closed

Use file-based renderer on CLI #2550

Thomas-Gelf opened this issue Jun 20, 2022 · 0 comments
Assignees
Milestone

Comments

@Thomas-Gelf
Copy link
Contributor

Expected Behavior

icingacli director serviceset show 'MySQL Replication Client Checks'
/** zones.d/director-global/servicesets.conf **/

/**
 * Service Set: MySQL Replication Client Checks
 * 
 * assign where "MySQL Server" in host.templates && host.vars.is_mysql_slave
 */

apply Service "MySQL Slave Lag" {
    import "MySQL Health Check"

    assign where "MySQL Server" in host.templates && host.vars.is_mysql_slave
    vars.mysql_health_mode = "slave-lag"

    import DirectorOverrideTemplate
}

apply Service "MySQL IO Thread" {
    import "MySQL Health Check"

    assign where "MySQL Server" in host.templates && host.vars.is_mysql_slave
    vars.mysql_health_mode = "slave-io-running"

    import DirectorOverrideTemplate
}

apply Service "MySQL SQL Thread" {
    import "MySQL Health Check"

    assign where "MySQL Server" in host.templates && host.vars.is_mysql_slave
    vars.mysql_health_mode = "slave-sql-running"

    import DirectorOverrideTemplate
}

Current Behavior

icingacli director serviceset show 'MySQL Replication Client Checks'
template ServiceSet "MySQL Replication Client Checks" {
    assign where "MySQL Server" in host.templates && host.vars.is_mysql_slave
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant