Added playbook for deploy Jenkins

Added role and play for deploy Jenkins and install pluigns

Change-Id: I6fe76ffca8a52a1b1c15fcadfd4d59b93d47bb29
This commit is contained in:
Evgeny Sikachev 2017-07-28 06:45:11 +00:00
parent 28565088f3
commit 31f8e39591
4 changed files with 35 additions and 0 deletions

3
.gitignore vendored
View File

@ -12,3 +12,6 @@ tags
.*.swp
.*.swo
.ropeproject
# Ansible stuff
*.retry

View File

@ -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
==========

View File

@ -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]

View File

@ -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