[ 
https://issues.apache.org/jira/browse/METRON-78?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15278675#comment-15278675
 ] 

John Stone commented on METRON-78:
----------------------------------

Had a conversation about this ticket on the dev@ mailing list yesterday. Sounds 
like we want Ansible to be able to call Maven to build Metron (i.e. another 
task in metron_install). So I'm clicking around existing tasks to look for a 
pattern I can mimic. I've clicked through a chunk of them and I've mostly seen 
pre-built binaries pulled from repos/urls/local (using yum/get_url/copy). I did 
find a few tasks (ex. bro-plugin-kafka) that'll compile the code on the remote 
node, but no running commands locally yet. So just throwing out a few patterns 
off the top of my head here and see which one you might like and then I can 
iterate on...

1. Use ansible "copy" to copy the local source code to the node and build 
there. 

2. Or ansible "git" to clone the code (instead of "copy")... but still build 
remotely. 

3. Use the build server to build the code and expose it via yum, github 
get_url, maven artifact, etc.

4. Use ansible "Local Playbooks" to build locally via ansible "command"...
(http://docs.ansible.com/ansible/playbooks_delegation.html#local-playbooks)

Local Playbooks looks interesting, because appears to just be a playbook that 
runs locally. Which means it's kinda similar to #1 or #2, just without the 
copy/git-clone... and it means we could add other things eventually, like 
installing maven and other dependencies if needed, but maybe that would creep 
people out if we were installing a particular JDK on their local machine if it 
wasn't inside something like vagrant. 

For the "Getting Started" or "Deploy Metron" people (and not the developer 
people), the #3 option seems nice, where the build server is exposing binaries 
for Ansible just to consume.... And technically, option #1 & #2 are really just 
acting like build servers.

Thoughts?

> Add auto-build option to Metron Deployment Scripts
> --------------------------------------------------
>
>                 Key: METRON-78
>                 URL: https://issues.apache.org/jira/browse/METRON-78
>             Project: Metron
>          Issue Type: New Feature
>            Reporter: David M. Lyle
>            Priority: Minor
>              Labels: deployment, easyfix, newbie
>
> Metron deploy fails after Hadoop installation if mvn package has not been run 
> in metron-streaming prior to deployment.
> Add an option to automatically build at the beginning of metron_install.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to