tools_jenkins.yml
918 Bytes
# Configure an instance with the tool jenkins.
- name: Configure Jenkins instance(s)
hosts: all
become: True
gather_facts: True
vars:
serial_count: 1
COMMON_SECURITY_UPDATES: yes
SECURITY_UPGRADE_ON_ANSIBLE: true
serial: "{{ serial_count }}"
roles:
- aws
# jenkins_master role does extra tweaks to datadog if COMMON_ENABLE_DATADOG is set
# so this needs to run early.
- role: datadog
when: COMMON_ENABLE_DATADOG
- tools_jenkins
# This requires an override of the following form:
# SPLUNKFORWARDER_LOG_ITEMS:
# - source: /edx/var/jenkins/jobs/*/builds/*/log
# index: '{{ COMMON_ENVIRONMENT }}-{{ COMMON_DEPLOYMENT }}-jenkins'
# sourcetype: jenkins_build
# followSymlink: false
# crcSalt: <SOURCE>
- role: splunkforwarder
when: COMMON_ENABLE_SPLUNKFORWARDER
- role: newrelic
when: COMMON_ENABLE_NEWRELIC