Project

General

Profile

Bug #19570

Updated by François ARMAND over 3 years ago

We want to normalize system configuration objects so that they all follow the same naming scheme: 

 <pre> 
 Techniques: 
 =========== 
 common             => common (applies on all nodes, be it root, a relay, or a simple node) 
 serverCommon       => server-common (applies on policy servers, same naming scheme than dsc-common) 
 rudderApache       => rudder-service-apache 
 rudderPostgresql => rudder-service-postgresql 
 rudderRelay        => rudder-service-relayd  
 rudderSlapd        => rudder-service-slapd 
 rudderWebapp       => rudder-service-webapp 

 For dsc: 
 dsc-common => ok 

 Directives: 
 =========== 

 - postfix by all if applied to all nodes 
 - each time the directive is specific to a policy server, postfix with its id 
 - commons depend upon the policy server of the node it is applied to, so postfix with "hasPolicyServer-${policyserverid}" 

 inventory/inventory-all 
 common/common-hasPolicyServer-root 
 server-common/server-common-root 
 rudder-service-apache/rudder-service-apache-root 
 rudder-service-postgresql/rudder-service-postgresql-root 
 rudder-service-relayd/rudder-service-relayd-root 
 rudder-service-slapd/rudder-service-slapd-root 
 rudder-service-webapp/rudder-service-webapp-root 

 And for relays: 
 server-common/server-common-$relayid 
 rudder-service-apache/rudder-service-apache-$relayid 
 rudder-service-relayd/rudder-service-relayd-$relayid 

 For DSC: 
 dsc-common/dsc-common-all => ok 

 Groups: 
 ======= 

 - nodeGroupId=all-nodes-with-cfengine-agent => ok 
 - nodeGroupId=all-nodes-with-dsc-agent        => ok 
 - nodeGroupId=hasPolicyServer-root            => ok 
 - ruleTarget=policyServer:root                => ok 

 (and for (et pour les relay, same with $relayid) pareil en remplaçant l'id) 

 Rules: 
 ====== 

 inventory-all 
 - inventory-all 
 * group:all-nodes-with-cfengine-agent 

 hasPolicyServer-root 
 - common-hasPolicyServer-root 
 * group:hasPolicyServer-root 

 root-DP => policy-server-root 
 - server-common-root 
 - rudder-service-apache-root 
 - rudder-service-postgresql-root 
 - rudder-service-relayd-root 
 - rudder-service-slapd-root 
 - rudder-service-webapp-root 
 * policyServer:root 

 policy-server-$relayid 
 - server-common-$relayid 
 - rudder-service-apache-$relayid 
 - rudder-service-relayd-$relayid 
 * policyServer:$relayid 

 DSC (keep it like in 6.2): 

 dsc-agent-all 
 - dsc-common-all 
 * group:all-nodes-with-dsc-agent 

 </pre> 

Back