Ask Your Question
0

removed node from site.pp, but puppet is executed my calss

asked 2016-02-19 05:43:08 -0500

vinothkumardba gravatar image

Hi All,

I'm New to here.

I have a big issue in my puppet settings on my Oracle 11G Production Database.

We have applied oracle JAN patch using puppet last Saturday(13/Feb) after the patch, puppet refreshed our agent for every 30min.Because of that, my database restarted every 30mins as per my class till Monday(15/Feb)

So I have removed my node from site.pp on /etc/puppetlabs/code/environments/production/manifests at PUPPET-MASTER side, also disabled puppet agent on my prod database.

on Tuesday(16/Feb), other team tried changing the Puppet-Master to their server. During the time my Production database went down. I'm not sure what was executed to down my database.

NOTEThe class which I created will execute in the order of "DOWNLOAD A PATCH > STOP DATABASE > APPLY PATCH > START DATABASE "

I can see my PATCH DOWNLOAD time and DATABASE down time is same. It seems, my class has been executed, When other Team tried to change the PUPPET-MASTER name and started the Puppet service,

But, My question is, I have removed my node from /etc/puppetlabs/code/environments/production/manifests/site.pp. Then, How come it went down when other Team tried to change the PUPPET-MASTER name and started the Puppet service

Could you please advice on this?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2016-02-20 03:03:21 -0500

updated 2016-02-20 08:29:57 -0500

I can only take a wild guess because only the other teams can know how your Puppet Master is configured or what changes they made that might have reverted your changes on the Puppet Master.

What I can tell you is that it's quite normal for the code on the Puppet Master to be updated automatically. Conversely, it's generally very bad practice to manually edit the code on the Puppet Master, if that's what you did. It could be that a tool called R10K is automatically updating the code on the Puppet Master, or there could be a CI/CD system like Jenkins or Bamboo that does this.

So if you did make manual changes to the Puppet Master without committing these in the revision control system (usually Git), then your changes would be periodically overwritten, which is what you have apparently observed.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2016-02-19 05:43:08 -0500

Seen: 71 times

Last updated: Feb 20 '16