New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Components should be aliasable #112

Closed
jrha opened this Issue Sep 30, 2013 · 2 comments

Comments

3 participants
@jrha
Copy link
Member

jrha commented Sep 30, 2013

As discussed at the workshop, several of the general purpose components (filecopy, symlink, dirperm) end up touching many different areas in a configured system.

When testing and debugging production systems it would be helpful to be able to seperate (for example) operating system configuration from application configuration.

The discussion settled on the ability to alias components by way of an extra configuration option, for example:

'/software/components/filecopy-unicorns/component-module' = 'filecopy';

This would also help alieviate dependency tangling caused by different use-cases require conflicting pre/post dependencies.

@ghost ghost assigned piojo Sep 30, 2013

@jouvin

This comment has been minimized.

Copy link
Contributor

jouvin commented Sep 30, 2013

Just for the record, a description of use case/workflow discussed during the workshop:

  • Split component configuration into 2 different parts/subtree, e.g. /software/components/filecopy and /software/components/filecopy-unicorns
  • Bind /software/components/filecopy-unicorns to type_filecopy
  • Define a component alias name in /software/components/filecopy-unicorns saying it will use component filecopy to execute the action
    • New field in deps structure or the proposal mentionned by James. Optional to ensure backward compatibility.

Another possible use of this new feature will be to split the part of the configuration that can be implemented at any run of ncm-ncd and the part that is restricted by some local policy implemented through a ncm-ncd hook.

  • e.g. filter out filecopy-unicorns in run-init hook
@piojo

This comment has been minimized.

Copy link
Member

piojo commented Mar 28, 2014

This is fixed by the above PR.

@piojo piojo closed this Mar 28, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment