Skip to content
This repository has been archived by the owner on Jan 24, 2024. It is now read-only.

Added Efs #53

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Added Efs #53

wants to merge 4 commits into from

Conversation

hoffbeam
Copy link

There is an issue in 2.3.0 of ansible which will not create the name of the efs volume. This has been fixed in 2.4.0. The volume will be created with the correct tags, just will have no name

@simplesteph
Copy link
Contributor

@hoffbeam thanks for the PR !
This should be in the custom/ directory as this doesn't add anything related to other modules and is not "standard". from the custom module, you extract the variable and we you can reference it in the boot command.
Regarding 2.4.0 you need to update the dockerfile

So:

  • move to custom
  • add the capability to reference custom playbooks in infrastructure (see what was done for service)
  • update docker base image

Copy link
Contributor

@simplesteph simplesteph left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

see comments

@@ -8,6 +8,7 @@
- /usr/bin/easy_install pip
- /usr/local/bin/pip install --upgrade boto3 boto awscli requests psutil {{ asg_additional_python_pip_packages }}
{{ asg_additional_user_data_bootcmd }}
{{ _efs_additional_bootcmd }}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

efs is not a core module, therefore core modules shouldn't be changed. Instead, leverage the already available asg_additional_user_data_bootcmd in your playbook

@@ -167,6 +167,24 @@ asg_launch_config_key_name: ""
asg_launch_config_instance_profile_name: ""
```

### EFS
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is not a core module and therefore documentation should be in the custom-instrastructure folder.

@@ -41,3 +41,14 @@ asg_additional_security_groups: "{{ asg_additional_security_groups_env | default


ecs_cluster_name: "{{ cluster_name }}"


efs_commands: "sudo mount -t nfs4 -o nfsvers=4.1,rsize=1048576,wsize=1048576,hard,timeo=600,retrans=2 $(curl -s http://169.254.169.254/latest/meta-data/placement/availability-zone){{ efs_instance.efs.mount_point }} data"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this should go in the readme you will create in custom-infrastructure. This is not a core module so the examples shouldn't include extra modules

@@ -0,0 +1,22 @@
---

### This is used to create efs
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this has to go under your files/efs.yml

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we don't use "defaults" for custom modules

@@ -0,0 +1,9 @@
---
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think this is needed now is it?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants