Puppet Class: wazuh::securityadmin

Defined in:
manifests/securityadmin.pp

Overview

Copyright © 2015, Wazuh Inc. Wazuh repository installation

Parameters:

  • indexer_security_init_lockfile (Any) (defaults to: '/var/tmp/indexer-security-init.lock')
  • indexer_network_host (Any) (defaults to: '127.0.0.1')


3
4
5
6
7
8
9
10
11
12
13
# File 'manifests/securityadmin.pp', line 3

class wazuh::securityadmin (
  $indexer_security_init_lockfile = '/var/tmp/indexer-security-init.lock',
  $indexer_network_host = '127.0.0.1',
) {
  exec { 'Initialize the Opensearch security index in Wazuh indexer':
    path    => ['/usr/bin', '/bin', '/usr/sbin', '/sbin'],
    command => "/usr/share/wazuh-indexer/bin/indexer-security-init.sh -ho ${indexer_network_host} && touch ${indexer_security_init_lockfile}",
    creates => $indexer_security_init_lockfile,
    require => Service['wazuh-indexer'],
  }
}