Project

General

Profile

Actions

User story #9041

closed

Architecture #9108: Add a capabilities files in rudder agent package

Change system promises to call list-compatible-inputs with capabilities file

Added by Alexis Mousset over 7 years ago. Updated over 7 years ago.

Status:
Released
Priority:
N/A
Category:
System techniques
Target version:
UX impact:
Suggestion strength:
User visibility:
Effort required:
Name check:
Fix check:
Regression:

Description

We will add an optional parameter to list-compatible-inputs to filter by Rudder version. We need to use it in the techniques promises.cf.

We will create a capabilities file in /opt/rudder/etc/agent-capabilities.
The promise.cf will call list-compatible-input and pass this file as a parameter.
list-compatible-input will then know when to load a file or not based on these capabilities.

The new list-compatible-input syntax is

list-compatible-inputs [--capability_file <capability_file_path>] [--cfengine <CFEngine_version>] --ncf_path <ncf_framework_path> [common|local]/<nn_directory> [<nn_directory ...]

Subtasks 1 (0 open1 closed)

User story #9042: Add a dependency on an ncf version with the new list-compatible-inputsReleasedBenoît PECCATTE2016-09-14Actions

Related issues 3 (0 open3 closed)

Related to Rudder - User story #9063: Add support for a rudder_version check in list-compatible-input and policy loadingRejectedActions
Related to Rudder - User story #9105: Add conditions on features in ncf code loadingReleasedAlexis MoussetActions
Related to Rudder - User story #9066: Use agent_requirements parameter in generic methods documentationRejectedAlexis MoussetActions
Actions #1

Updated by Alexis Mousset over 7 years ago

  • Related to User story #9039: Add a static rudder version in rudder agent version added
Actions #2

Updated by Alexis Mousset over 7 years ago

  • Related to User story #9063: Add support for a rudder_version check in list-compatible-input and policy loading added
Actions #3

Updated by Alexis Mousset over 7 years ago

  • Target version changed from 3.2.7 to 3.1.14
Actions #4

Updated by Alexis Mousset over 7 years ago

  • Status changed from New to In progress
  • Assignee set to Alexis Mousset
Actions #5

Updated by Alexis Mousset over 7 years ago

  • Status changed from In progress to Pending technical review
  • Assignee changed from Alexis Mousset to Benoît PECCATTE
  • Pull Request set to https://github.com/Normation/rudder-techniques/pull/1039
Actions #6

Updated by Benoît PECCATTE over 7 years ago

  • Related to deleted (User story #9039: Add a static rudder version in rudder agent version)
Actions #7

Updated by Benoît PECCATTE over 7 years ago

  • Subject changed from Change system promises to call list-compatible-inputs with Rudder version to Change system promises to call list-compatible-inputs with capabilities file
  • Description updated (diff)
  • Status changed from Pending technical review to Discussion
  • Assignee changed from Benoît PECCATTE to Alexis Mousset

We will use a capabilities file instead.

Actions #8

Updated by Benoît PECCATTE over 7 years ago

  • Target version changed from 3.1.14 to 3.2.7
Actions #9

Updated by Benoît PECCATTE over 7 years ago

Actions #10

Updated by Jonathan CLARKE over 7 years ago

The new list-compatible-input syntax is

list-compatible-inputs [--capability_file <capability_file_path>] [--cfengine <CFEngine_version>] --ncf_path <ncf_framework_path> [common|local]/<nn_directory> [<nn_directory ...]

If I may, I suggest renaming "--cfengine" to "--agent-version".

Also, the option names "capability_file", "ncf_path", etc should have dashes not underscores, as is common in all UNIX commands (so capability-file, ncf-path, etc)

Actions #11

Updated by Benoît PECCATTE over 7 years ago

  • Related to User story #9105: Add conditions on features in ncf code loading added
Actions #12

Updated by Benoît PECCATTE over 7 years ago

  • Status changed from Discussion to In progress
  • Assignee changed from Alexis Mousset to Benoît PECCATTE
Actions #13

Updated by Benoît PECCATTE over 7 years ago

  • Status changed from In progress to Pending technical review
  • Assignee changed from Benoît PECCATTE to Alexis Mousset
  • Pull Request changed from https://github.com/Normation/rudder-techniques/pull/1039 to https://github.com/Normation/rudder-techniques/pull/1041
Actions #14

Updated by Benoît PECCATTE over 7 years ago

  • Status changed from Pending technical review to Pending release
  • % Done changed from 0 to 100
Actions #15

Updated by Alexis Mousset over 7 years ago

  • Related to User story #9066: Use agent_requirements parameter in generic methods documentation added
Actions #16

Updated by Vincent MEMBRÉ over 7 years ago

  • Related to deleted (Architecture #9108: Add a capabilities files in rudder agent package)
Actions #17

Updated by Vincent MEMBRÉ over 7 years ago

  • Parent task set to #9108
Actions #18

Updated by Vincent MEMBRÉ over 7 years ago

  • Status changed from Pending release to Released

This bug has been fixed in Rudder and 3.2.8/7 which was released today.

Actions

Also available in: Atom PDF