control-repo/site-modules/profile/manifests/manifests/consul/server.pp
2020-10-02 17:25:40 +02:00

19 lines
421 B
Puppet

class profile::consul::server {
package { 'unzip':
ensure => latest,
}
class { '::consul':
version => '1.6.0',
config_hash => {
'bootstrap_expect' => 3,
'data_dir' => '/opt/consul',
'datacenter' => 'NTNU',
'log_level' => 'INFO',
'node_name' => $facts['hostname'],
'server' => true,
'retry_join' => [ $::serverip ],
},
require => Package['unzip'],
}
}