Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix lint issues #4

Merged
merged 1 commit into from
Mar 21, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions REFERENCE.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,15 +91,15 @@ Default value: `$opensearch::params::package_architecture`

##### <a name="package_provider"></a>`package_provider`

Data type: `Optional[Enum['dpkg', 'rpm']]`
Data type: `Enum['dpkg', 'rpm']`

The provider for the package to be used to install the package.

Default value: `$opensearch::params::package_provider`

##### <a name="package_directory"></a>`package_directory`

Data type: `Optional[Stdlib::Absolutepath]`
Data type: `Stdlib::Absolutepath`

The directory to install the package. Only used for package_install_method = 'archive'.

Expand Down
4 changes: 2 additions & 2 deletions manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@
Enum['archive', 'package', 'repository'] $package_install_method = 'package',
Enum['present', 'absent'] $package_ensure = 'present',
Enum['x64', 'arm64'] $package_architecture = $opensearch::params::package_architecture,
Optional[Enum['dpkg', 'rpm']] $package_provider = $opensearch::params::package_provider,
Optional[Stdlib::Absolutepath] $package_directory = '/opt/opensearch',
Enum['dpkg', 'rpm'] $package_provider = $opensearch::params::package_provider,
Stdlib::Absolutepath $package_directory = '/opt/opensearch',

##
## opensearch settings
Expand Down
30 changes: 26 additions & 4 deletions manifests/params.pp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@
$default_settings = {
'cluster.name' => 'opensearch',
'cluster.initial_cluster_manager_nodes' => $facts['networking']['hostname'],
'discovery.seed_hosts' => [ '127.0.0.1', ],
'discovery.seed_hosts' => [
'127.0.0.1',
],
'gateway.recover_after_nodes' => 0,
'http.port' => 9200,
'network.host' => '127.0.0.1',
Expand All @@ -29,11 +31,16 @@
'plugins.security.allow_default_init_securityindex' => true,
'plugins.security.allow_unsafe_democertificates' => true,
'plugins.security.audit.type' => 'internal_opensearch',
'plugins.security.authcz.admin_dn' => [ 'CN=kirk,OU=client,O=client,L=test, C=de', ],
'plugins.security.authcz.admin_dn' => [
'CN=kirk,OU=client,O=client,L=test, C=de',
],
'plugins.security.check_snapshot_restore_write_privileges' => true,
'plugins.security.disabled' => false,
'plugins.security.enable_snapshot_restore_privilege' => true,
'plugins.security.restapi.roles_enabled' => [ 'all_access', 'security_rest_api_access', ],
'plugins.security.restapi.roles_enabled' => [
'all_access',
'security_rest_api_access',
],
'plugins.security.ssl.http.enabled' => true,
'plugins.security.ssl.http.pemcert_filepath' => 'esnode.pem',
'plugins.security.ssl.http.pemkey_filepath' => 'esnode-key.pem',
Expand All @@ -43,6 +50,21 @@
'plugins.security.ssl.transport.pemkey_filepath' => 'esnode-key.pem',
'plugins.security.ssl.transport.pemtrustedcas_filepath' => 'root-ca.pem',
'plugins.security.system_indices.enabled' => true,
'plugins.security.system_indices.indices' => [ '.plugins-ml-model', '.plugins-ml-task', '.opendistro-alerting-config', '.opendistro-alerting-alert*', '.opendistro-anomaly-results*', '.opendistro-anomaly-detector*', '.opendistro-anomaly-checkpoints', '.opendistro-anomaly-detection-state', '.opendistro-reports-*', '.opensearch-notifications-*', '.opensearch-notebooks', '.opensearch-observability', '.opendistro-asynchronous-search-response*', '.replication-metadata-store', ],
'plugins.security.system_indices.indices' => [
'.plugins-ml-model',
'.plugins-ml-task',
'.opendistro-alerting-config',
'.opendistro-alerting-alert*',
'.opendistro-anomaly-results*',
'.opendistro-anomaly-detector*',
'.opendistro-anomaly-checkpoints',
'.opendistro-anomaly-detection-state',
'.opendistro-reports-*',
'.opensearch-notifications-*',
'.opensearch-notebooks',
'.opensearch-observability',
'.opendistro-asynchronous-search-response*',
'.replication-metadata-store',
],
}
}