Project

General

Profile

Actions

Bug #3672

closed

Technique "Enforce a file content" v3.2: post-modification hook produce false compliance

Added by François ARMAND almost 11 years ago. Updated almost 6 years ago.

Status:
Rejected
Priority:
N/A
Assignee:
-
Category:
Techniques
Target version:
Severity:
Minor - inconvenience | misleading | easy workaround
UX impact:
User visibility:
Getting started - demo | first install | level 1 Techniques
Effort required:
Priority:
50
Name check:
Fix check:
Regression:

Description

Hello,

Some of my nodes don’t have 100 % Success due to « post-modification hook » which is in « no answer » state.

For exemple :

I use this technique => Enforce a file content (v3.2)
File => Success
Line deletion regular expressions => Success
Line replacement regular expressions => Success
Permission adjustment => Success
Post-modification hook => No answer

My conf :

File to manage
+Section : File
---Patch : /etc/postifx/main.cf
+Section : File content
---Content of the file :
relayhost = [smtp.mondomaine.fr]
smtp_generic_maps = hash:/etc/postfix/generic
myhostname = mail.$(generic_variable_definition.domaine)
mydomain = $(generic_variable_definition.domaine)
myorigin = $mydomain
+Section : Line deletion regular expressions
--- Regular expression : deleteme.*
+Section : Line replacement regular expressions
--- Regular expression : replaceme.*
+Section : Permission adjustment
---Set explicit permissions to apply on the file [X]
---Owner of the file : root
---Group of the file : root
---Permissions to apply on the file : User : RWE / Group : R-E / Other R-E
+Section : Post modification hook
Should the command(s) below be run if any modifications are made on the path above?: [X]
Command : /etc/init.d/postfix restart

Have you got one idea ?! Thanks
PS : Rudder Server Version 2.5.4

Actions

Also available in: Atom PDF