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

47 lines
1.4 KiB
YAML

---
# Copyright 2016, Rackspace US, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
- name: Run the systemd service role
include_role:
name: systemd_service
vars:
systemd_service_restart_changed: false
systemd_services:
- service_name: "kolide-fleet"
execstarts:
- /usr/local/bin/fleet serve --config=/etc/fleet/fleet_config.yml
config_overrides:
Unit:
Wants: network-online.target
Requires: redis-server.service
Service:
Slice: kolide-fleet.slice
tags:
- server-install
- name: Place the kolide-fleet socket
template:
src: 'kolide-fleet-proxy.socket.j2'
dest: '/etc/systemd/system/kolide-fleet-proxy.socket'
notify:
- Restart kolide (systemd)
- name: Place the kolide-fleet proxy
template:
src: 'kolide-fleet-proxy.service.j2'
dest: '/etc/systemd/system/kolide-fleet-proxy.service'
notify:
- Restart kolide (systemd)