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

Adding opensearch as an option to 1-clicks #60

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

Conversation

mauricio
Copy link

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.

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.
Copy link
Contributor

@jrm780 jrm780 left a 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"

Copy link
Contributor

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"

Copy link
Contributor

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"
]
}
Copy link
Contributor

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)).

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

Successfully merging this pull request may close these issues.

2 participants