install main jenkins config file
This commit is contained in:
parent
8fb2179007
commit
ddc01967b9
2 changed files with 48 additions and 1 deletions
36
roles/jenkins/master/files/config.xml
Normal file
36
roles/jenkins/master/files/config.xml
Normal file
|
@ -0,0 +1,36 @@
|
||||||
|
<?xml version='1.0' encoding='UTF-8'?>
|
||||||
|
<hudson>
|
||||||
|
<disabledAdministrativeMonitors/>
|
||||||
|
<version>1.0</version>
|
||||||
|
<numExecutors>2</numExecutors>
|
||||||
|
<mode>NORMAL</mode>
|
||||||
|
<useSecurity>true</useSecurity>
|
||||||
|
<authorizationStrategy class="hudson.security.FullControlOnceLoggedInAuthorizationStrategy"/>
|
||||||
|
<securityRealm class="hudson.plugins.openid.OpenIdSsoSecurityRealm" plugin="openid@2.1.1">
|
||||||
|
<endpoint>http://id.fedoraproject.org/</endpoint>
|
||||||
|
</securityRealm>
|
||||||
|
<disableRememberMe>true</disableRememberMe>
|
||||||
|
<projectNamingStrategy class="jenkins.model.ProjectNamingStrategy$DefaultProjectNamingStrategy"/>
|
||||||
|
<workspaceDir>${ITEM_ROOTDIR}/workspace</workspaceDir>
|
||||||
|
<buildsDir>${ITEM_ROOTDIR}/builds</buildsDir>
|
||||||
|
<markupFormatter class="hudson.markup.EscapedMarkupFormatter"/>
|
||||||
|
<jdks/>
|
||||||
|
<viewsTabBar class="hudson.views.DefaultViewsTabBar"/>
|
||||||
|
<myViewsTabBar class="hudson.views.DefaultMyViewsTabBar"/>
|
||||||
|
<clouds/>
|
||||||
|
<scmCheckoutRetryCount>0</scmCheckoutRetryCount>
|
||||||
|
<views>
|
||||||
|
<hudson.model.AllView>
|
||||||
|
<owner class="hudson" reference="../../.."/>
|
||||||
|
<name>All</name>
|
||||||
|
<filterExecutors>false</filterExecutors>
|
||||||
|
<filterQueue>false</filterQueue>
|
||||||
|
<properties class="hudson.model.View$PropertyList"/>
|
||||||
|
</hudson.model.AllView>
|
||||||
|
</views>
|
||||||
|
<primaryView>All</primaryView>
|
||||||
|
<slaveAgentPort>0</slaveAgentPort>
|
||||||
|
<label></label>
|
||||||
|
<nodeProperties/>
|
||||||
|
<globalNodeProperties/>
|
||||||
|
</hudson>
|
|
@ -8,7 +8,7 @@
|
||||||
- jenkins/master
|
- jenkins/master
|
||||||
- packages
|
- packages
|
||||||
|
|
||||||
- name: install jenkins config file
|
- name: install jenkins launcher config file
|
||||||
copy: >
|
copy: >
|
||||||
src="jenkins.conf"
|
src="jenkins.conf"
|
||||||
dest="/etc/sysconfig/jenkins"
|
dest="/etc/sysconfig/jenkins"
|
||||||
|
@ -19,6 +19,17 @@
|
||||||
- jenkins/master
|
- jenkins/master
|
||||||
- config
|
- config
|
||||||
|
|
||||||
|
- name: install main jenkins config file
|
||||||
|
copy: >
|
||||||
|
src="config.xml"
|
||||||
|
dest="/var/lib/jenkins/config.xml"
|
||||||
|
notify:
|
||||||
|
- restart jenkins
|
||||||
|
tags:
|
||||||
|
- jenkins
|
||||||
|
- jenkins/master
|
||||||
|
- config
|
||||||
|
|
||||||
- name: install private ssh key
|
- name: install private ssh key
|
||||||
action: copy src="{{ private }}/files/jenkins/ssh/jenkins_master" dest=/etc/jenkins/id_rsa mode=400 owner=jenkins group=jenkins
|
action: copy src="{{ private }}/files/jenkins/ssh/jenkins_master" dest=/etc/jenkins/id_rsa mode=400 owner=jenkins group=jenkins
|
||||||
tags:
|
tags:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue