Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Simply look for changes to /etc
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  7 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
bailey86  
View profile  
 More options Jul 27 2012, 7:30 am
From: bailey86 <baile...@gmail.com>
Date: Fri, 27 Jul 2012 04:30:15 -0700 (PDT)
Local: Fri, Jul 27 2012 7:30 am
Subject: Simply look for changes to /etc

I have a simple request.

On a single server I'd like to be able to see changes to any files in /etc.
 This is because other users may carry out changes - and I'd like to
monitor what changes to /etc/ are made by package installs.

(The server is running SLES 11 SP2.  Normally, I'd use etckeeper which is a
simple tool for putting /etc/* files into a local git repository but this
is not available on SLES).

Could anyone point me at how to install puppet on this SLES server and what
commands would be used to see any changes to /etc/* files.  And then maybe
how to add these changes into the current configs so I can see new changes
again.  I'm getting the Pro Puppet book today but though that what I'm
asking for might be relatively simple.

Thanks,

Kevin Bailey


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
jcbollinger  
View profile  
 More options Jul 27 2012, 3:35 pm
From: jcbollinger <John.Bollin...@stJude.org>
Date: Fri, 27 Jul 2012 12:35:35 -0700 (PDT)
Local: Fri, Jul 27 2012 3:35 pm
Subject: Re: Simply look for changes to /etc

On Friday, July 27, 2012 6:30:15 AM UTC-5, bailey86 wrote:

> I have a simple request.

> On a single server I'd like to be able to see changes to any files in
> /etc.  This is because other users may carry out changes - and I'd like to
> monitor what changes to /etc/ are made by package installs.

That's simple to say, but not so simple to do.  Especially so if you want
to track multiple changes over time, notice creation of new files, etc..  
Puppet really isn't designed for that sort of job.  It's aimed at achieving
and maintaining particular system states, not at recording changes in state
over time.

I hadn't heard of etckeeper before, but using git for this sort of thing
sounds particularly apropos.  Although it may not be available pre-packaged
for SLES, the code looks pretty simple.  It shouldn't be hard to package it
up, especially with the Debian packaging available as a guide.

John


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Stuart Cracraft  
View profile  
 More options Jul 28 2012, 2:57 am
From: Stuart Cracraft <smcracr...@me.com>
Date: Fri, 27 Jul 2012 23:57:33 -0700
Local: Sat, Jul 28 2012 2:57 am
Subject: Re: [Puppet Users] Simply look for changes to /etc

Good idea.

Until Puppet has the important production-tracking / security / forensics feature you want, use the "exec" in Puppet and
roll-your-own production-monitoring class.

One idea for implementation follows:

Backup /etc.

Then run the following, outputting it to "A" or "B" at time "t":

  find /etc -exec md5sum {} \; | sort -k 34 | md5sum

At time "t+<n>", rerun the above but output to the other of "A" or "B".

Backup /etc to a separate backup file.

Diff A and B.

If no difference (e.g. diff is empty), no data change (note: does not measure updates/"touches" that don't change data -
for that, diff the successive output of a sorted "find /etc -ls {} \;" as well.)

If difference (diff is non-empty), the files(s) and/or directory that is added, removed, or changed, is shown with the before/after checksums.

Remove the 1st backup. 2nd backup becomes 1st backup for next run to accumulate 2nd backup, etc.

Testing the above with mkdir somedir, touch somedir/somefile, rm somedir/somefile, rmdir somedir
gave predictable md5 hashes returning to the prior state, a decent sign, though not a comprehensive test.

The reason you use find instead of cpio/tar and backup /etc twice is to have a before/after for forensics to find the changed file(s)

--Stuart

On Jul 27, 2012, at 4:30 AM, bailey86 <baile...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
devzero2000  
View profile  
 More options Jul 28 2012, 4:07 am
From: devzero2000 <pinto.e...@gmail.com>
Date: Sat, 28 Jul 2012 10:07:35 +0200
Local: Sat, Jul 28 2012 4:07 am
Subject: Re: [Puppet Users] Simply look for changes to /etc
Sorry for the top posting.

Unless someone want consider that a configuration management system is
also an integrity checker, i no for example, i suggest to use for this
sort of thing a specific tool. There are many, also sophisticated. A
very simple tool is aide, for example, or tripwire.

Best regards

2012/7/27, bailey86 <baile...@gmail.com>:

--
Inviato dal mio dispositivo mobile

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
pdpinfo  
View profile  
 More options Jul 28 2012, 9:40 am
From: pdpinfo <pdp...@tiscali.it>
Date: Sat, 28 Jul 2012 06:40:43 -0700 (PDT)
Local: Sat, Jul 28 2012 9:40 am
Subject: Re: [Puppet Users] Simply look for changes to /etc

Fully agree.

Kevin, you may also consider some system distribution help as, for
example,  "Remote Filesystem Checker".

Needless to say, you must manage legitimate changes, as for updates,
allowing automatic file checksum baseline regeneration after updates.

Regards,

Paolo

Il giorno sabato 28 luglio 2012 10:07:35 UTC+2, yersinia.spiros ha scritto:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jakov Sosic  
View profile  
 More options Jul 28 2012, 9:59 am
From: Jakov Sosic <jso...@srce.hr>
Date: Sat, 28 Jul 2012 15:59:45 +0200
Local: Sat, Jul 28 2012 9:59 am
Subject: Re: [Puppet Users] Simply look for changes to /etc
On 07/27/2012 01:30 PM, bailey86 wrote:

> I have a simple request.

> On a single server I'd like to be able to see changes to any files in
> /etc.  This is because other users may carry out changes - and I'd like
> to monitor what changes to /etc/ are made by package installs.

> (The server is running SLES 11 SP2.  Normally, I'd use etckeeper which
> is a simple tool for putting /etc/* files into a local git repository
> but this is not available on SLES).

> Could anyone point me at how to install puppet on this SLES server and
> what commands would be used to see any changes to /etc/* files.  And
> then maybe how to add these changes into the current configs so I can
> see new changes again.  I'm getting the Pro Puppet book today but though
> that what I'm asking for might be relatively simple.

I would point you at etckeeper, which is designed for this purpose. It
uses distributed VCS as backend, so you can choose between mercurial,
bazaar, git or darcs. I prefer mercurial for this purpose.

You can also write post-commit hooks which will for example send you an
email with list of changed files at every commit, and set up cron that
will autocommit every night. You can also exclude files from versioning.

--
Jakov Sosic
www.srce.unizg.hr


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Bryan Hunt  
View profile  
 More options Jul 29 2012, 6:09 am
From: Bryan Hunt <irishj...@gmail.com>
Date: Sun, 29 Jul 2012 03:09:19 -0700 (PDT)
Local: Sun, Jul 29 2012 6:09 am
Subject: Re: Simply look for changes to /etc

Or you could just mount /etc as NILFS, and let the OS do the work for you.

Am I right in thinking, this is a single server solution?

I wrote a blog post, how to use it on User-Mode Linux instances (linode).

http://blog.binarytemple.co.uk/2012/06/nilfs-versioned-filesystem-on-...

Presumably SLES ships with it packaged; if not, as an install option. Is
that the case?

Regards,

Bryan Hunt


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »