Defined Type: cassandra::file
- Defined in:
- manifests/file.pp
Overview
A defined type for altering files relative to the configuration directory.
57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 |
# File 'manifests/file.pp', line 57
define cassandra::file (
$file = $title,
$config_path = $cassandra::config_path,
$file_lines = undef,
$service_refresh = true,
) {
include cassandra
include cassandra::params
include stdlib
$path = "${config_path}/${file}"
if $file_lines != undef {
if $service_refresh {
$default_file_line = {
path => $path,
require => Package['cassandra'],
notify => Service['cassandra'],
}
} else {
$default_file_line = {
path => $path,
require => Package['cassandra'],
}
}
create_resources(file_line, $file_lines, $default_file_line)
}
}
|