Open surajbora1 opened 4 years ago
The dependencies to the augeasproviders module are soft, you don't need to install them all if you don't want to.
my hiera use case:
modules/profile/manifests/sysctl.pp:
class profile::sysctl (
$entries = {},
) {
create_resources('sysctl', $entries)
}
in the role yaml:
classes:
- profile::sysctl
profile::sysctl::entries:
net.ipv4.tcp_rmem:
value: 4096 87380 16777216
net.ipv4.tcp_wmem:
value: 4096 65536 16777216
net.core.rmem_max:
value: 16777216
The augeasproviders
modules has augeasproviders::instances
for that:
You'll just need to use the augeasproviders::instances::sysctl_hash
key in hiera.
I would like to set multiple sysctl values using hiera, I have checked augeasproviders module, but it has dependencies on multiple module and my requirement is only sysctl. Is there any best way to to set sysctl values using hiera using augeasproviders_sysctl.