diff --git a/.gitignore b/.gitignore index 235cf4ff..82b2fb40 100644 --- a/.gitignore +++ b/.gitignore @@ -12,3 +12,6 @@ tags .*.swp .*.swo .ropeproject + +# Ansible stuff +*.retry diff --git a/system-configs/ansible/README.rst b/system-configs/ansible/README.rst index fc710008..57473bf5 100644 --- a/system-configs/ansible/README.rst +++ b/system-configs/ansible/README.rst @@ -2,6 +2,12 @@ Preparing ========= 1. Install ansible http://docs.ansible.com/ansible/latest/intro_installation.html +2. Install ansible roles + +.. sourcecode:: console + + $ ansible-galaxy install geerlingguy.jenkins +.. How to use ========== diff --git a/system-configs/ansible/group_vars/localhost b/system-configs/ansible/group_vars/localhost new file mode 100644 index 00000000..414de23a --- /dev/null +++ b/system-configs/ansible/group_vars/localhost @@ -0,0 +1,11 @@ +jenkins_version: 1.651 +jenkins_plugins: [ansicolor, antisamy-markup-formatter, ant, bazaar, build-blocker-plugin, +build-timeout, conditional-buildstep, copyartifact, credentials, cvs, dashboard-view, +envinject, extended-read-permission, external-monitor-job, gearman-plugin, git-client, +github-api, github, github-oauth, git, global-build-stats, greenballs, htmlpublisher, +javadoc, jenkins-multijob-plugin, jobConfigHistory, junit, ldap, mailer, mapdb-api, +matrix-auth, matrix-project, maven-plugin, openid4java, openid, pam-auth, +parameterized-trigger, pathignore, postbuild-task, project-stats-plugin, publish-over-ftp, +publish-over-ssh, rebuild, ruby-runtime, run-condition, scm-api, scp, simple-theme-plugin, +ssh-agent, ssh-credentials, ssh-slaves, subversion, timestamper, token-macro, +translation, windows-slaves, ws-cleanup, zmq-event-publisher] diff --git a/system-configs/ansible/site.yml b/system-configs/ansible/site.yml index 31b8125b..7ca43012 100644 --- a/system-configs/ansible/site.yml +++ b/system-configs/ansible/site.yml @@ -3,3 +3,18 @@ hosts: localhost roles: - common + +- name: Install Jenkins + hosts: localhost + roles: + - geerlingguy.jenkins + +- hosts: localhost + tasks: + - name: Create Jenkins CI directory + file: + path: /opt/ci/files + owner: jenkins + group: jenkins + mode: 0755 + state: directory