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

Added support for splunk.secret to be passed as a variable #51

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

chrisbalmer
Copy link

This is a PR to resolve issue #50

Added a new task to setup the splunk.secret file as a template if the splunk_secret_text variable is set. I also included an example script to generate a new secret to store in a secret vault using the Splunk UF docker image.

@mason-splunk mason-splunk changed the title Added ssupport for splunk.secret to be passed as a variable Added support for splunk.secret to be passed as a variable Mar 16, 2021
roles/splunk/defaults/main.yml Outdated Show resolved Hide resolved
scripts/generate-secrets.sh Outdated Show resolved Hide resolved
roles/splunk/tasks/configure_splunk_secret.yml Outdated Show resolved Hide resolved
Copy link
Contributor

@mason-splunk mason-splunk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Almost there, but is defined in the when only checks if the variable is actually defined anywhere with a value. Since we are setting a default value with the string value "undefined" in defaults/main.yml, this will always evaluate to true with your current conditionals.

roles/splunk/tasks/configure_splunk_secret.yml Outdated Show resolved Hide resolved
roles/splunk/tasks/configure_splunk_secret.yml Outdated Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants