8572931afe
* Moves magic check and service constants into shared structs package. * Removes the "consul" service from local state. Since this service is added by the leader, it doesn't really make sense to also keep it in local state (which requires special ACLs to configure), and requires a bunch of special cases in the local state logic. This requires fewer special cases and makes ACL bootstrapping cleaner. * Makes coordinate update ACL log message a warning, similar to other AE warnings. * Adds much more detailed examples for bootstrapping ACLs. This can hopefully replace https://gist.github.com/slackpad/d89ce0e1cc0802c3c4f2d84932fa3234.
22 lines
618 B
Go
22 lines
618 B
Go
package structs
|
|
|
|
import (
|
|
"github.com/hashicorp/consul/types"
|
|
)
|
|
|
|
// These are used to manage the built-in "serfHealth" check that's attached
|
|
// to every node in the catalog.
|
|
const (
|
|
SerfCheckID types.CheckID = "serfHealth"
|
|
SerfCheckName = "Serf Health Status"
|
|
SerfCheckAliveOutput = "Agent alive and reachable"
|
|
SerfCheckFailedOutput = "Agent not live or unreachable"
|
|
)
|
|
|
|
// These are used to manage the "consul" service that's attached to every Consul
|
|
// server node in the catalog.
|
|
const (
|
|
ConsulServiceID = "consul"
|
|
ConsulServiceName = "consul"
|
|
)
|