Split remote execution commands and configuration management commands
Nobody has claimed this yet.
- Dominant language
- Perl
- Stars
- 737
- Forks
- 214
- PR merge metrics
- No merged PRs in 30d
Description
We need to split remote execution commands (functions that doesn't describe a state [ex.: is_file(), free(), ...]) and configuration management commands (functions that describe a state [ex.: file(), service(), pkg(), ...]) into different namespaces.
- Execution functions: Rex::Commands::*
- Config-Management functions: Rex::Resource::*
This has the advantage that it is clear which functions are idempotent and which are not. And we can define meta parameters like on_change, subscribe_to, only_if, ... to all resources.
This step need special attention, because we have to maintain backward compatibility.
Since 0.53 there is a new function calles resource(). With this function it is possible to create new resources. All the resources that are created with this function will have the mentioned meta parameters and can trigger events like "created", "changed" or "removed".
All the resources (rex basic ones, and custom ones) will be also visible in the reporting. And example resource can be found here: http://bit.ly/ZoGe5N)
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing the existing remote execution and configuration-management functions, including resource(), and how they are exposed through Rex::Commands::* and Rex::Resource::*. Review backward-compatibility requirements, resource meta parameters, event handling, and reporting. Done means the namespaces are separated while existing usage remains compatible.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- perl
- Domain
- devops
- Issue type
- Refactor
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100