Does Foreman backup httpd.conf on CentOS before it writes its own?

Installed Foreman on my server. Wasn't entirely expecting it to modify the
httpd.conf, and in my haste I didn't make a recent backup of httpd.conf
before installing Foreman. Does Foreman create a backup of the file? I've
checked the httpd.conf.bak as well as rpmnew and rpmsave, and they were not
modified anytime recently and do not contain the correct content.

Thanks!

I don't believe Foreman modifies httpd.conf directly. I think it probably
just sticks configuration in /etc/httpd/conf.d.

Of course, I could be completely wrong. I can't check right now.

Josh

··· On Tue, Dec 30, 2014 at 2:37 PM, Chris McGroarty wrote:

Installed Foreman on my server. Wasn’t entirely expecting it to modify the
httpd.conf, and in my haste I didn’t make a recent backup of httpd.conf
before installing Foreman. Does Foreman create a backup of the file? I’ve
checked the httpd.conf.bak as well as rpmnew and rpmsave, and they were not
modified anytime recently and do not contain the correct content.

Thanks!


You received this message because you are subscribed to the Google Groups
"Foreman users" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to foreman-users+unsubscribe@googlegroups.com.
To post to this group, send email to foreman-users@googlegroups.com.
Visit this group at http://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.

Foreman-installer does leverage puppet to do all the changes, you should
be able to retrieve your file from filebucket perhaps:

https://docs.puppetlabs.com/references/3.6.2/man/filebucket.html

Just shooting in the dark, I am not sure how exactly this Puppet feature
works.

LZ

··· On Tue, Dec 30, 2014 at 11:37:05AM -0800, Chris McGroarty wrote: > Installed Foreman on my server. Wasn't entirely expecting it to modify the > httpd.conf, and in my haste I didn't make a recent backup of httpd.conf > before installing Foreman. Does Foreman create a backup of the file? I've > checked the httpd.conf.bak as well as rpmnew and rpmsave, and they were not > modified anytime recently and do not contain the correct content. > > Thanks! > > -- > You received this message because you are subscribed to the Google Groups "Foreman users" group. > To unsubscribe from this group and stop receiving emails from it, send an email to foreman-users+unsubscribe@googlegroups.com. > To post to this group, send email to foreman-users@googlegroups.com. > Visit this group at http://groups.google.com/group/foreman-users. > For more options, visit https://groups.google.com/d/optout.


Later,
Lukas #lzap Zapletal

Filebuckting requires a puppet master IIRC, foreman uses puppet apply (masterless puppet), so you're probably out of luck.

··· -- Felix Gilcher Geschäftsführer

m. +49 172 840 88 28

asquera GmbH
Ohlauer Straße 43
D-10999 Berlin

AG Charlottenburg, HRB 140808 B
Geschäftsführung: Felix Gilcher, Florian Gilcher

On 02 Jan 2015, at 12:15, Lukas Zapletal lzap@redhat.com wrote:

Foreman-installer does leverage puppet to do all the changes, you should
be able to retrieve your file from filebucket perhaps:

https://docs.puppetlabs.com/references/3.6.2/man/filebucket.html

Just shooting in the dark, I am not sure how exactly this Puppet feature
works.

LZ

On Tue, Dec 30, 2014 at 11:37:05AM -0800, Chris McGroarty wrote:

Installed Foreman on my server. Wasn’t entirely expecting it to modify the
httpd.conf, and in my haste I didn’t make a recent backup of httpd.conf
before installing Foreman. Does Foreman create a backup of the file? I’ve
checked the httpd.conf.bak as well as rpmnew and rpmsave, and they were not
modified anytime recently and do not contain the correct content.

Thanks!


You received this message because you are subscribed to the Google Groups “Foreman users” group.
To unsubscribe from this group and stop receiving emails from it, send an email to foreman-users+unsubscribe@googlegroups.com.
To post to this group, send email to foreman-users@googlegroups.com.
Visit this group at http://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.


Later,
Lukas #lzap Zapletal


You received this message because you are subscribed to the Google Groups “Foreman users” group.
To unsubscribe from this group and stop receiving emails from it, send an email to foreman-users+unsubscribe@googlegroups.com.
To post to this group, send email to foreman-users@googlegroups.com.
Visit this group at http://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.

It will usually keep a local copy under /var/lib/puppet/clientbucket:

find /var/lib/puppet/clientbucket -name paths -exec grep httpd\.conf {} +

/var/lib/puppet/clientbucket/f/5/e/7/4/4/9/c/f5e7449c0f17bc856e86011cb5d152ba/paths:/etc/httpd/conf/httpd.conf

cat

/var/lib/puppet/clientbucket/f/5/e/7/4/4/9/c/f5e7449c0f17bc856e86011cb5d152ba/contents

··· -- Dominic Cleal Red Hat Engineering

On 02/01/15 11:58, Felix Gilcher wrote:

Filebuckting requires a puppet master IIRC, foreman uses puppet apply (masterless puppet), so you’re probably out of luck.

Felix Gilcher
Geschäftsführer

m. +49 172 840 88 28

asquera GmbH
Ohlauer Straße 43
D-10999 Berlin

AG Charlottenburg, HRB 140808 B
Geschäftsführung: Felix Gilcher, Florian Gilcher

On 02 Jan 2015, at 12:15, Lukas Zapletal lzap@redhat.com wrote:

Foreman-installer does leverage puppet to do all the changes, you should
be able to retrieve your file from filebucket perhaps:

https://docs.puppetlabs.com/references/3.6.2/man/filebucket.html

Just shooting in the dark, I am not sure how exactly this Puppet feature
works.

LZ

On Tue, Dec 30, 2014 at 11:37:05AM -0800, Chris McGroarty wrote:

Installed Foreman on my server. Wasn’t entirely expecting it to modify the
httpd.conf, and in my haste I didn’t make a recent backup of httpd.conf
before installing Foreman. Does Foreman create a backup of the file? I’ve
checked the httpd.conf.bak as well as rpmnew and rpmsave, and they were not
modified anytime recently and do not contain the correct content.

Thanks!


You received this message because you are subscribed to the Google Groups “Foreman users” group.
To unsubscribe from this group and stop receiving emails from it, send an email to foreman-users+unsubscribe@googlegroups.com.
To post to this group, send email to foreman-users@googlegroups.com.
Visit this group at http://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.


Later,
Lukas #lzap Zapletal


You received this message because you are subscribed to the Google Groups “Foreman users” group.
To unsubscribe from this group and stop receiving emails from it, send an email to foreman-users+unsubscribe@googlegroups.com.
To post to this group, send email to foreman-users@googlegroups.com.
Visit this group at http://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.