Project

General

Profile

Actions

Bug #19570

closed

Architecture #19037: Refactor the system techniques by component

Normalize system technique, directive, rule names

Added by François ARMAND over 3 years ago. Updated about 3 years ago.

Status:
Released
Priority:
N/A
Category:
System techniques
Target version:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
0
Name check:
To do
Fix check:
To do
Regression:

Description

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

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 relay, same with $relayid)

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


Subtasks 4 (0 open4 closed)

Bug #19572: Rename system techniques according to normalized schemeReleasedFélix DALLIDETActions
Bug #19575: Update initial promises generationReleasedFélix DALLIDETActions
Bug #19580: Bad name for common in initial promisesReleasedAlexis MoussetActions
Bug #19582: Missing input lists in initial promisesReleasedFélix DALLIDETActions
Actions

Also available in: Atom PDF