Skip to content
This repository was archived by the owner on May 30, 2018. It is now read-only.

demo.sh updates#41

Open
directionless wants to merge 4 commits intokolide:masterfrom
directionless:seph/tweaking
Open

demo.sh updates#41
directionless wants to merge 4 commits intokolide:masterfrom
directionless:seph/tweaking

Conversation

@directionless
Copy link

@directionless directionless commented Nov 30, 2017

Adds a post setup configuration step

To keep things somewhat cleaner, I also moved all the curl calls into a docker_curl function, and a get_login_token function. As well as moving the underlying setup and config data into json files.

After slack discussion, I updated the hostnames from kolide to fleet.

And enabled curl's TLS ca verification

As this is running in the docker network, the hostnames used to connect here should the container name. This alleviates the need for any `/etc/hosts` modification. 

curl already has a `-k` to handle the untrusted CA, the cert name mismatch won't really matter. 

Seems to work on my laptop
This adds a post-setup configuration step.

Along the way, it creates a `docker_curl` function, and a `get_login_token` function.

I've tried to follow local style.
@CLAassistant
Copy link

CLAassistant commented Nov 30, 2017

CLA assistant check
All committers have signed the CLA.

Copy link
Contributor

@groob groob left a comment

Choose a reason for hiding this comment

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

Haven't tried it locally yet, but this looks nice and clean. Thanks for your work.

.gitignore Outdated
osquery_status
osquery_result
mysqldata/
kolide.yml
Copy link
Contributor

Choose a reason for hiding this comment

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

maybe fleet.yml?

setup.json Outdated
@@ -0,0 +1,13 @@
{
"kolide_server_url": "https://kolide:8412",
Copy link
Contributor

Choose a reason for hiding this comment

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

lets change to fleet:8412

Copy link
Author

Choose a reason for hiding this comment

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

I updated the hostnames in the most recent push

Rename things from kolide to fleet.

Enable TLS server verification in docker_curl (well, stop disabling 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