Skip to content
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

Remove role dependency (geerlingguy.nodejs) #152

Closed
wants to merge 1 commit into from

Conversation

hakamine
Copy link
Member

Remove role dependency and add it to the playbook instead, for the
following reasons:

  • when included as a dependency, the nodejs role is run each time the
    archivematica-src role is executed, which may not be desired (for
    example when just doing an upgrade of Archivematica)
  • by putting explicitly in the playbook, it is more clear what the
    playboook does and also where to do variable fixes when required

Remove role dependency and add it to the playbook instead, for the
following reasons:
- when included as a dependency, the nodejs role is run each time the
  archivematica-src role is executed, which may not be desired (for
  example when just doing an upgrade of Archivematica)
- by putting explicitly in the playbook, it is more clear what the
  playboook does and also where to do variable fixes when required
@hakamine
Copy link
Member Author

Related to #151

@sevein
Copy link
Member

sevein commented Nov 25, 2017

Sorry from which playbook are you installing nodejs now?

@hakamine
Copy link
Member Author

Something like artefactual/deploy-pub#50 can be used (it essentially adds a couple of lines in the requirements.yml file to download the nodejs role, and adds another couple of lines in the playbook to run this role before running the archivematica-src role)

@sevein
Copy link
Member

sevein commented Nov 27, 2017

Hmm ok I see but for some reason it doesn't feel right, don't you think? Shouldn't that stuff be encapsulated in this role somehow? If adding the requirements to meta doesn't work maybe we can vendor it? Would that be possible?

@hakamine
Copy link
Member Author

Hmm, I am starting to understand your point ( initially I was thinking: why only nodejs is included as a role dependency while other roles such as clamav, gearman are in the playbook, now I realize it's a different type of dependency ). However the role dependency in its current state breaks (ref. #151), so we need to fix it somehow.
Before attempting to vendor (put all the nodejs role tasks directly in the archivematica-src role),
I'll see if we can work around this differently.

@hakamine
Copy link
Member Author

Closing this (replaced by #153)

@hakamine hakamine closed this Nov 28, 2017
@hakamine hakamine deleted the dev/remove-role-dep branch November 28, 2017 00:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants