http_conn_validator
: Verify that a connection can be successfully established between a node and an HTTP server. Its primary use is as a precondition to preventtcp_conn_validator
: Verify that a TCP connection can be successfully established between a node and the expected host. Its primary use is as a precondition to p
Verify that a connection can be successfully established between a node and an HTTP server. Its primary use is as a precondition to prevent configuration changes from being applied if the HTTP server cannot be reached, but it could potentially be used for other purposes such as monitoring.
The following properties are available in the http_conn_validator
type.
Valid values: present
, absent
The basic property that the resource should be in.
Default value: present
The following parameters are available in the http_conn_validator
type.
The HTTP status code that should be expected; defaults to 200.
Default value: 200
An array containing DNS names or IP addresses of the host where the expected service should be running.
namevar
An arbitrary name used as the identity of the resource.
The port that the server should be listening on.
The specific backend to use for this http_conn_validator
resource. You will seldom need to specify this --- Puppet
will usually discover the appropriate provider for your platform.
URL to use for testing if the HTTP server is up
Default value: /
The max number of seconds that the validator should wait before giving up and deciding that the service is not running; defaults to 60 seconds.
Default value: 60
The time to sleep in seconds between 'tries'.
Default value: 1
Whether the connection will be attemped using https
Default value: false
Whether to verify the peer credentials, if possible. Verification will not take place if the CA certificate is missing
Default value: true
Verify that a TCP connection can be successfully established between a node and the expected host. Its primary use is as a precondition to prevent configuration changes from being applied if the host cannot be reached, but it could potentially be used for other purposes such as monitoring.
The following properties are available in the tcp_conn_validator
type.
Valid values: present
, absent
The basic property that the resource should be in.
Default value: present
The following parameters are available in the tcp_conn_validator
type.
An array containing DNS names or IP addresses of the host where the expected service should be running.
namevar
An arbitrary name used as the identity of the resource.
The port that the server should be listening on.
The specific backend to use for this tcp_conn_validator
resource. You will seldom need to specify this --- Puppet will
usually discover the appropriate provider for your platform.
The max number of seconds that the validator should wait before giving up and deciding that the service is not running; defaults to 60 seconds.
Default value: 60
The time to sleep in seconds between 'tries'.
Default value: 1