Puppet Class: presto::client
- Defined in:
- modules/presto/manifests/client.pp
Overview
SPDX-License-Identifier: Apache-2.0 Class: presto::client
Simple class that installs presto-cli package and sets up a config.properties file with the only a discovery.uri to connect to a presto cluster. NOTE: Do not include this class on a node that has presto::server.
Parameters ==
- discovery_uri
-
Presto cluster HTTP discovery URI for presto-cli to connect to.
12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
# File 'modules/presto/manifests/client.pp', line 12
class presto::client(String $discovery_uri = 'http://localhost:8080') {
if defined(Class['::presto::server']) {
fail('Class presto::client and presto::server should not be included on the same node; presto::server will include the presto-cli package itself.')
}
ensure_packages('presto-cli')
presto::properties { 'config':
owner => 'root',
group => 'root',
properties => {
'discovery.uri' => $discovery_uri,
}
}
}
|