-
Notifications
You must be signed in to change notification settings - Fork 63
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
Adding opensearch as an option to 1-clicks #60
base: master
Are you sure you want to change the base?
Conversation
e91d3a7
to
09bf6e7
Compare
This adds a 1 click recipe that installs opensearch and opensearch dashboards on a single droplet with TLS enabled. The apps use a self signed certificate and the passwords for the admin and kibana user are at `/home/opensearch/admin_password.txt` and `/home/opensearch/kibana_password.txt` files.
09bf6e7
to
88ef8df
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.
This is awesome! ❤️
get_url: | ||
url: "{{ opensearch_dashboards_url }}" | ||
dest: "/tmp/dashboards.tar.gz" | ||
|
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.
We could add a checksum
here for additional safety.
get_url: | ||
url: "{{ opensearch_url }}" | ||
dest: "/tmp/opensearch.tar.gz" | ||
|
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.
We could add a checksum
here for additional safety.
"ANSIBLE_SSH_ARGS='-o ForwardAgent=yes -o ControlMaster=auto -o ControlPersist=60s'", | ||
"ANSIBLE_NOCOLOR=True" | ||
] | ||
} |
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.
We might need some additional cleanup here, e.g.,
{
"type": "shell",
"environment_vars": [
"application_name={{user `application_name`}}",
"application_version={{user `application_version`}}",
"DEBIAN_FRONTEND=noninteractive",
"LC_ALL=C",
"LANG=en_US.UTF-8",
"LC_CTYPE=en_US.UTF-8"
],
"scripts": [
"common/scripts/018-force-ssh-logout.sh",
"common/scripts/020-application-tag.sh",
"common/scripts/900-cleanup.sh"
]
},
{
"type": "shell",
"inline": [
"rm -rf /root/.ansible"
]
}
When I tried this, I noticed ansible was leaving behind a directory with my name in the final image, so I had to add "user": "root",
to the ansible provisioner (hashicorp/packer#9118 (comment)).
This adds a 1 click recipe that installs opensearch and
opensearch dashboards on a single droplet with TLS enabled.
The apps use a self signed certificate and the passwords for the admin
and kibana user are at
/home/opensearch/admin_password.txt
and/home/opensearch/kibana_password.txt
files.