-
-
Notifications
You must be signed in to change notification settings - Fork 4
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
Add initial_admin_password parameter #51
base: master
Are you sure you want to change the base?
Conversation
9f02740
to
495016a
Compare
495016a
to
1ab7cb0
Compare
@@ -116,6 +118,7 @@ | |||
Enum['x64', 'arm64'] $package_architecture, | |||
Enum['dpkg', 'rpm'] $package_provider, | |||
Hash $default_settings, | |||
String[1] $initial_admin_password, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it probably makes sense to support Sensitive
here?
@@ -61,9 +61,15 @@ | |||
} | |||
} | |||
|
|||
exec { 'set_initial_password_environment': | |||
path => $facts['path'], | |||
command => "env OPENSEARCH_INITIAL_ADMIN_PASSWORD=${opensearch::initial_admin_password}", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This won't work as it's only valid for the exec
:)
Attempting to cope with the |
Latest opensearch requires an initial password set via environment variable.
See also: https://opensearch.org/docs/latest/install-and-configure/install-opensearch/debian/#step-1-download-and-install-opensearch