summaryrefslogtreecommitdiff
path: root/per-service/jenkins/jenkins.yml
blob: 7068a1a1532ee386bc00637a72e276ade4bbf667 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
---
- hosts: jenkins-generic
  gather_facts: no
  become: yes
  vars:
    - linaro_android_build_tools_repo: http://git.linaro.org/git/infrastructure/linaro-android-build-tools.git
    - linaro_android_build_tools_rev: HEAD
    - jenkins_version: 2.19.3
    - jenkins_extra_users: files/jenkins_users.xml
  vars_files:
    # Include private settings only if they exist - not all modes need
    # them (e.g. jenkins_auth: native).
    # Following construct works as: find first file which exists and use it.
    - ["{{private_vars}}", "vars/empty.yml"]
    - ["{{secrets_dir}}/host_vars/{{inventory_hostname}}", "vars/empty.yml"]
  roles:
    - env_validate
    - common
    - apache
    - {role: sslcert-self-signed, when: ssl_cert_self_signed|bool, tags: ["sslcert"]}
    - {role: sslcert-bundle, tags: ["sslcert"]}
    - jenkins
    - {role: jenkins-config-skeleton, when: not jenkins_config_from_backup|bool}
    - {role: jenkins-config-git, when: jenkins_config_from_backup|bool}
    - {role: jenkins-ssh-publish, when: jenkins_setup_ssh_publish|bool, tags: ['publish']}
# Disabled with 1.580.2 upgrade, Linaro theme is incompatible with it
#    - {role: jenkins-linaro-theme}
    - {role: apache-site, src: "{{apache_conf}}.conf", config: "{{apache_conf}}", tags: [apache, website-conf] }
    - {role: linaro-jenkins-tools, tags: ['linaro-jenkins-tools']}
    - {role: jenkins-utils-cron-disable}
    - {role: jenkins-utils-publish-staging}
    - {role: jenkins-cli}
    - {role: openvpn, tags: ['openvpn']}
  tasks:
  - name: Check out linaro-android-build-tools
    git: name={{linaro_android_build_tools_repo}} version={{linaro_android_build_tools_rev}}
         dest=/srv/linaro-android-build-tools
    tags:
        - git

- hosts: ci.linaro.org
  gather_facts: no
  become: yes
  roles:
    - dput-config
    - {role: squid, tags: ["squid"]}