[prev in list] [next in list] [prev in thread] [next in thread] 

List:       opennms-discuss
Subject:    Re: [opennms-discuss] OpenNMS and Git hooks
From:       Brett Delle Grazie <brett.dellegrazie () gmail ! com>
Date:       2015-07-22 19:16:29
Message-ID: CACLD0=4JUEYACenxxMHiKtWDa__-rhsxiA_Hc5Ss8oVQD=Lw4g () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Hi Andrew,

I'd add one other thing - a git pre-commit hook that does an xmllint
against all XML files.
That will prevent you from committing invalid XML files to the repo by
accident - useful when merging.
There's a generic pre-commit setup available here: http://pre-commit.com/
There are simpler pre-commit hooks available via Google too.

Thanks,

Brett

On 22 July 2015 at 17:27, Keith Spragg <keith@spraggle.co.uk> wrote:

> Hi Andrew,
>
> There's a good tutorial here:
> http://www.opennms.org/wiki/Managing_Configuration_Changes_with_Git
>
> Just note that of you're using Debian, there's a big gotcha if you blindly
> follow the tutorial - see the warning in the wiki article!
>
> K
> On 22 Jul 2015 17:03, "Anthony Moon" <anthony-m@moving-picture.com> wrote:
>
>>  Hey all,
>>
>>
>>
>> I would like to start managing OpenNMS via Git, and I believe I will need
>> to create custom git hooks to do it properly (keeping the repo's in sync
>> automagically).
>>
>>
>>
>> What I would like to achieve is this: have OpenNMS web GUI changes
>> committed automatically and pushed back to the remote repo, and have remote
>> repo commits pushed to the production OpenNMS server (manually).
>>
>>
>>
>> I would like to get some tips on how to achieve this if anyone else is
>> managing OpenNMS in a similar fashion..
>>
>>
>> Thanks!
>>
>>
>>
>>
>> ------------------------------------------------------------------------------
>>
>> _______________________________________________
>> Please read the OpenNMS Mailing List FAQ:
>> http://www.opennms.org/index.php/Mailing_List_FAQ
>>
>> opennms-discuss mailing list
>>
>> To *unsubscribe* or change your subscription options, see the bottom of
>> this page:
>> https://lists.sourceforge.net/lists/listinfo/opennms-discuss
>>
>
>
> ------------------------------------------------------------------------------
>
> _______________________________________________
> Please read the OpenNMS Mailing List FAQ:
> http://www.opennms.org/index.php/Mailing_List_FAQ
>
> opennms-discuss mailing list
>
> To *unsubscribe* or change your subscription options, see the bottom of
> this page:
> https://lists.sourceforge.net/lists/listinfo/opennms-discuss
>



-- 
Kind regards,

Brett Delle Grazie

[Attachment #5 (text/html)]

<div dir="ltr">Hi Andrew,<div><br></div><div>I&#39;d add one other thing - a git \
pre-commit hook that does an xmllint against all XML files.</div><div>That will \
prevent you from committing invalid XML files to the repo by accident - useful when \
merging.</div><div>There&#39;s a generic pre-commit setup available here:  <a \
href="http://pre-commit.com/">http://pre-commit.com/</a></div><div>There are simpler \
pre-commit hooks available via Google \
too.</div><div><br></div><div>Thanks,</div><div><br></div><div>Brett</div></div><div \
class="gmail_extra"><br><div class="gmail_quote">On 22 July 2015 at 17:27, Keith \
Spragg <span dir="ltr">&lt;<a href="mailto:keith@spraggle.co.uk" \
target="_blank">keith@spraggle.co.uk</a>&gt;</span> wrote:<br><blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"><p dir="ltr">Hi Andrew,</p> <p dir="ltr">There&#39;s a good \
tutorial here: <a href="http://www.opennms.org/wiki/Managing_Configuration_Changes_with_Git" \
target="_blank">http://www.opennms.org/wiki/Managing_Configuration_Changes_with_Git</a></p>
 <p dir="ltr">Just note that of you&#39;re using Debian, there&#39;s a big gotcha if \
you blindly follow the tutorial - see the warning in the wiki article!</p> <p \
dir="ltr">K</p> <div class="gmail_quote"><div><div class="h5">On 22 Jul 2015 17:03, \
&quot;Anthony Moon&quot; &lt;<a href="mailto:anthony-m@moving-picture.com" \
target="_blank">anthony-m@moving-picture.com</a>&gt; wrote:<br \
type="attribution"></div></div><blockquote class="gmail_quote" style="margin:0 0 0 \
.8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5">





<div lang="EN-US" link="blue" vlink="purple">
<div>
<p class="MsoNormal">Hey all,<u></u><u></u></p>
<p class="MsoNormal"><u></u>  <u></u></p>
<p class="MsoNormal">I would like to start managing OpenNMS via Git, and I believe I \
will need to create custom git hooks to do it properly (keeping the repo's in sync \
automagically).<u></u><u></u></p> <p class="MsoNormal"><u></u>  <u></u></p>
<p class="MsoNormal">What I would like to achieve is this: have OpenNMS web GUI \
changes committed automatically and pushed back to the remote repo, and have remote \
repo commits pushed to the production OpenNMS server (manually).<u></u><u></u></p> <p \
class="MsoNormal"><u></u>  <u></u></p> <p class="MsoNormal">I would like to get some \
tips on how to achieve this if anyone else is managing OpenNMS in a similar \
fashion..<u></u><u></u></p> <p class="MsoNormal"><br>
Thanks!<u></u><u></u></p>
<p class="MsoNormal"><u></u>  <u></u></p>
</div>
</div>

<br></div></div>------------------------------------------------------------------------------<br>
 <br>_______________________________________________<br>
Please read the OpenNMS Mailing List FAQ:<br>
<a href="http://www.opennms.org/index.php/Mailing_List_FAQ" rel="noreferrer" \
target="_blank">http://www.opennms.org/index.php/Mailing_List_FAQ</a><br> <br>
opennms-discuss mailing list<br>
<br>
To *unsubscribe* or change your subscription options, see the bottom of this \
page:<br> <a href="https://lists.sourceforge.net/lists/listinfo/opennms-discuss" \
rel="noreferrer" target="_blank">https://lists.sourceforge.net/lists/listinfo/opennms-discuss</a><br></blockquote></div>
 <br>------------------------------------------------------------------------------<br>
 <br>_______________________________________________<br>
Please read the OpenNMS Mailing List FAQ:<br>
<a href="http://www.opennms.org/index.php/Mailing_List_FAQ" rel="noreferrer" \
target="_blank">http://www.opennms.org/index.php/Mailing_List_FAQ</a><br> <br>
opennms-discuss mailing list<br>
<br>
To *unsubscribe* or change your subscription options, see the bottom of this \
page:<br> <a href="https://lists.sourceforge.net/lists/listinfo/opennms-discuss" \
rel="noreferrer" target="_blank">https://lists.sourceforge.net/lists/listinfo/opennms-discuss</a><br></blockquote></div><br><br \
clear="all"><div><br></div>-- <br><div class="gmail_signature"><div \
dir="ltr"><div>Kind regards,<br></div><br>Brett Delle Grazie<br></div></div> </div>



------------------------------------------------------------------------------


_______________________________________________
Please read the OpenNMS Mailing List FAQ:
http://www.opennms.org/index.php/Mailing_List_FAQ

opennms-discuss mailing list

To *unsubscribe* or change your subscription options, see the bottom of this page:
https://lists.sourceforge.net/lists/listinfo/opennms-discuss

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic