Commit Graph

26 Commits

Author SHA1 Message Date
Georgina Shippey b05893ae39 Fixes for tests/gates
Bump ansible version to 2.10.5
Prefer python3 over python2
Fix ansible str vs int comparisons
Print a message if setting defaultIndex in kibana 6 fails
Use saved_objects API for setting defaultIndex in kibana 7
Update version in dashboard path for 7x
ILM doesn't like bodies from GET requests
Stop using forked galera_server role, now that 633321 is merged
Force osquery inventory to python3
Update zuul jobs

Change-Id: Ibfc20b1605245927ad4de4a54e751a13defb1ee0
2021-03-01 00:02:17 +01:00
melissaml 87cbdd6649 Replace git.openstack.org URLs with opendev.org URLs
Change-Id: I790c1876a3e44da8623c74632332f0e453dce1f6
2019-07-09 16:36:22 +00:00
Kevin Carter 926695fbf1
Update the galera_server role and change the mysqlcheck port
This change updates the galera deployment options for kolide which will
allow it to co-exist on the same host as an elasticsearch environment.

Because the galera cluster for kolide is on the backend, and not user
facing the installation and setup of a VIP for the backend galera
cluster is not needed.

Change-Id: Ia5f581ebb028bf35c00dc7606b0eb1a12ad54670
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
2019-01-25 22:48:01 -06:00
Zuul a54602805f Merge "Fix the misspelling of "container"" 2019-01-23 22:34:34 +00:00
lijunjie defe320d86
Fix the misspelling of "container"
Change-Id: I201ed221941df93ed61eac3f256e8a60a0534c9b
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
2019-01-23 09:53:34 -06:00
Kevin Carter abd6661b4e
Update conditionals and namespaced options
This change implements namespaced variables and conditionals in needed
services. This will ensure systems running these playbooks are able to
be deployed in isolation without making osa specific assumptions.

Change-Id: Ia20b8514144f0b0bf925d405f06ef2ddc28f1003
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
2019-01-23 09:38:40 -06:00
Kevin Carter 271ff6a09c Add project directory to overlay inventories
The use of an overlay inventory has now been added to a stand alone
directory which should help deployers understand how this could work
within their environments. Inventory configuration has been updated to
show this working in the various projects that have tests and could
benefit from an overlay inventory.

Change-Id: I1681fce160b43e9127851f06ae05ff5eaabe852f
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
2019-01-16 22:25:11 +00:00
Kevin Carter 7491b6df8e Update the embedded-ansible-setup process to be configurable
This change allows the embedded ansible process to be configurable by
the end user.
  * Python requirements and ansible roles will all now be user
    configurable.
  * Setup is now a local only playbook. This playbook replaces the bash
    commands we were rerunning when the `bootstrap-embedded-ansible.sh`
    script was executed.
  * Embedded ansible version is now 2.7.5 as default.
  * Deprecation warnings have been resolved.
  * Tests impacted by this change have been updated.

Change-Id: I4303c44e249cda31457a4f05a681e298d225a8b7
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
2019-01-04 11:46:19 -06:00
Michael Vollman b5ed2d024f Fix ansible path for elk_metrics_6x tests
Fix the failing elk_metrics_6x tests by changing the ansible venv path
to ~/ansible_venv.  Update tests to ensure when the bootstrap ansible
script changes both osquery and elk_metrics_6x tests are run.

Change-Id: Ic79c52ae21294373ca67be264fd287fdf32b4c9a
2018-11-08 09:45:30 -06:00
Zuul 19edaabf87 Merge "Update the test scripts" 2018-10-23 14:50:41 +00:00
Victor Palma 0046e1d240 fix osquery filesystem logging
This fixes the issue where osquery does not log locally; making
  the elk_metrics_6x integration possible.

Change-Id: Ice506018757dee5ee02ef7fa0593ce06aae9c515
2018-10-23 00:36:25 -05:00
Kevin Carter baaf936975
Update the test scripts
Change-Id: I0cd877b8c63952fa3edb1f6eaa630fb17ad5044b
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
2018-10-22 15:06:41 -05:00
Kevin Carter fd2005baf4
Additional cleanup and simplification
The role is further being pruned and made more efficient.

Change-Id: I75de7063164959041193526e519682ba80185250
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
2018-10-18 22:51:04 -05:00
Kevin Carter e0e8579785 Additional playbook cleanup and use stable release
The stable release of the kolide has been cut. This change sets our used
version of kolide to "2.0.0".

Change-Id: Ie488fe42e98bd96f5777c1c893fc79e50a2eddee
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
2018-10-18 21:29:05 -05:00
Kevin Carter 46858c67d9 clean up readme
Change-Id: Ie2ae1b5db30515709e6249bb977fd10aaac07821
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
2018-10-19 01:24:57 +00:00
Kevin Carter c901b0b706
Cleanup the osquery role
This change removes things we don't need and simplifies the task
execution.

Change-Id: I5be516311eaadd634990a4b9006d1ceec4de5847
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
2018-10-18 17:56:23 -05:00
Kevin Carter ca1c050cbe
Add kolide cluster tests
Change-Id: I4452b5f42eb9c09da48e657d20144f09fe785878
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
2018-10-18 09:06:37 -05:00
Kevin Carter 88bf46c65c
Add osquery testing
Change-Id: Ia8249da40bf5eb0e09b5d7811eb126b60dc5dc73
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
2018-10-17 13:58:03 -05:00
Kevin Carter a86a9dc416
Add osquery pack setup
osquery supply quite a few query packs that may be useful from within
the fleet UI. This change adds a playbook to convert the native query
packs into fleet configs and applys them.

Change-Id: Ifef741d2c7aca147e5ac327a84cfdc20551df441
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
2018-10-16 18:16:23 -05:00
Kevin Carter 1e40cef199
More cleanup of the osquery role
This cleanup should make things easier to integrate with OSA
while also better supporting a stand alone deployment.

Change-Id: I7321981a9ced7bf2e807a25cadde5463b39eef8f
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
2018-10-16 17:38:04 -05:00
Kevin Carter 5aff0b59f4
Cleanup the osquery tooling and vendor roles
The osquery tooling needed a little work to be fully automated and
repeatable. This change tunes up the tools and makes the entire
deployment process multi-node capable and repeatable.

The osquery role was vendored because of bugs within their use of aarmor
profiles and there was no way to disable them.

The fleet use of commands for ssl creation have been removed. The ssl
modules are now being used to generate all of the certificates.

New pre-tasks have been added to check for required variables. If the
required variables are not set the playbooks will fail early and notify
the user of the issue.

Change-Id: I88c2b40ed9d9a88a39bdf07b0dce2900fda50151
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
2018-10-15 22:47:10 -05:00
Victor Palma 3aa5fcd8fc multiple updates to osquery
* move playbooks to roles
   * update documentation
   * update haproxy
     - set 6443 as default port for kolide fleet
   * add galera support

Change-Id: I2fdefcb6bec98486c16b54cf33e2b7940b88d50b
2018-10-01 14:20:08 -05:00
Victor Palma 86a2402da9 change osquery defaults
* do not install debuging osquery packages
   * log to filesystem
   * turn off rsyslog

Change-Id: Iae91959847fc7bfd5184d157a44cd994dab397f3
2018-09-11 11:29:44 -05:00
Kevin Carter 393fe9d42a
correct typo
The fleet env.d config had a typo in it which would causing a failure
within OSA dynamic inventory. This corrects the issue.

Change-Id: I36016f4733a8800adbcce71abbb290ab4a24798b
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
2018-08-02 09:42:28 -05:00
Victor Palma 5ddbde3310 adding kolide fleet
* adds kolide fleet
  * integrates osquery to kolide fleet server

Change-Id: I646364c44bb99d4397bb35068600c49b7bfd62c2
2018-07-17 18:45:56 -05:00
Victor Palma d98fec1a54 add osquery
* install osquery
   * add filebeat integration

Change-Id: Ia93595482512460ebdd287cf091cb5fe51b00de4
2018-07-10 11:00:48 -05:00