101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
|
# File 'manifests/init.pp', line 101
class etcd (
Array[String] $package_names = ['etcd'],
Variant[Hash, String] $config = {
'name' => $facts['networking']['fqdn'],
'data-dir' => '/var/lib/etcd',
}, # Set empty to not manage config
Stdlib::Unixpath $config_dir = '/etc/etcd',
String $config_file = 'config.yaml',
Boolean $manage_config_dir = ($config_dir != '/etc'),
Boolean $purge_config_dir = $manage_config_dir,
Boolean $manage_service = true,
String $service_name = 'etcd',
Hash[String, String] $etcdctl_env = {},
Boolean $manage_etcdctl_profile = true,
Boolean $auth = false,
Hash[String, Hash] $roles = {},
Boolean $purge_roles = true,
Hash[String, Hash] $role_permissions = {},
Boolean $purge_role_permissions = true,
Hash[String, Hash] $users = {},
Boolean $purge_users = true,
Boolean $snapshot = false,
Stdlib::Unixpath $snapshot_path = '/var/lib/etcd/snapshot.db',
String $snapshot_oncalendar = '*-*-* 00:00:00',
) {
contain etcd::install
contain etcd::config
contain etcd::service
contain etcd::auth
contain etcd::snapshot
Class['etcd::install']
-> Class['etcd::config']
-> Class['etcd::service']
-> Class['etcd::auth']
-> Class['etcd::snapshot']
}
|