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

Set up the cyhy user and group using an Ansible role at AMI build time #545

Open
mcdonnnj opened this issue Oct 21, 2022 · 1 comment · Fixed by #640
Open

Set up the cyhy user and group using an Ansible role at AMI build time #545

mcdonnnj opened this issue Oct 21, 2022 · 1 comment · Fixed by #640
Labels
improvement This issue or pull request will add or improve functionality, maintainability, or ease of use

Comments

@mcdonnnj
Copy link
Member

🚀 Feature Proposal

We should switch to setting up the cyhy user and group as part of the AMI build with Packer.

Motivation

Currently we set up the cyhy user and group using cloud-init. We should switch to creating this user as one of the first steps in the AMI build process since it is used throughout the configuration of these images.

Pitch

This aligns the AMIs built in this configuration more closely with the ones in the COOL system. It will also allow us to correctly set ownership of files created in later Ansible roles as needed.

Implementation notes

This will require a new Ansible role (something like ansible-role-cyhy-user). We will also need to implement adding the SSH public key as part of that role as it is also set up by cloud-init.

@mcdonnnj mcdonnnj added the improvement This issue or pull request will add or improve functionality, maintainability, or ease of use label Oct 21, 2022
@mcdonnnj mcdonnnj linked a pull request Mar 31, 2023 that will close this issue
6 tasks
@mcdonnnj mcdonnnj reopened this Mar 31, 2023
@mcdonnnj
Copy link
Member Author

The user is now created at AMI build time but we should still move the functionality into an Ansible role.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
improvement This issue or pull request will add or improve functionality, maintainability, or ease of use
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant