<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Deploying Custom Splunk Docker Image Ansible Issue in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Deploying-Custom-Splunk-Docker-Image-Ansible-Issue/m-p/488470#M83586</link>
    <description>&lt;P&gt;Never received an answer on building from source, but I found a work around for my need.&lt;/P&gt;

&lt;P&gt;I was trying to STIG a Splunk container, so all I had to do was make a Dockerfile using &lt;CODE&gt;splunk/splunk:latest&lt;/CODE&gt; as the the base image, and copy/run a bash script in there.&lt;/P&gt;</description>
    <pubDate>Mon, 09 Mar 2020 19:28:35 GMT</pubDate>
    <dc:creator>jgonsalves575</dc:creator>
    <dc:date>2020-03-09T19:28:35Z</dc:date>
    <item>
      <title>Deploying Custom Splunk Docker Image Ansible Issue</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Deploying-Custom-Splunk-Docker-Image-Ansible-Issue/m-p/488469#M83585</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;

&lt;P&gt;Right now I'm just trying to deploy a Docker container with Splunk installed from an image built from source (from Splunk's GH page: &lt;A href="https://github.com/splunk/docker-splunk"&gt;https://github.com/splunk/docker-splunk&lt;/A&gt;).  The custom elements will come later, I'm just trying to get the default splunk-centos-7 image to work.&lt;/P&gt;

&lt;P&gt;I'm running inside a Centos 8 VM with Docker installed.  I believe this is a configuration issue, but I can't find anything online mentioning what to do.&lt;/P&gt;

&lt;P&gt;My workflow from inside the cloned repo dir:&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;&lt;P&gt;Make the image (this is straight from the &lt;CODE&gt;master&lt;/CODE&gt; branch)&lt;BR /&gt;
&lt;CODE&gt;sudo make splunk-centos-7&lt;/CODE&gt;&lt;/P&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;This successfully builds the image.  Then, I run (with the proper password):&lt;BR /&gt;
&lt;CODE&gt;sudo docker run -it -p 8000:8000 -e "SPLUNK_PASSWORD=&amp;lt;password&amp;gt;" -e "SPLUNK_START_ARGS=--accept-license" &amp;lt;image ID&amp;gt;&lt;/CODE&gt;&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;This causes entrypoint.sh to eventually run   &lt;CODE&gt;ansible-playbook $ANSIBLE_EXTRA_FLAGS -i inventory/environ.py site.yml&lt;/CODE&gt;&lt;/LI&gt;
&lt;/UL&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;This is where my issue is - I get the error:&lt;BR /&gt;
&lt;CODE&gt;TASK [Provision role] ***********************************************************************************************************************************************************************************************************************&lt;BR /&gt;
[WARNING]: 'splunk' is undefined&lt;/CODE&gt;&lt;/P&gt;&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;I've tried the recommendation at &lt;A href="https://splunk.github.io/splunk-ansible/EXAMPLES.html#provision-local-standalone"&gt;https://splunk.github.io/splunk-ansible/EXAMPLES.html#provision-local-standalone&lt;/A&gt; and running with a &lt;CODE&gt;default.yml&lt;/CODE&gt; file, but I get an Ansible error when including the &lt;CODE&gt;splunk_standalone&lt;/CODE&gt; role.&lt;/P&gt;

&lt;P&gt;It feels like I'm missing some configuration somewhere.  The build succeeds, but trying to run the container fails.  Does anyone have any suggestions?&lt;/P&gt;</description>
      <pubDate>Fri, 06 Mar 2020 18:44:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Deploying-Custom-Splunk-Docker-Image-Ansible-Issue/m-p/488469#M83585</guid>
      <dc:creator>jgonsalves575</dc:creator>
      <dc:date>2020-03-06T18:44:59Z</dc:date>
    </item>
    <item>
      <title>Re: Deploying Custom Splunk Docker Image Ansible Issue</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Deploying-Custom-Splunk-Docker-Image-Ansible-Issue/m-p/488470#M83586</link>
      <description>&lt;P&gt;Never received an answer on building from source, but I found a work around for my need.&lt;/P&gt;

&lt;P&gt;I was trying to STIG a Splunk container, so all I had to do was make a Dockerfile using &lt;CODE&gt;splunk/splunk:latest&lt;/CODE&gt; as the the base image, and copy/run a bash script in there.&lt;/P&gt;</description>
      <pubDate>Mon, 09 Mar 2020 19:28:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Deploying-Custom-Splunk-Docker-Image-Ansible-Issue/m-p/488470#M83586</guid>
      <dc:creator>jgonsalves575</dc:creator>
      <dc:date>2020-03-09T19:28:35Z</dc:date>
    </item>
  </channel>
</rss>

