Skip to content

Conversation

@mikedickey
Copy link
Contributor

Thinking this would fix the /opt/splunk/etc permission failures in splunk-ansible

@mikedickey mikedickey merged commit 6b78733 into develop Jun 14, 2019
# Setup users and groups
RUN groupadd -r -g ${GID} ${SPLUNK_GROUP} \
&& useradd -r -m -u ${UID} -g ${GID} ${SPLUNK_USER} \
&& useradd -r -m -u ${UID} -g ${GID} -s /sbin/nologin -d ${SPLUNK_HOME} ${SPLUNK_USER} \
Copy link

@kyanite kyanite Jun 17, 2019

Choose a reason for hiding this comment

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

Change home of splunk user in here will broken internal splunk-orca image.
In my understanding, $SPLUNK_HOME is /opt/splunk, but the user splunk's home is better as /home/splunk

And also this PR broken the splunk-orca in https://git.splunk.com/projects/TOOLS/repos/infra-internal-base-images/browse/splunk-orca/x64_debian_9/Dockerfile

@mikedickey

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It seemed confusing to me to have a "SPLUNK_HOME" which was not the same as the home directory for the user splunk. I assumed this was made different inadvertently by not explicitly specifying a home to useradd. I don't feel strongly about it one way or the other, and am curious to learn benefits of splitting it out.

@nwang92 nwang92 deleted the add-etc-directory-fix-home branch October 29, 2019 21:00
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.

4 participants