-
Notifications
You must be signed in to change notification settings - Fork 20
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
Add new manage_ec2_instance role #123
Add new manage_ec2_instance role #123
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since we are here, shouldn't we also provide a playbook for this role?
tests/integration/targets/test_ec2_instance_create/defaults/main.yml
Outdated
Show resolved
Hide resolved
tests/integration/targets/test_ec2_instance_create/tasks/test_ec2_with_igw_sg_eip.yml
Outdated
Show resolved
Hide resolved
roles/ec2_instance_create/tasks/ec2_instance_create_operations.yml
Outdated
Show resolved
Hide resolved
roles/ec2_instance_create/tasks/ec2_instance_create_operations.yml
Outdated
Show resolved
Hide resolved
roles/ec2_instance_create/tasks/ec2_instance_create_operations.yml
Outdated
Show resolved
Hide resolved
roles/ec2_instance_create/README.md
Outdated
|
||
### Role Operation | ||
|
||
* **ec2_instance_create_operation**: (Optional) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be replaced by the instance state with the values: present, running...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I left a comment about this but I disagree, for this use case I think we should stick to create and delete.
roles/ec2_instance_create/tasks/ec2_instance_create_operations.yml
Outdated
Show resolved
Hide resolved
roles/ec2_instance_create_delete/tasks/ec2_instance_delete_operations.yml
Outdated
Show resolved
Hide resolved
roles/ec2_instance_create_delete/tasks/ec2_instance_create_operations.yml
Outdated
Show resolved
Hide resolved
roles/ec2_instance_create_delete/tasks/ec2_instance_create_operations.yml
Outdated
Show resolved
Hide resolved
roles/ec2_instance_create_delete/tasks/ec2_instance_delete_operations.yml
Outdated
Show resolved
Hide resolved
tests/integration/targets/test_ec2_instance_create_delete/tasks/test_ec2_only.yml
Outdated
Show resolved
Hide resolved
d3bbb9f
to
076eade
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a small suggestion, not a requirement. Do you think it would be better to rename the role to something like ec2_instance_management or manage_ec2_instance, or something along those lines?
This adds a new role to create a ec2 instance with customizable configuration.
See: https://issues.redhat.com/browse/ACA-1959