-
Notifications
You must be signed in to change notification settings - Fork 0
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
First commits #3
base: develop
Are you sure you want to change the base?
Conversation
d05d1b6
to
8e8ea9a
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.
Strong work!
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 all looks great, aside from the minor things I noted, but before I approve this, I'd really like to see the "Testing" section mention that you successfully used this role to install the Admiral somewhere and that it functioned as expected.
Functions as expected! |
@king-alexander - Reminder to turn on the branch protections before or after you merge this one (or ask me to do it, if you lack the necessary permissions). |
files/docker-compose-dev.yml
Outdated
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 don't know that this file belongs in this project. In a deployment there is no reason for the Admiral source code to be on the instance. Any development work would involve pulling down a built Docker image with the changes being worked on and that would be done using the appropriate tag from Docker Hub.
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.
Removed in b390329.
You bring up a good point. The development configuration exposes a bash shell which runs the script to collect new certificates. Should that be shoved into docker-compose, or do we need to rethink how to probe the CT Search API?
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.
That is a good question. When does that script need to be run? It might make sense to create an issue to incorporate that as a docker-compose.override.yml
configuration option if it would see regular use.
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 run the script every time I boot up the Admiral composition (on average, about once per week). I created cisagov/admiral-docker#13 to capture how we manage these Compose files as a unit of work.
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.
@mcdonnnj - Can this conversation be resolved?
df4546d
to
5fff4cb
Compare
@king-alexander Why are the molecule tests failing? |
|
@king-alexander Any updates here now that cisagov/skeleton-ansible-role#139 has been merged? |
c0febdb
to
142bdfb
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.
Looks like a winner now- good work! ⚓
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.
Approval intensifies!!!
7beb6c6
to
c543586
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.
One comment and one change request.
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 approve with the power of 1000 suns!!!
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 noticed two Docker images that should be updated here, assuming they work. Please check them out.
Your assumptions were correct. I noticed no issues with either image. |
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.
Approval intensifies! 🎬
Rebase after latest pull request is merged, then send up flare 🎇 |
These composition files will be deployed in the Ansible role.
This role executes 3 tasks: creating the `/var/cyhy/admiral` directory, installing the Docker Compose configuration, and installing the Docker Compose development configuration.
We verify that the correct directory exists with the correct files and permisions.
Update the README from the generic skeleton to details specific to this project. There are no requirements or role variables, but the project does depend on the Ansible Role for Docker.
Future development work should be done from a pre-built Docker image, so the development configuration does not belong in this project.
Co-authored-by: dav3r <[email protected]>
Co-authored-by: dav3r <[email protected]>
Co-authored-by: dav3r <[email protected]>
5ad989e
to
7a6f4e1
Compare
Alphabetize owners and add myself as an owner for the .github directory.
These two variables provide the option to set ownership for any files or directories created by the role. I updated the README to reflect this new ability.
Use the role variables to set ownership for the Docker composition in addition to the admiral directory.
Co-authored-by: dav3r <[email protected]>
Co-authored-by: dav3r <[email protected]>
7a6f4e1
to
f0d543d
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.
Approval shines bright like a 💎
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.
And Rohan @jsf9k will answer!
🗣 Description
These first commits modify cisagov/skeleton-ansible-role to install The Admiral. The changes group initial code, files, and documentation for the role so we can reuse them across deployments.
💭 Motivation and context
We want to use this role to ship the Admiral off to sea. See cisagov/cyhy_amis#639 for full details of the voyage.
🧪 Testing
I updated the default test scenario in 125e9eb. All 33 tests passed (in 19.34 seconds).
My testing environment was
pyenv 2.3.15
runningPython 3.9.13
.In addition, I successfully used the role to create the
/var/cyhy/admiral
directory on my local machine and verified that the correct Docker Compose files were in place.✅ Pre-approval checklist
to reflect the changes in this PR.