remove the unusued playbooks since we merged all the jenkins one to a single playbook

This commit is contained in:
Seth Vidal 2012-12-18 19:58:26 +00:00
parent 29ca1ab826
commit 849fe2ba14
3 changed files with 0 additions and 213 deletions

View file

@ -1,28 +0,0 @@
- name: check/create instance
hosts: 209.132.184.111
user: root
gather_facts: False
vars_files:
- /srv/web/infra/ansible/vars/global.yml
- ${private}/vars.yml
tasks:
- include: $tasks/persistent_cloud.yml
- name: provision instance
hosts: 209.132.184.111
user: root
gather_facts: True
vars_files:
- /srv/web/infra/ansible/vars/global.yml
- ${private}/vars.yml
- ${vars}/${ansible_distribution}.yml
tasks:
- include: $tasks/cloud_setup_basic.yml
handlers:
- include: $handlers/restart_services.yml

View file

@ -1,94 +0,0 @@
# restricted to run on cloud instances only
- hosts: 209.132.184.*
user: root
vars_files:
- /srv/web/infra/ansible/vars/global.yml
- ${private}/vars.yml
- ${vars}/${ansible_distribution}.yml
vars:
- hostbase: jenkins-master-${dist_tag}-
tasks:
- include: $tasks/cloud_setup_basic.yml
- include: $tasks/postfix_basic.yml
- name: install pkgs for jenkins
action: yum state=installed pkg=$item
with_items:
- vim
- dejavu-s\*
- fontconfig
- java-1.6.0-openjdk
tags:
- packages
- name: add jenkins upstream repo
action: template src=$files/jenkins/master/jenkins.repo dest=/etc/yum.repos.d/jenkins.repo
owner=root group=root
tags:
- config
- name: import jenkins upstream gg key
action: template src=$files/jenkins/master/jenkins-ci.org.key dest=/etc/pki/rpm-gpg/RPM-GPG-KEY-jenkins-ci.org
owner=root group=root
tags:
- config
- name: install pkgs for jenkins
action: yum state=installed pkg=$item
with_items:
- jenkins
tags:
- packages
- name: set the hostname to jenkins-osversion
action: command hostname jenkins-master-${dist_tag}
tags:
- config
- name: mkdir dir for jenkins data
action: file state=directory path=/var/lib/jenkins/plugins/ owner=jenkins group=jenkins
- name: import jenkins plugins
action: template src=$item owner=jenkins group=jenkins
dest=/var/lib/jenkins/plugins/
with_fileglob: $files/jenkins/master/plugins/*.hpi
tags:
- config
- name: import jenkins configuration files
action: template src=$item owner=jenkins group=jenkins
dest=/var/lib/jenkins/
with_fileglob: $files/jenkins/master/*.xml
tags:
- config
- name: set the jenkins port to 80 instead of 8080
action: command sed -i -e 's|JENKINS_PORT="8080"|JENKINS_PORT="80"|' /etc/sysconfig/jenkins
tags:
- config
- name: add jenkins-admin-keys for ssh as root
action: copy src=$files/jenkins/jenkins-admin-keys dest=/root/.ssh/authorized_keys mode=600 backup=true
tags:
- config
- name: add jenkins ssh priv key so it can connect to clients
action: copy src=$private/files/jenkins/ssh/jenkins_master dest=/root/.ssh/id_rsa mode=600
tags:
- config
## Missing:
# Configuration of file jenkins : config.xml
# config.xml changes according to:
# - the IP of the slaves
# - the number of projects
# - the admins
# Configuration of the ssh key to jenkins to access the slaves
# Does it need the : lokkit -p 80:tcp ?
- name: start jenkins itself
action: service name=jenkins state=running
handlers:
- include: $handlers/restart_services.yml

View file

@ -1,91 +0,0 @@
# restricted to run on cloud instances only
- hosts: 209.132.184.*
user: root
vars_files:
- /srv/web/infra/ansible/vars/global.yml
- ${private}/vars.yml
- ${vars}/${ansible_distribution}.yml
vars:
- hostbase: jenkins-${dist_tag}-
tasks:
- include: $tasks/cloud_setup_basic.yml
- name: install pkgs for jenkins
action: yum state=installed pkg=$item
with_items:
- vim
- java-1.7.0-openjdk
- subversion
- bzr
- git
- rpmlint
- rpmdevtools
- mercurial
- mock
- python-bugzilla
- python-straight-plugin
- python-pip
- python-virtualenv
- python-coverage
- pylint
- python-argparse
- python-nose
- python-BeautifulSoup
- python-fedora
- python-unittest2
- python-pep8
tags:
- packages
- name: install pkgs for jenkins for fedora systems
action: yum state=installed pkg=$item
only_if: '$is_fedora'
with_items:
- python3
- python-nose-cover3
- python3-nose-cover3
tags:
- packages
- name: set the hostname to jenkins-osversion
action: command hostname jenkins-${dist_tag}
tags:
- config
- name: setup jenkins_slave user
action: user name=jenkins_slave state=present createhome=yes system=no
tags:
- jenkinsuser
- name: setup jenkins_slave ssh key
action: authorized_key user=jenkins_slave key='$FILE($private/files/jenkins/ssh/jenkins_master.pub)'
- name: jenkins_slave to mock group
action: user name=jenkins_slave groups=mock
- name: add .gitconfig for jenkins_slave user
action: template src=$files/jenkins/gitconfig dest=/home/jenkins_slave/.gitconfig owner=jenkins_slave group=jenkins_slave mode=664
tags:
- config
- name: template sshd_config
action: template src=$item dest=/etc/ssh/sshd_config mode=0600 owner=root group=root
first_available_file:
- $files/jenkins/sshd_config_slave.$ansible_distribution
- $files/jenkins/sshd_config_slave
notify:
- restart sshd
tags:
- config
- name: mkdir dir for jenkins data
action: file state=directory path=/mnt/jenkins owner=jenkins_slave group=jenkins_slave
- name: add jenkins-admin-keys for ssh'ing as root
action: copy src=$files/jenkins/jenkins-admin-keys dest=/root/.ssh/authorized_keys mode=600 backup=true
tags:
- config
handlers:
- include: $handlers/restart_services.yml