Skip to content

CFD - move 'create.yml' and 'destroy.yml' into collection? #42

Open
@beargiles

Description

Simple "call for discussion" - the current approach creates the molecule directory and the implementation of 'create.yml' and 'destroy.yml' playbooks. That would be fine if we never fixed bugs, added functionality, etc. But that's not the real world - and it's a pain to update existing code.

One possible solution is to move the 'create.yml' and 'destroy.yml' playbooks. The templating would still create the 'create.yml' and 'destroy.yml' files but they would be shells that immediately call the corresponding playbooks in the collection. The templating would also add 'collections.yml'.

(If molecule can't handle collections we could use a traditional role, although the code won't be as clean.)

The templated 'create.yml' and 'destroy.yml' files could still perform some initial sanity checks, e.g., verifying that values are non-null. That would mostly be documentation since the playbooks in the collection should still perform the same checks.

Implementation notes:

I think the 'collection' infrastructure can use the same repo. We would need to add a few new files and directories but not change anything other that what I mentioned above.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    ec2Amazon EC2

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions