LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 11-21-2019, 07:18 AM   #1
sbutt
LQ Newbie
 
Registered: Sep 2012
Posts: 5

Rep: Reputation: Disabled
puppet agent and ip forwarding settings in /etc/sysctl.conf


Hi all,

We have an issue with the http connectivity, which has to do with docker and the ip forwarding settings in /etc/sysctl.conf. When we set:
net.ipv4.ip_forward=1

then we do:
systemctl restart networking
systemctl restart docker

Then everything works – but some process on the linux ubuntu box writes the change back and breaks it again.

e.g.: at 10:57 I changed it to ip_forward=1, and at 11:42 I can see the file sysctl.conf has been overwritten by something….. and running ‘sysctl net.ipv4.conf.all.forwarding’ shows it set back to 0.

Later we further investigated and found out:
It is the puppet agent that rewrites the sysctl.conf back to some preset defaults.

How do we go about overriding this permanently?

Is there any other option than to disable the puppet agent?

Thanks.
 
Old 11-21-2019, 07:42 AM   #2
MadeInGermany
Senior Member
 
Registered: Dec 2011
Location: Simplicity
Posts: 2,794

Rep: Reputation: 1201Reputation: 1201Reputation: 1201Reputation: 1201Reputation: 1201Reputation: 1201Reputation: 1201Reputation: 1201Reputation: 1201
Change it in (or delete it from) the respective puppet configuration.
The puppet config is typically on the puppet server (puppet v3: /var/lib/hiera/).
Find your puppet server in /etc/puppet/puppet.conf
 
Old 11-21-2019, 08:02 AM   #3
sbutt
LQ Newbie
 
Registered: Sep 2012
Posts: 5

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by MadeInGermany View Post
Change it in (or delete it from) the respective puppet configuration.
The puppet config is typically on the puppet server (puppet v3: /var/lib/hiera/).
Find your puppet server in /etc/puppet/puppet.conf
Unfortunately, can't influence the puppet server easily.
Is there any way, we can locally on our machine (where puppet agent is) change something that can stop this behavior?

Thanks
 
Old 11-21-2019, 11:01 AM   #4
MadeInGermany
Senior Member
 
Registered: Dec 2011
Location: Simplicity
Posts: 2,794

Rep: Reputation: 1201Reputation: 1201Reputation: 1201Reputation: 1201Reputation: 1201Reputation: 1201Reputation: 1201Reputation: 1201Reputation: 1201
You can entirely turn off the puppet agent. Either by disabling the puppet service, or by disabling the "puppet agent" cron job.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Puppet agent gives 500 error access denied using master/agent model AlanRaczek CentOS 3 03-21-2019 07:16 AM
SELinux to allow puppet-server at https://puppet-server:8140 sndlt Linux - Security 8 05-04-2015 01:12 PM
puppet --version bash: puppet: command not found don boyage Linux - Server 1 12-04-2014 10:44 AM
Parameter to execute shell script on puppet client through Puppet server niraj.kumar Linux - Server 3 02-08-2011 09:01 PM
/etc/hosts, /etc/resolve.conf and /etc/host.conf config probs below_average Linux - Networking 1 12-08-2004 10:07 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 10:14 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration