forked from admin/ansible
+apache2 +tomcat +-jenkins refactor
This commit is contained in:
@@ -0,0 +1,75 @@
|
||||
---
|
||||
|
||||
- hosts: apache2
|
||||
become: yes
|
||||
vars:
|
||||
tmpl:
|
||||
- {file: "static", value: 'Use DocRootVHost "static.rudolf" "/home/www/static"' }
|
||||
- {file: "syncthing", value: 'Use ProxySSLVHost "syncthing.rudolf" "/" "http://localhost:{{ syncthing_port }}/" "syncthing.rudolf"' }
|
||||
- {file: "jenkins", value: 'Use ProxySSLVHost "jenkins.rudolf" "/" "http://localhost:{{ jenkins_port }}/" "jenkins.rudolf"' }
|
||||
# - {file: "torrent", value: 'Use ProxySSLVHost "torrent.rudolf" "/transmission" "http://localhost:9091/transmission" "torrent.rudolf"' }
|
||||
# - {file: "", value: '# TODO Header edit Location ^http://jenkins.rudolf.com.ua https://jenkins.rudolf.com.ua' }
|
||||
# - {file: "webmin", value: 'Use ProxySSLVHost "webmin.rudolf" "/" "http://localhost:10000/" "webmin.rudolf"' }
|
||||
# - {file: "", value: 'Use ProxySSLVHost "bitsync.rudolf" "/" "http://localhost:8888/" "bitsync.rudolf"' }
|
||||
tasks:
|
||||
|
||||
- name: install apache2
|
||||
apt: name=apache2 update_cache=yes state=latest
|
||||
|
||||
- name: apache2 listen on port {{ http_port }} and {{ https_port }}
|
||||
lineinfile:
|
||||
dest: /etc/apache2/ports.conf
|
||||
regexp: "{{ item.regexp }}"
|
||||
line: "{{ item.line }}"
|
||||
state: present
|
||||
with_items:
|
||||
- { regexp: "^.*Listen {{ http_port }}", line: "Listen {{ http_port }}" }
|
||||
- { regexp: "^.*Listen {{ https_port }}", line: "Listen {{ https_port }}" }
|
||||
notify:
|
||||
- restart apache2
|
||||
|
||||
- name: macro lib
|
||||
copy:
|
||||
src: apache2/macro.conf
|
||||
dest: /etc/apache2/conf-enabled/macro.conf
|
||||
notify:
|
||||
- restart apache2
|
||||
|
||||
- name: enabling modules
|
||||
apache2_module:
|
||||
name: "{{ item }}"
|
||||
state: present
|
||||
with_items:
|
||||
- proxy_http
|
||||
- rewrite
|
||||
- macro
|
||||
# - ssl TODO
|
||||
notify:
|
||||
- restart apache2
|
||||
|
||||
- name: populate templates
|
||||
template:
|
||||
src: "{{ item }}"
|
||||
dest: /etc/apache2/sites-enabled/{{ item | basename }}
|
||||
with_fileglob:
|
||||
- apache2/templates/*.conf
|
||||
notify:
|
||||
- restart apache2
|
||||
|
||||
- name: populate proxies
|
||||
copy:
|
||||
content: "{{ item.value }}"
|
||||
dest: "/etc/apache2/sites-enabled/{{ item.file }}.conf"
|
||||
with_items: tmpl
|
||||
notify:
|
||||
- restart apache2
|
||||
|
||||
- name: apache running
|
||||
service:
|
||||
name: apache2
|
||||
state: started
|
||||
enabled: yes
|
||||
|
||||
handlers:
|
||||
- name: restart apache2
|
||||
service: name=apache2 state=restarted
|
||||
@@ -0,0 +1,89 @@
|
||||
<Macro DocRootVHost $domain $documentRoot>
|
||||
|
||||
<IfModule mod_ssl.c>
|
||||
<VirtualHost *:443>
|
||||
ServerAdmin rudolfss13@gmail.com
|
||||
ServerName $domain.com.ua
|
||||
|
||||
DocumentRoot $documentRoot
|
||||
<Directory />
|
||||
Options FollowSymLinks
|
||||
AllowOverride None
|
||||
</Directory>
|
||||
<Directory $documentRoot>
|
||||
Options Indexes FollowSymLinks MultiViews
|
||||
AllowOverride None
|
||||
Order allow,deny
|
||||
allow from all
|
||||
</Directory>
|
||||
|
||||
Use GoogleAuth https://$domain.com.ua/oauth2callback /
|
||||
|
||||
ErrorDocument 404 /404.html
|
||||
|
||||
ErrorLog ${APACHE_LOG_DIR}/error.log
|
||||
|
||||
LogLevel warn
|
||||
|
||||
CustomLog ${APACHE_LOG_DIR}/access.log combined
|
||||
|
||||
Use MacroSSL $domain
|
||||
|
||||
</VirtualHost>
|
||||
</IfModule>
|
||||
</Macro>
|
||||
|
||||
|
||||
<Macro ProxyVHost $domain $proxyPrefix $proxyUrl $sslDomain>
|
||||
<VirtualHost *:80>
|
||||
ServerAdmin rudolfss13@gmail.com
|
||||
ServerName $domain.com.ua
|
||||
|
||||
ProxyPass $proxyPrefix $proxyUrl retry=0
|
||||
ProxyPassReverse $proxyPrefix $proxyUrl
|
||||
|
||||
</VirtualHost>
|
||||
</Macro>
|
||||
|
||||
<Macro ProxySSLVHost $domain $proxyPrefix $proxyUrl $sslDomain>
|
||||
<IfModule mod_ssl.c>
|
||||
<VirtualHost *:443>
|
||||
ServerAdmin rudolfss13@gmail.com
|
||||
ServerName $domain.com.ua
|
||||
|
||||
Use MacroSSL $sslDomain
|
||||
|
||||
ProxyPass $proxyPrefix $proxyUrl retry=0
|
||||
ProxyPassReverse $proxyPrefix $proxyUrl
|
||||
|
||||
</VirtualHost>
|
||||
</IfModule>
|
||||
</Macro>
|
||||
|
||||
|
||||
<Macro MacroSSL $domain>
|
||||
SSLEngine on
|
||||
|
||||
SSLCertificateFile /etc/letsencrypt/live/$domain.com.ua/cert.pem
|
||||
SSLCertificateKeyFile /etc/letsencrypt/live/$domain.com.ua/privkey.pem
|
||||
SSLCertificateChainFile /etc/letsencrypt/live/$domain.com.ua/chain.pem
|
||||
</Macro>
|
||||
|
||||
|
||||
<Macro GoogleAuth $callback $location>
|
||||
OIDCProviderMetadataURL https://accounts.google.com/.well-known/openid-configuration
|
||||
OIDCClientID 259977835489-5lrmult5iimh3f7dik848fb00mn8td2j.apps.googleusercontent.com
|
||||
OIDCClientSecret 3xzC51fw-yBeWv63pxYlmYE7
|
||||
OIDCRedirectURI $callback
|
||||
OIDCCryptoPassphrase blabla
|
||||
OIDCScope "openid email"
|
||||
OIDCRemoteUserClaim email
|
||||
|
||||
<Location ~ "$location">
|
||||
|
||||
AuthType openid-connect
|
||||
Require valid-user
|
||||
|
||||
</Location>
|
||||
</Macro>
|
||||
|
||||
@@ -0,0 +1,31 @@
|
||||
<IfModule mod_ssl.c>
|
||||
<VirtualHost *:{{ https_port }}>
|
||||
ServerAdmin rudolfss13@gmail.com
|
||||
ServerAlias *.rudolf.com.ua
|
||||
|
||||
Redirect 404 /
|
||||
ErrorDocument 404 "Page Not Found"
|
||||
|
||||
SSLEngine on
|
||||
|
||||
SSLCertificateFile /etc/letsencrypt/live/rudolf.com.ua/cert.pem
|
||||
SSLCertificateKeyFile /etc/letsencrypt/live/rudolf.com.ua/privkey.pem
|
||||
SSLCertificateChainFile /etc/letsencrypt/live/rudolf.com.ua/chain.pem
|
||||
</VirtualHost>
|
||||
|
||||
<VirtualHost *:{{ http_port }}>
|
||||
ServerAdmin rudolfss13@gmail.com
|
||||
ServerAlias *.rudolf.com.ua
|
||||
|
||||
RewriteEngine On
|
||||
RewriteCond %{HTTPS} off
|
||||
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
|
||||
|
||||
</VirtualHost>
|
||||
|
||||
</IfModule>
|
||||
|
||||
|
||||
|
||||
## Virtual hosts
|
||||
Use DocRootVHost "rudolf" "/home/www/root"
|
||||
@@ -0,0 +1,42 @@
|
||||
<IfModule mod_ssl.c>
|
||||
<VirtualHost *:443>
|
||||
|
||||
ServerAdmin rudolfss13@gmail.com
|
||||
ServerName smarthome.rudolf.com.ua
|
||||
|
||||
SSLEngine on
|
||||
|
||||
SSLCertificateFile /etc/letsencrypt/live/smarthome.rudolf.com.ua/cert.pem
|
||||
SSLCertificateKeyFile /etc/letsencrypt/live/smarthome.rudolf.com.ua/privkey.pem
|
||||
SSLCertificateChainFile /etc/letsencrypt/live/smarthome.rudolf.com.ua/chain.pem
|
||||
|
||||
Use GoogleAuth https://smarthome.rudolf.com.ua/oauth2callback /
|
||||
|
||||
<Location />
|
||||
Require claim email:rudolfss13@gmail.com
|
||||
Require claim email:malta4ka@gmail.com
|
||||
</Location>
|
||||
|
||||
ProxyPass / http://192.168.17.2:{{ tomcat_port }}/smarthome/
|
||||
ProxyPassReverse / http://192.168.17.2:{{ tomcat_port }}/smarthome/
|
||||
|
||||
</VirtualHost>
|
||||
</IfModule>
|
||||
<VirtualHost *:80>
|
||||
|
||||
ServerAdmin rudolfss13@gmail.com
|
||||
ServerName smarthome.rudolf.com.ua
|
||||
|
||||
<Location />
|
||||
Order deny,allow
|
||||
Deny from all
|
||||
Allow from 192.168.17.
|
||||
Allow from 5.19.137.112
|
||||
</Location>
|
||||
|
||||
|
||||
ProxyPass / http://192.168.17.2:{{ tomcat_port }}/smarthome/
|
||||
ProxyPassReverse / http://192.168.17.2:{{ tomcat_port }}/smarthome/
|
||||
|
||||
</VirtualHost>
|
||||
|
||||
@@ -27,8 +27,8 @@
|
||||
volumes:
|
||||
- "/var/gogs:/data"
|
||||
ports:
|
||||
- "0.0.0.0:80:3000"
|
||||
- "0.0.0.0:23:22"
|
||||
- "0.0.0.0:{{ gogs_port }}:3000"
|
||||
- "0.0.0.0:{{ gogs_ssh }}:22"
|
||||
state: reloaded
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
gogs_port: 8081
|
||||
gogs_ssh: 23
|
||||
jenkins_port: 8080
|
||||
jenkins_cli: 50000
|
||||
tomcat_port: 8888
|
||||
syncthing_port: 8384
|
||||
|
||||
|
||||
http_port: 80
|
||||
https_port: 443
|
||||
domain: rudolf.com.ua
|
||||
@@ -2,3 +2,5 @@
|
||||
serva4og ansible_ssh_user=rudolf ansible_ssh_host=192.168.17.2
|
||||
pi ansible_ssh_user=pi ansible_ssh_host=192.168.17.3
|
||||
|
||||
[apache2]
|
||||
serva4og ansible_ssh_user=rudolf ansible_ssh_host=192.168.17.2
|
||||
|
||||
@@ -0,0 +1,74 @@
|
||||
---
|
||||
- hosts: serva4og
|
||||
vars:
|
||||
user: rudolf
|
||||
become: yes
|
||||
|
||||
tasks:
|
||||
|
||||
- name: install packages
|
||||
apt: name={{ item }} update_cache=yes state=latest
|
||||
with_items:
|
||||
- docker.io
|
||||
- python-docker
|
||||
- default-jdk
|
||||
|
||||
- name: user {{ user }}
|
||||
user:
|
||||
name: "{{ user }}"
|
||||
groups: docker
|
||||
append: yes
|
||||
|
||||
- name: jenkins home present
|
||||
file:
|
||||
path: /var/jenkins
|
||||
state: directory
|
||||
mode: 755
|
||||
|
||||
- name: copy configs
|
||||
copy:
|
||||
src: jenkins/jobs
|
||||
dest: /var/jenkins
|
||||
force: no
|
||||
owner: "{{ user }}"
|
||||
group: "{{ user }}"
|
||||
notify: restart jenkins docker
|
||||
|
||||
|
||||
- name: run jenkins docker
|
||||
docker:
|
||||
name: jenkins
|
||||
image: jenkins
|
||||
detach: True
|
||||
net: default
|
||||
volumes:
|
||||
- "/var/jenkins:/var/jenkins_home"
|
||||
ports:
|
||||
- "0.0.0.0:{{ jenkins_port }}:8080"
|
||||
- "0.0.0.0:{{ jenkins_ci }}:50000"
|
||||
state: reloaded
|
||||
|
||||
- name: install jenkins plugins
|
||||
shell: "java -jar /var/jenkins/war/WEB-INF/jenkins-cli.jar -s http://localhost:8080/ install-plugin {{ item }}"
|
||||
with_items:
|
||||
- git
|
||||
|
||||
become_user: rudolf
|
||||
|
||||
|
||||
# - name: Install jenkins plugins
|
||||
# get_url:
|
||||
# url: http://updates.jenkins-ci.org/latest/{{ item.name }}.hpi
|
||||
# dest: /var/jenkins/plugins
|
||||
# with_items:
|
||||
# - { name: "git"}
|
||||
# notify: restart jenkins docker
|
||||
|
||||
|
||||
handlers:
|
||||
- name: restart jenkins docker
|
||||
docker_container:
|
||||
name: jenkins
|
||||
image: jenkins
|
||||
restart: yes
|
||||
|
||||
@@ -0,0 +1,75 @@
|
||||
<?xml version='1.0' encoding='UTF-8'?>
|
||||
<project>
|
||||
<actions/>
|
||||
<description></description>
|
||||
<keepDependencies>false</keepDependencies>
|
||||
<properties>
|
||||
<hudson.model.ParametersDefinitionProperty>
|
||||
<parameterDefinitions>
|
||||
<hudson.model.ChoiceParameterDefinition>
|
||||
<name>contextRoot</name>
|
||||
<description></description>
|
||||
<choices class="java.util.Arrays$ArrayList">
|
||||
<a class="string-array">
|
||||
<string>gau</string>
|
||||
<string>abacus</string>
|
||||
<string>gau-1.3</string>
|
||||
<string>gau-1.2</string>
|
||||
<string>gau_dev</string>
|
||||
</a>
|
||||
</choices>
|
||||
</hudson.model.ChoiceParameterDefinition>
|
||||
<hudson.model.ChoiceParameterDefinition>
|
||||
<name>groupID</name>
|
||||
<description></description>
|
||||
<choices class="java.util.Arrays$ArrayList">
|
||||
<a class="string-array">
|
||||
<string>docstorage</string>
|
||||
<string>ua/rudolf/finance</string>
|
||||
</a>
|
||||
</choices>
|
||||
</hudson.model.ChoiceParameterDefinition>
|
||||
<hudson.model.ChoiceParameterDefinition>
|
||||
<name>artifactID</name>
|
||||
<description></description>
|
||||
<choices class="java.util.Arrays$ArrayList">
|
||||
<a class="string-array">
|
||||
<string>docstorage</string>
|
||||
<string>ear-std</string>
|
||||
<string>webclient-interface</string>
|
||||
</a>
|
||||
</choices>
|
||||
</hudson.model.ChoiceParameterDefinition>
|
||||
<hudson.model.StringParameterDefinition>
|
||||
<name>version</name>
|
||||
<description></description>
|
||||
<defaultValue>1.0</defaultValue>
|
||||
</hudson.model.StringParameterDefinition>
|
||||
<hudson.model.ChoiceParameterDefinition>
|
||||
<name>type</name>
|
||||
<description></description>
|
||||
<choices class="java.util.Arrays$ArrayList">
|
||||
<a class="string-array">
|
||||
<string>war</string>
|
||||
<string>ear</string>
|
||||
</a>
|
||||
</choices>
|
||||
</hudson.model.ChoiceParameterDefinition>
|
||||
</parameterDefinitions>
|
||||
</hudson.model.ParametersDefinitionProperty>
|
||||
</properties>
|
||||
<scm class="hudson.scm.NullSCM"/>
|
||||
<canRoam>true</canRoam>
|
||||
<disabled>true</disabled>
|
||||
<blockBuildWhenDownstreamBuilding>false</blockBuildWhenDownstreamBuilding>
|
||||
<blockBuildWhenUpstreamBuilding>false</blockBuildWhenUpstreamBuilding>
|
||||
<triggers/>
|
||||
<concurrentBuild>false</concurrentBuild>
|
||||
<builders>
|
||||
<hudson.tasks.Shell>
|
||||
<command>/home/glassfish/bin/asadmin --user admin --passwordfile ./pass.txt deploy --force --name=$artifactID --contextroot $contextRoot /home/mvn/repo/$groupID/$artifactID/$version/$artifactID-$version.$type </command>
|
||||
</hudson.tasks.Shell>
|
||||
</builders>
|
||||
<publishers/>
|
||||
<buildWrappers/>
|
||||
</project>
|
||||
@@ -0,0 +1,104 @@
|
||||
<?xml version='1.0' encoding='UTF-8'?>
|
||||
<project>
|
||||
<actions/>
|
||||
<description></description>
|
||||
<keepDependencies>false</keepDependencies>
|
||||
<properties>
|
||||
<jenkins.model.BuildDiscarderProperty>
|
||||
<strategy class="hudson.tasks.LogRotator">
|
||||
<daysToKeep>-1</daysToKeep>
|
||||
<numToKeep>10</numToKeep>
|
||||
<artifactDaysToKeep>-1</artifactDaysToKeep>
|
||||
<artifactNumToKeep>-1</artifactNumToKeep>
|
||||
</strategy>
|
||||
</jenkins.model.BuildDiscarderProperty>
|
||||
<hudson.model.ParametersDefinitionProperty>
|
||||
<parameterDefinitions>
|
||||
<hudson.model.ChoiceParameterDefinition>
|
||||
<name>contextRoot</name>
|
||||
<description></description>
|
||||
<choices class="java.util.Arrays$ArrayList">
|
||||
<a class="string-array">
|
||||
<string>test</string>
|
||||
<string>gau</string>
|
||||
<string>abacus</string>
|
||||
<string>gau-1.3</string>
|
||||
<string>gau-1.2</string>
|
||||
<string>gau_dev</string>
|
||||
<string>expeng</string>
|
||||
<string>smarthome</string>
|
||||
</a>
|
||||
</choices>
|
||||
</hudson.model.ChoiceParameterDefinition>
|
||||
<hudson.model.ChoiceParameterDefinition>
|
||||
<name>groupID</name>
|
||||
<description></description>
|
||||
<choices class="java.util.Arrays$ArrayList">
|
||||
<a class="string-array">
|
||||
<string>ua/rudolf/finance</string>
|
||||
<string>ua/rudolf/smarthome</string>
|
||||
<string>docstorage</string>
|
||||
<string>com/fileproc</string>
|
||||
</a>
|
||||
</choices>
|
||||
</hudson.model.ChoiceParameterDefinition>
|
||||
<hudson.model.ChoiceParameterDefinition>
|
||||
<name>artifactID</name>
|
||||
<description></description>
|
||||
<choices class="java.util.Arrays$ArrayList">
|
||||
<a class="string-array">
|
||||
<string>webclient-interface</string>
|
||||
<string>docstorage</string>
|
||||
<string>ear-std</string>
|
||||
<string>server</string>
|
||||
<string>web-ui</string>
|
||||
</a>
|
||||
</choices>
|
||||
</hudson.model.ChoiceParameterDefinition>
|
||||
<hudson.model.StringParameterDefinition>
|
||||
<name>version</name>
|
||||
<description></description>
|
||||
<defaultValue>0.1</defaultValue>
|
||||
</hudson.model.StringParameterDefinition>
|
||||
<hudson.model.ChoiceParameterDefinition>
|
||||
<name>type</name>
|
||||
<description></description>
|
||||
<choices class="java.util.Arrays$ArrayList">
|
||||
<a class="string-array">
|
||||
<string>war</string>
|
||||
<string>ear</string>
|
||||
</a>
|
||||
</choices>
|
||||
</hudson.model.ChoiceParameterDefinition>
|
||||
</parameterDefinitions>
|
||||
</hudson.model.ParametersDefinitionProperty>
|
||||
</properties>
|
||||
<scm class="hudson.scm.NullSCM"/>
|
||||
<canRoam>true</canRoam>
|
||||
<disabled>false</disabled>
|
||||
<blockBuildWhenDownstreamBuilding>false</blockBuildWhenDownstreamBuilding>
|
||||
<blockBuildWhenUpstreamBuilding>false</blockBuildWhenUpstreamBuilding>
|
||||
<triggers/>
|
||||
<concurrentBuild>false</concurrentBuild>
|
||||
<builders>
|
||||
<hudson.tasks.Shell>
|
||||
<command>rm -rf *
|
||||
cp /var/lib/jenkins/.m2/repository/$groupID/$artifactID/$version/$artifactID-$version.war $contextRoot.war</command>
|
||||
</hudson.tasks.Shell>
|
||||
</builders>
|
||||
<publishers>
|
||||
<hudson.plugins.deploy.DeployPublisher plugin="deploy@1.10">
|
||||
<adapters>
|
||||
<hudson.plugins.deploy.tomcat.Tomcat7xAdapter>
|
||||
<userName>deployer</userName>
|
||||
<passwordScrambled>ZGVwbG95ZXI=</passwordScrambled>
|
||||
<url>http://localhost:8080/</url>
|
||||
</hudson.plugins.deploy.tomcat.Tomcat7xAdapter>
|
||||
</adapters>
|
||||
<contextPath></contextPath>
|
||||
<war>**/*.war</war>
|
||||
<onFailure>false</onFailure>
|
||||
</hudson.plugins.deploy.DeployPublisher>
|
||||
</publishers>
|
||||
<buildWrappers/>
|
||||
</project>
|
||||
@@ -0,0 +1,120 @@
|
||||
<?xml version='1.0' encoding='UTF-8'?>
|
||||
<project>
|
||||
<actions/>
|
||||
<description></description>
|
||||
<logRotator class="hudson.tasks.LogRotator">
|
||||
<daysToKeep>-1</daysToKeep>
|
||||
<numToKeep>15</numToKeep>
|
||||
<artifactDaysToKeep>-1</artifactDaysToKeep>
|
||||
<artifactNumToKeep>-1</artifactNumToKeep>
|
||||
</logRotator>
|
||||
<keepDependencies>false</keepDependencies>
|
||||
<properties>
|
||||
<hudson.model.ParametersDefinitionProperty>
|
||||
<parameterDefinitions>
|
||||
<net.uaznia.lukanus.hudson.plugins.gitparameter.GitParameterDefinition plugin="git-parameter@0.3-SNAPSHOT">
|
||||
<name>git_revision</name>
|
||||
<description></description>
|
||||
<uuid>64a8318a-6501-4006-943d-d4e3e8405fde</uuid>
|
||||
<type>PT_BRANCH</type>
|
||||
<branch></branch>
|
||||
<defaultValue></defaultValue>
|
||||
</net.uaznia.lukanus.hudson.plugins.gitparameter.GitParameterDefinition>
|
||||
<hudson.model.BooleanParameterDefinition>
|
||||
<name>skipTests</name>
|
||||
<description></description>
|
||||
<defaultValue>true</defaultValue>
|
||||
</hudson.model.BooleanParameterDefinition>
|
||||
<hudson.model.BooleanParameterDefinition>
|
||||
<name>isDeploy</name>
|
||||
<description></description>
|
||||
<defaultValue>false</defaultValue>
|
||||
</hudson.model.BooleanParameterDefinition>
|
||||
</parameterDefinitions>
|
||||
</hudson.model.ParametersDefinitionProperty>
|
||||
</properties>
|
||||
<scm class="hudson.plugins.git.GitSCM" plugin="git@2.0">
|
||||
<configVersion>2</configVersion>
|
||||
<userRemoteConfigs>
|
||||
<hudson.plugins.git.UserRemoteConfig>
|
||||
<name>origin</name>
|
||||
<url>git@rudolf.com.ua:expEng.git</url>
|
||||
<credentialsId>057bac74-b42d-46d3-9c6f-bb1c81491d93</credentialsId>
|
||||
</hudson.plugins.git.UserRemoteConfig>
|
||||
</userRemoteConfigs>
|
||||
<branches>
|
||||
<hudson.plugins.git.BranchSpec>
|
||||
<name>${git_revision}</name>
|
||||
</hudson.plugins.git.BranchSpec>
|
||||
</branches>
|
||||
<doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations>
|
||||
<submoduleCfg class="list"/>
|
||||
<extensions>
|
||||
<hudson.plugins.git.extensions.impl.WipeWorkspace/>
|
||||
<hudson.plugins.git.extensions.impl.PerBuildTag/>
|
||||
</extensions>
|
||||
</scm>
|
||||
<canRoam>true</canRoam>
|
||||
<disabled>false</disabled>
|
||||
<blockBuildWhenDownstreamBuilding>false</blockBuildWhenDownstreamBuilding>
|
||||
<blockBuildWhenUpstreamBuilding>false</blockBuildWhenUpstreamBuilding>
|
||||
<triggers/>
|
||||
<concurrentBuild>false</concurrentBuild>
|
||||
<builders>
|
||||
<hudson.tasks.Maven>
|
||||
<targets>clean
|
||||
install</targets>
|
||||
<mavenName>default</mavenName>
|
||||
<usePrivateRepository>false</usePrivateRepository>
|
||||
<settings class="jenkins.mvn.DefaultSettingsProvider"/>
|
||||
<globalSettings class="jenkins.mvn.DefaultGlobalSettingsProvider"/>
|
||||
</hudson.tasks.Maven>
|
||||
<org.jenkinsci.plugins.conditionalbuildstep.singlestep.SingleConditionalBuilder plugin="conditional-buildstep@1.3.3">
|
||||
<condition class="org.jenkins_ci.plugins.run_condition.core.BooleanCondition" plugin="run-condition@1.0">
|
||||
<token>${isDeploy}</token>
|
||||
</condition>
|
||||
<buildStep class="hudson.plugins.parameterizedtrigger.TriggerBuilder" plugin="parameterized-trigger@2.21">
|
||||
<configs>
|
||||
<hudson.plugins.parameterizedtrigger.BlockableBuildTriggerConfig>
|
||||
<configs>
|
||||
<hudson.plugins.parameterizedtrigger.PredefinedBuildParameters>
|
||||
<properties>contextRoot=expeng
|
||||
groupID=com/fileproc
|
||||
artifactID=server
|
||||
version=1.0-SNAPSHOT
|
||||
type=war</properties>
|
||||
</hudson.plugins.parameterizedtrigger.PredefinedBuildParameters>
|
||||
</configs>
|
||||
<projects>Deploy_tomcat</projects>
|
||||
<condition>ALWAYS</condition>
|
||||
<triggerWithNoParameters>false</triggerWithNoParameters>
|
||||
<block>
|
||||
<buildStepFailureThreshold>
|
||||
<name>FAILURE</name>
|
||||
<ordinal>2</ordinal>
|
||||
<color>RED</color>
|
||||
<completeBuild>true</completeBuild>
|
||||
</buildStepFailureThreshold>
|
||||
<unstableThreshold>
|
||||
<name>UNSTABLE</name>
|
||||
<ordinal>1</ordinal>
|
||||
<color>YELLOW</color>
|
||||
<completeBuild>true</completeBuild>
|
||||
</unstableThreshold>
|
||||
<failureThreshold>
|
||||
<name>FAILURE</name>
|
||||
<ordinal>2</ordinal>
|
||||
<color>RED</color>
|
||||
<completeBuild>true</completeBuild>
|
||||
</failureThreshold>
|
||||
</block>
|
||||
<buildAllNodesWithLabel>false</buildAllNodesWithLabel>
|
||||
</hudson.plugins.parameterizedtrigger.BlockableBuildTriggerConfig>
|
||||
</configs>
|
||||
</buildStep>
|
||||
<runner class="org.jenkins_ci.plugins.run_condition.BuildStepRunner$Fail" plugin="run-condition@1.0"/>
|
||||
</org.jenkinsci.plugins.conditionalbuildstep.singlestep.SingleConditionalBuilder>
|
||||
</builders>
|
||||
<publishers/>
|
||||
<buildWrappers/>
|
||||
</project>
|
||||
@@ -0,0 +1,161 @@
|
||||
<?xml version='1.0' encoding='UTF-8'?>
|
||||
<project>
|
||||
<actions/>
|
||||
<description></description>
|
||||
<logRotator class="hudson.tasks.LogRotator">
|
||||
<daysToKeep>-1</daysToKeep>
|
||||
<numToKeep>15</numToKeep>
|
||||
<artifactDaysToKeep>-1</artifactDaysToKeep>
|
||||
<artifactNumToKeep>-1</artifactNumToKeep>
|
||||
</logRotator>
|
||||
<keepDependencies>false</keepDependencies>
|
||||
<properties>
|
||||
<hudson.model.ParametersDefinitionProperty>
|
||||
<parameterDefinitions>
|
||||
<net.uaznia.lukanus.hudson.plugins.gitparameter.GitParameterDefinition plugin="git-parameter@0.3-SNAPSHOT">
|
||||
<name>git_revision</name>
|
||||
<description></description>
|
||||
<uuid>6625d06b-0157-4798-a5a4-8bb2897a992b</uuid>
|
||||
<type>PT_BRANCH</type>
|
||||
<branch></branch>
|
||||
<defaultValue></defaultValue>
|
||||
</net.uaznia.lukanus.hudson.plugins.gitparameter.GitParameterDefinition>
|
||||
<hudson.model.BooleanParameterDefinition>
|
||||
<name>skipTests</name>
|
||||
<description></description>
|
||||
<defaultValue>true</defaultValue>
|
||||
</hudson.model.BooleanParameterDefinition>
|
||||
<hudson.model.BooleanParameterDefinition>
|
||||
<name>runSelenium</name>
|
||||
<description></description>
|
||||
<defaultValue>false</defaultValue>
|
||||
</hudson.model.BooleanParameterDefinition>
|
||||
<hudson.model.BooleanParameterDefinition>
|
||||
<name>isDeploy</name>
|
||||
<description></description>
|
||||
<defaultValue>false</defaultValue>
|
||||
</hudson.model.BooleanParameterDefinition>
|
||||
</parameterDefinitions>
|
||||
</hudson.model.ParametersDefinitionProperty>
|
||||
</properties>
|
||||
<scm class="hudson.plugins.git.GitSCM" plugin="git@2.0">
|
||||
<configVersion>2</configVersion>
|
||||
<userRemoteConfigs>
|
||||
<hudson.plugins.git.UserRemoteConfig>
|
||||
<name>origin</name>
|
||||
<url>git@rudolf.com.ua:finance.git</url>
|
||||
<credentialsId>057bac74-b42d-46d3-9c6f-bb1c81491d93</credentialsId>
|
||||
</hudson.plugins.git.UserRemoteConfig>
|
||||
</userRemoteConfigs>
|
||||
<branches>
|
||||
<hudson.plugins.git.BranchSpec>
|
||||
<name>${git_revision}</name>
|
||||
</hudson.plugins.git.BranchSpec>
|
||||
</branches>
|
||||
<doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations>
|
||||
<submoduleCfg class="list"/>
|
||||
<extensions>
|
||||
<hudson.plugins.git.extensions.impl.WipeWorkspace/>
|
||||
</extensions>
|
||||
</scm>
|
||||
<canRoam>true</canRoam>
|
||||
<disabled>false</disabled>
|
||||
<blockBuildWhenDownstreamBuilding>false</blockBuildWhenDownstreamBuilding>
|
||||
<blockBuildWhenUpstreamBuilding>false</blockBuildWhenUpstreamBuilding>
|
||||
<triggers/>
|
||||
<concurrentBuild>false</concurrentBuild>
|
||||
<builders>
|
||||
<hudson.tasks.Maven>
|
||||
<targets>clean
|
||||
install</targets>
|
||||
<mavenName>default</mavenName>
|
||||
<usePrivateRepository>false</usePrivateRepository>
|
||||
<settings class="jenkins.mvn.DefaultSettingsProvider"/>
|
||||
<globalSettings class="jenkins.mvn.DefaultGlobalSettingsProvider"/>
|
||||
</hudson.tasks.Maven>
|
||||
<org.jenkinsci.plugins.conditionalbuildstep.singlestep.SingleConditionalBuilder plugin="conditional-buildstep@1.3.3">
|
||||
<condition class="org.jenkins_ci.plugins.run_condition.core.BooleanCondition" plugin="run-condition@1.0">
|
||||
<token>${runSelenium}</token>
|
||||
</condition>
|
||||
<buildStep class="hudson.plugins.parameterizedtrigger.TriggerBuilder" plugin="parameterized-trigger@2.21">
|
||||
<configs>
|
||||
<hudson.plugins.parameterizedtrigger.BlockableBuildTriggerConfig>
|
||||
<configs class="empty-list"/>
|
||||
<projects>Finance_selenium</projects>
|
||||
<condition>ALWAYS</condition>
|
||||
<triggerWithNoParameters>false</triggerWithNoParameters>
|
||||
<block>
|
||||
<buildStepFailureThreshold>
|
||||
<name>FAILURE</name>
|
||||
<ordinal>2</ordinal>
|
||||
<color>RED</color>
|
||||
<completeBuild>true</completeBuild>
|
||||
</buildStepFailureThreshold>
|
||||
<unstableThreshold>
|
||||
<name>UNSTABLE</name>
|
||||
<ordinal>1</ordinal>
|
||||
<color>YELLOW</color>
|
||||
<completeBuild>true</completeBuild>
|
||||
</unstableThreshold>
|
||||
<failureThreshold>
|
||||
<name>FAILURE</name>
|
||||
<ordinal>2</ordinal>
|
||||
<color>RED</color>
|
||||
<completeBuild>true</completeBuild>
|
||||
</failureThreshold>
|
||||
</block>
|
||||
<buildAllNodesWithLabel>false</buildAllNodesWithLabel>
|
||||
</hudson.plugins.parameterizedtrigger.BlockableBuildTriggerConfig>
|
||||
</configs>
|
||||
</buildStep>
|
||||
<runner class="org.jenkins_ci.plugins.run_condition.BuildStepRunner$Fail" plugin="run-condition@1.0"/>
|
||||
</org.jenkinsci.plugins.conditionalbuildstep.singlestep.SingleConditionalBuilder>
|
||||
<org.jenkinsci.plugins.conditionalbuildstep.singlestep.SingleConditionalBuilder plugin="conditional-buildstep@1.3.3">
|
||||
<condition class="org.jenkins_ci.plugins.run_condition.core.BooleanCondition" plugin="run-condition@1.0">
|
||||
<token>${isDeploy}</token>
|
||||
</condition>
|
||||
<buildStep class="hudson.plugins.parameterizedtrigger.TriggerBuilder" plugin="parameterized-trigger@2.21">
|
||||
<configs>
|
||||
<hudson.plugins.parameterizedtrigger.BlockableBuildTriggerConfig>
|
||||
<configs>
|
||||
<hudson.plugins.parameterizedtrigger.PredefinedBuildParameters>
|
||||
<properties>contextRoot=abacus
|
||||
groupID=ua/rudolf/finance
|
||||
artifactID=webclient-interface
|
||||
version=0.1
|
||||
type=war</properties>
|
||||
</hudson.plugins.parameterizedtrigger.PredefinedBuildParameters>
|
||||
</configs>
|
||||
<projects>Deploy_tomcat</projects>
|
||||
<condition>ALWAYS</condition>
|
||||
<triggerWithNoParameters>false</triggerWithNoParameters>
|
||||
<block>
|
||||
<buildStepFailureThreshold>
|
||||
<name>FAILURE</name>
|
||||
<ordinal>2</ordinal>
|
||||
<color>RED</color>
|
||||
<completeBuild>true</completeBuild>
|
||||
</buildStepFailureThreshold>
|
||||
<unstableThreshold>
|
||||
<name>UNSTABLE</name>
|
||||
<ordinal>1</ordinal>
|
||||
<color>YELLOW</color>
|
||||
<completeBuild>true</completeBuild>
|
||||
</unstableThreshold>
|
||||
<failureThreshold>
|
||||
<name>FAILURE</name>
|
||||
<ordinal>2</ordinal>
|
||||
<color>RED</color>
|
||||
<completeBuild>true</completeBuild>
|
||||
</failureThreshold>
|
||||
</block>
|
||||
<buildAllNodesWithLabel>false</buildAllNodesWithLabel>
|
||||
</hudson.plugins.parameterizedtrigger.BlockableBuildTriggerConfig>
|
||||
</configs>
|
||||
</buildStep>
|
||||
<runner class="org.jenkins_ci.plugins.run_condition.BuildStepRunner$Fail" plugin="run-condition@1.0"/>
|
||||
</org.jenkinsci.plugins.conditionalbuildstep.singlestep.SingleConditionalBuilder>
|
||||
</builders>
|
||||
<publishers/>
|
||||
<buildWrappers/>
|
||||
</project>
|
||||
@@ -0,0 +1,69 @@
|
||||
<?xml version='1.0' encoding='UTF-8'?>
|
||||
<project>
|
||||
<actions/>
|
||||
<description></description>
|
||||
<keepDependencies>false</keepDependencies>
|
||||
<properties/>
|
||||
<scm class="hudson.scm.NullSCM"/>
|
||||
<canRoam>true</canRoam>
|
||||
<disabled>false</disabled>
|
||||
<blockBuildWhenDownstreamBuilding>false</blockBuildWhenDownstreamBuilding>
|
||||
<blockBuildWhenUpstreamBuilding>false</blockBuildWhenUpstreamBuilding>
|
||||
<triggers/>
|
||||
<concurrentBuild>false</concurrentBuild>
|
||||
<customWorkspace>$JENKINS_HOME/jobs/Finance/workspace</customWorkspace>
|
||||
<builders>
|
||||
<hudson.tasks.Shell>
|
||||
<command>/etc/init.d/xvfb start
|
||||
rc=$?
|
||||
if [[ $rc != 0 ]] ; then
|
||||
exit $rc
|
||||
fi</command>
|
||||
</hudson.tasks.Shell>
|
||||
<hudson.tasks.Maven>
|
||||
<targets>install</targets>
|
||||
<mavenName>(Default)</mavenName>
|
||||
<usePrivateRepository>false</usePrivateRepository>
|
||||
<settings class="jenkins.mvn.DefaultSettingsProvider"/>
|
||||
<globalSettings class="jenkins.mvn.DefaultGlobalSettingsProvider"/>
|
||||
</hudson.tasks.Maven>
|
||||
<hudson.tasks.Shell>
|
||||
<command>/etc/init.d/xvfb stop
|
||||
rc=$?
|
||||
if [[ $rc != 0 ]] ; then
|
||||
exit $rc
|
||||
fi</command>
|
||||
</hudson.tasks.Shell>
|
||||
</builders>
|
||||
<publishers>
|
||||
<hudson.plugins.cobertura.CoberturaPublisher plugin="cobertura@1.9.3">
|
||||
<coberturaReportFile>target/site/cobertura/coverage.xml</coberturaReportFile>
|
||||
<onlyStable>false</onlyStable>
|
||||
<failUnhealthy>false</failUnhealthy>
|
||||
<failUnstable>false</failUnstable>
|
||||
<autoUpdateHealth>false</autoUpdateHealth>
|
||||
<autoUpdateStability>false</autoUpdateStability>
|
||||
<zoomCoverageChart>false</zoomCoverageChart>
|
||||
<maxNumberOfBuilds>0</maxNumberOfBuilds>
|
||||
<failNoReports>true</failNoReports>
|
||||
<healthyTarget>
|
||||
<targets class="enum-map" enum-type="hudson.plugins.cobertura.targets.CoverageMetric"/>
|
||||
</healthyTarget>
|
||||
<unhealthyTarget>
|
||||
<targets class="enum-map" enum-type="hudson.plugins.cobertura.targets.CoverageMetric"/>
|
||||
</unhealthyTarget>
|
||||
<failingTarget>
|
||||
<targets class="enum-map" enum-type="hudson.plugins.cobertura.targets.CoverageMetric"/>
|
||||
</failingTarget>
|
||||
<sourceEncoding>UTF_8</sourceEncoding>
|
||||
</hudson.plugins.cobertura.CoberturaPublisher>
|
||||
</publishers>
|
||||
<buildWrappers>
|
||||
<EnvInjectBuildWrapper plugin="envinject@1.88">
|
||||
<info>
|
||||
<propertiesContent>DISPLAY=:99</propertiesContent>
|
||||
<loadFilesFromMaster>false</loadFilesFromMaster>
|
||||
</info>
|
||||
</EnvInjectBuildWrapper>
|
||||
</buildWrappers>
|
||||
</project>
|
||||
@@ -0,0 +1,106 @@
|
||||
<?xml version='1.0' encoding='UTF-8'?>
|
||||
<project>
|
||||
<actions/>
|
||||
<description></description>
|
||||
<keepDependencies>false</keepDependencies>
|
||||
<properties/>
|
||||
<scm class="hudson.plugins.git.GitSCM" plugin="git@1.5.0">
|
||||
<configVersion>2</configVersion>
|
||||
<userRemoteConfigs>
|
||||
<hudson.plugins.git.UserRemoteConfig>
|
||||
<name>origin</name>
|
||||
<refspec></refspec>
|
||||
<url>file:///home/git/gau.git</url>
|
||||
</hudson.plugins.git.UserRemoteConfig>
|
||||
</userRemoteConfigs>
|
||||
<branches>
|
||||
<hudson.plugins.git.BranchSpec>
|
||||
<name>self_cache</name>
|
||||
</hudson.plugins.git.BranchSpec>
|
||||
</branches>
|
||||
<disableSubmodules>false</disableSubmodules>
|
||||
<recursiveSubmodules>false</recursiveSubmodules>
|
||||
<doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations>
|
||||
<authorOrCommitter>false</authorOrCommitter>
|
||||
<clean>false</clean>
|
||||
<wipeOutWorkspace>false</wipeOutWorkspace>
|
||||
<pruneBranches>false</pruneBranches>
|
||||
<remotePoll>false</remotePoll>
|
||||
<ignoreNotifyCommit>false</ignoreNotifyCommit>
|
||||
<useShallowClone>false</useShallowClone>
|
||||
<buildChooser class="hudson.plugins.git.util.DefaultBuildChooser"/>
|
||||
<gitTool>Default</gitTool>
|
||||
<submoduleCfg class="list"/>
|
||||
<relativeTargetDir></relativeTargetDir>
|
||||
<reference></reference>
|
||||
<excludedRegions></excludedRegions>
|
||||
<excludedUsers></excludedUsers>
|
||||
<gitConfigName></gitConfigName>
|
||||
<gitConfigEmail></gitConfigEmail>
|
||||
<skipTag>false</skipTag>
|
||||
<includedRegions></includedRegions>
|
||||
<scmName></scmName>
|
||||
</scm>
|
||||
<canRoam>true</canRoam>
|
||||
<disabled>false</disabled>
|
||||
<blockBuildWhenDownstreamBuilding>false</blockBuildWhenDownstreamBuilding>
|
||||
<blockBuildWhenUpstreamBuilding>false</blockBuildWhenUpstreamBuilding>
|
||||
<triggers>
|
||||
<hudson.triggers.SCMTrigger>
|
||||
<spec>*/10 * * * * </spec>
|
||||
<ignorePostCommitHooks>false</ignorePostCommitHooks>
|
||||
</hudson.triggers.SCMTrigger>
|
||||
</triggers>
|
||||
<concurrentBuild>false</concurrentBuild>
|
||||
<builders>
|
||||
<hudson.tasks.Maven>
|
||||
<targets>clean install</targets>
|
||||
<mavenName>default</mavenName>
|
||||
<properties>skipTests=true</properties>
|
||||
<usePrivateRepository>false</usePrivateRepository>
|
||||
<settings class="jenkins.mvn.DefaultSettingsProvider"/>
|
||||
<globalSettings class="jenkins.mvn.DefaultGlobalSettingsProvider"/>
|
||||
</hudson.tasks.Maven>
|
||||
<hudson.plugins.parameterizedtrigger.TriggerBuilder plugin="parameterized-trigger@2.20">
|
||||
<configs>
|
||||
<hudson.plugins.parameterizedtrigger.BlockableBuildTriggerConfig>
|
||||
<configs>
|
||||
<hudson.plugins.parameterizedtrigger.PredefinedBuildParameters>
|
||||
<properties>contextRoot=gau
|
||||
groupID=docstorage
|
||||
artifactID=docstorage
|
||||
version=1.3_SELF
|
||||
type=war</properties>
|
||||
</hudson.plugins.parameterizedtrigger.PredefinedBuildParameters>
|
||||
</configs>
|
||||
<projects>Deploy</projects>
|
||||
<condition>ALWAYS</condition>
|
||||
<triggerWithNoParameters>false</triggerWithNoParameters>
|
||||
<block>
|
||||
<buildStepFailureThreshold>
|
||||
<name>FAILURE</name>
|
||||
<ordinal>2</ordinal>
|
||||
<color>RED</color>
|
||||
<completeBuild>true</completeBuild>
|
||||
</buildStepFailureThreshold>
|
||||
<unstableThreshold>
|
||||
<name>UNSTABLE</name>
|
||||
<ordinal>1</ordinal>
|
||||
<color>YELLOW</color>
|
||||
<completeBuild>true</completeBuild>
|
||||
</unstableThreshold>
|
||||
<failureThreshold>
|
||||
<name>FAILURE</name>
|
||||
<ordinal>2</ordinal>
|
||||
<color>RED</color>
|
||||
<completeBuild>true</completeBuild>
|
||||
</failureThreshold>
|
||||
</block>
|
||||
<buildAllNodesWithLabel>false</buildAllNodesWithLabel>
|
||||
</hudson.plugins.parameterizedtrigger.BlockableBuildTriggerConfig>
|
||||
</configs>
|
||||
</hudson.plugins.parameterizedtrigger.TriggerBuilder>
|
||||
</builders>
|
||||
<publishers/>
|
||||
<buildWrappers/>
|
||||
</project>
|
||||
@@ -0,0 +1,46 @@
|
||||
<?xml version='1.0' encoding='UTF-8'?>
|
||||
<project>
|
||||
<actions/>
|
||||
<description></description>
|
||||
<logRotator class="hudson.tasks.LogRotator">
|
||||
<daysToKeep>-1</daysToKeep>
|
||||
<numToKeep>10</numToKeep>
|
||||
<artifactDaysToKeep>-1</artifactDaysToKeep>
|
||||
<artifactNumToKeep>-1</artifactNumToKeep>
|
||||
</logRotator>
|
||||
<keepDependencies>false</keepDependencies>
|
||||
<properties/>
|
||||
<scm class="hudson.scm.NullSCM"/>
|
||||
<canRoam>true</canRoam>
|
||||
<disabled>false</disabled>
|
||||
<blockBuildWhenDownstreamBuilding>false</blockBuildWhenDownstreamBuilding>
|
||||
<blockBuildWhenUpstreamBuilding>false</blockBuildWhenUpstreamBuilding>
|
||||
<triggers>
|
||||
<hudson.triggers.TimerTrigger>
|
||||
<spec>H/30 * * * *
|
||||
</spec>
|
||||
</hudson.triggers.TimerTrigger>
|
||||
</triggers>
|
||||
<concurrentBuild>false</concurrentBuild>
|
||||
<builders>
|
||||
<hudson.tasks.Shell>
|
||||
<command>/home/cfg/svn_backup/backup_dir_l1.sh /home/git /media/DATA/backups/git/
|
||||
#/home/cfg/svn_backup/backup_svn.sh /home/git /media/DATA/backups/git/ git</command>
|
||||
</hudson.tasks.Shell>
|
||||
</builders>
|
||||
<publishers>
|
||||
<hudson.plugins.emailext.ExtendedEmailPublisher plugin="email-ext@2.36">
|
||||
<recipientList>$DEFAULT_RECIPIENTS</recipientList>
|
||||
<contentType>default</contentType>
|
||||
<defaultSubject>$DEFAULT_SUBJECT</defaultSubject>
|
||||
<defaultContent>$DEFAULT_CONTENT</defaultContent>
|
||||
<attachmentsPattern></attachmentsPattern>
|
||||
<presendScript>$DEFAULT_PRESEND_SCRIPT</presendScript>
|
||||
<attachBuildLog>false</attachBuildLog>
|
||||
<compressBuildLog>false</compressBuildLog>
|
||||
<replyTo>$DEFAULT_REPLYTO</replyTo>
|
||||
<saveOutput>false</saveOutput>
|
||||
</hudson.plugins.emailext.ExtendedEmailPublisher>
|
||||
</publishers>
|
||||
<buildWrappers/>
|
||||
</project>
|
||||
@@ -0,0 +1,67 @@
|
||||
<?xml version='1.0' encoding='UTF-8'?>
|
||||
<project>
|
||||
<actions/>
|
||||
<description></description>
|
||||
<keepDependencies>false</keepDependencies>
|
||||
<properties/>
|
||||
<scm class="hudson.plugins.git.GitSCM" plugin="git@1.5.0">
|
||||
<configVersion>2</configVersion>
|
||||
<userRemoteConfigs>
|
||||
<hudson.plugins.git.UserRemoteConfig>
|
||||
<name>origin</name>
|
||||
<refspec></refspec>
|
||||
<url>file:///home/git/gau.git</url>
|
||||
</hudson.plugins.git.UserRemoteConfig>
|
||||
</userRemoteConfigs>
|
||||
<branches>
|
||||
<hudson.plugins.git.BranchSpec>
|
||||
<name>master</name>
|
||||
</hudson.plugins.git.BranchSpec>
|
||||
</branches>
|
||||
<disableSubmodules>false</disableSubmodules>
|
||||
<recursiveSubmodules>false</recursiveSubmodules>
|
||||
<doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations>
|
||||
<authorOrCommitter>false</authorOrCommitter>
|
||||
<clean>false</clean>
|
||||
<wipeOutWorkspace>false</wipeOutWorkspace>
|
||||
<pruneBranches>false</pruneBranches>
|
||||
<remotePoll>false</remotePoll>
|
||||
<ignoreNotifyCommit>false</ignoreNotifyCommit>
|
||||
<useShallowClone>false</useShallowClone>
|
||||
<buildChooser class="hudson.plugins.git.util.DefaultBuildChooser"/>
|
||||
<gitTool>Default</gitTool>
|
||||
<submoduleCfg class="list"/>
|
||||
<relativeTargetDir></relativeTargetDir>
|
||||
<reference></reference>
|
||||
<excludedRegions></excludedRegions>
|
||||
<excludedUsers></excludedUsers>
|
||||
<gitConfigName></gitConfigName>
|
||||
<gitConfigEmail></gitConfigEmail>
|
||||
<skipTag>false</skipTag>
|
||||
<includedRegions></includedRegions>
|
||||
<scmName></scmName>
|
||||
</scm>
|
||||
<canRoam>true</canRoam>
|
||||
<disabled>false</disabled>
|
||||
<blockBuildWhenDownstreamBuilding>false</blockBuildWhenDownstreamBuilding>
|
||||
<blockBuildWhenUpstreamBuilding>false</blockBuildWhenUpstreamBuilding>
|
||||
<triggers>
|
||||
<hudson.triggers.SCMTrigger>
|
||||
<spec>*/10 * * * * </spec>
|
||||
<ignorePostCommitHooks>false</ignorePostCommitHooks>
|
||||
</hudson.triggers.SCMTrigger>
|
||||
</triggers>
|
||||
<concurrentBuild>false</concurrentBuild>
|
||||
<builders>
|
||||
<hudson.tasks.Maven>
|
||||
<targets>clean install</targets>
|
||||
<mavenName>default</mavenName>
|
||||
<properties>skipTests=true</properties>
|
||||
<usePrivateRepository>false</usePrivateRepository>
|
||||
<settings class="jenkins.mvn.DefaultSettingsProvider"/>
|
||||
<globalSettings class="jenkins.mvn.DefaultGlobalSettingsProvider"/>
|
||||
</hudson.tasks.Maven>
|
||||
</builders>
|
||||
<publishers/>
|
||||
<buildWrappers/>
|
||||
</project>
|
||||
@@ -0,0 +1,67 @@
|
||||
<?xml version='1.0' encoding='UTF-8'?>
|
||||
<project>
|
||||
<actions/>
|
||||
<description></description>
|
||||
<keepDependencies>false</keepDependencies>
|
||||
<properties/>
|
||||
<scm class="hudson.plugins.git.GitSCM" plugin="git@1.5.0">
|
||||
<configVersion>2</configVersion>
|
||||
<userRemoteConfigs>
|
||||
<hudson.plugins.git.UserRemoteConfig>
|
||||
<name>origin</name>
|
||||
<refspec></refspec>
|
||||
<url>file:///home/git/gau.git</url>
|
||||
</hudson.plugins.git.UserRemoteConfig>
|
||||
</userRemoteConfigs>
|
||||
<branches>
|
||||
<hudson.plugins.git.BranchSpec>
|
||||
<name>gau-1.3</name>
|
||||
</hudson.plugins.git.BranchSpec>
|
||||
</branches>
|
||||
<disableSubmodules>false</disableSubmodules>
|
||||
<recursiveSubmodules>false</recursiveSubmodules>
|
||||
<doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations>
|
||||
<authorOrCommitter>false</authorOrCommitter>
|
||||
<clean>false</clean>
|
||||
<wipeOutWorkspace>false</wipeOutWorkspace>
|
||||
<pruneBranches>false</pruneBranches>
|
||||
<remotePoll>false</remotePoll>
|
||||
<ignoreNotifyCommit>false</ignoreNotifyCommit>
|
||||
<useShallowClone>false</useShallowClone>
|
||||
<buildChooser class="hudson.plugins.git.util.DefaultBuildChooser"/>
|
||||
<gitTool>Default</gitTool>
|
||||
<submoduleCfg class="list"/>
|
||||
<relativeTargetDir></relativeTargetDir>
|
||||
<reference></reference>
|
||||
<excludedRegions></excludedRegions>
|
||||
<excludedUsers></excludedUsers>
|
||||
<gitConfigName></gitConfigName>
|
||||
<gitConfigEmail></gitConfigEmail>
|
||||
<skipTag>false</skipTag>
|
||||
<includedRegions></includedRegions>
|
||||
<scmName></scmName>
|
||||
</scm>
|
||||
<canRoam>true</canRoam>
|
||||
<disabled>false</disabled>
|
||||
<blockBuildWhenDownstreamBuilding>false</blockBuildWhenDownstreamBuilding>
|
||||
<blockBuildWhenUpstreamBuilding>false</blockBuildWhenUpstreamBuilding>
|
||||
<triggers>
|
||||
<hudson.triggers.SCMTrigger>
|
||||
<spec>*/10 * * * * </spec>
|
||||
<ignorePostCommitHooks>false</ignorePostCommitHooks>
|
||||
</hudson.triggers.SCMTrigger>
|
||||
</triggers>
|
||||
<concurrentBuild>false</concurrentBuild>
|
||||
<builders>
|
||||
<hudson.tasks.Maven>
|
||||
<targets>clean install</targets>
|
||||
<mavenName>default</mavenName>
|
||||
<properties>skipTests=true</properties>
|
||||
<usePrivateRepository>false</usePrivateRepository>
|
||||
<settings class="jenkins.mvn.DefaultSettingsProvider"/>
|
||||
<globalSettings class="jenkins.mvn.DefaultGlobalSettingsProvider"/>
|
||||
</hudson.tasks.Maven>
|
||||
</builders>
|
||||
<publishers/>
|
||||
<buildWrappers/>
|
||||
</project>
|
||||
@@ -0,0 +1,25 @@
|
||||
<?xml version='1.0' encoding='UTF-8'?>
|
||||
<project>
|
||||
<actions/>
|
||||
<description></description>
|
||||
<keepDependencies>false</keepDependencies>
|
||||
<properties/>
|
||||
<scm class="hudson.scm.NullSCM"/>
|
||||
<canRoam>true</canRoam>
|
||||
<disabled>false</disabled>
|
||||
<blockBuildWhenDownstreamBuilding>false</blockBuildWhenDownstreamBuilding>
|
||||
<blockBuildWhenUpstreamBuilding>false</blockBuildWhenUpstreamBuilding>
|
||||
<triggers/>
|
||||
<concurrentBuild>false</concurrentBuild>
|
||||
<builders>
|
||||
<hudson.tasks.Shell>
|
||||
<command>service apache2 stop;
|
||||
|
||||
/home/rudolf/tmp/letsencrypt/letsencrypt-auto certonly --standalone
|
||||
|
||||
service apache2 start;</command>
|
||||
</hudson.tasks.Shell>
|
||||
</builders>
|
||||
<publishers/>
|
||||
<buildWrappers/>
|
||||
</project>
|
||||
@@ -0,0 +1,118 @@
|
||||
<?xml version='1.0' encoding='UTF-8'?>
|
||||
<project>
|
||||
<actions/>
|
||||
<description></description>
|
||||
<logRotator class="hudson.tasks.LogRotator">
|
||||
<daysToKeep>-1</daysToKeep>
|
||||
<numToKeep>15</numToKeep>
|
||||
<artifactDaysToKeep>-1</artifactDaysToKeep>
|
||||
<artifactNumToKeep>-1</artifactNumToKeep>
|
||||
</logRotator>
|
||||
<keepDependencies>false</keepDependencies>
|
||||
<properties>
|
||||
<hudson.model.ParametersDefinitionProperty>
|
||||
<parameterDefinitions>
|
||||
<net.uaznia.lukanus.hudson.plugins.gitparameter.GitParameterDefinition plugin="git-parameter@0.3-SNAPSHOT">
|
||||
<name>git_revision</name>
|
||||
<description></description>
|
||||
<uuid>ffbad2e7-29e6-44a3-8671-b4eba0a343d4</uuid>
|
||||
<type>PT_BRANCH</type>
|
||||
<branch></branch>
|
||||
<defaultValue></defaultValue>
|
||||
</net.uaznia.lukanus.hudson.plugins.gitparameter.GitParameterDefinition>
|
||||
<hudson.model.BooleanParameterDefinition>
|
||||
<name>skipTests</name>
|
||||
<description></description>
|
||||
<defaultValue>true</defaultValue>
|
||||
</hudson.model.BooleanParameterDefinition>
|
||||
<hudson.model.BooleanParameterDefinition>
|
||||
<name>isDeploy</name>
|
||||
<description></description>
|
||||
<defaultValue>false</defaultValue>
|
||||
</hudson.model.BooleanParameterDefinition>
|
||||
</parameterDefinitions>
|
||||
</hudson.model.ParametersDefinitionProperty>
|
||||
</properties>
|
||||
<scm class="hudson.plugins.git.GitSCM" plugin="git@2.0">
|
||||
<configVersion>2</configVersion>
|
||||
<userRemoteConfigs>
|
||||
<hudson.plugins.git.UserRemoteConfig>
|
||||
<name>origin</name>
|
||||
<url>file:///home/git/app_monitor.git</url>
|
||||
</hudson.plugins.git.UserRemoteConfig>
|
||||
</userRemoteConfigs>
|
||||
<branches>
|
||||
<hudson.plugins.git.BranchSpec>
|
||||
<name>${git_revision}</name>
|
||||
</hudson.plugins.git.BranchSpec>
|
||||
</branches>
|
||||
<doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations>
|
||||
<submoduleCfg class="list"/>
|
||||
<extensions>
|
||||
<hudson.plugins.git.extensions.impl.WipeWorkspace/>
|
||||
</extensions>
|
||||
</scm>
|
||||
<canRoam>true</canRoam>
|
||||
<disabled>false</disabled>
|
||||
<blockBuildWhenDownstreamBuilding>false</blockBuildWhenDownstreamBuilding>
|
||||
<blockBuildWhenUpstreamBuilding>false</blockBuildWhenUpstreamBuilding>
|
||||
<triggers/>
|
||||
<concurrentBuild>false</concurrentBuild>
|
||||
<builders>
|
||||
<hudson.tasks.Maven>
|
||||
<targets>clean
|
||||
install</targets>
|
||||
<mavenName>default</mavenName>
|
||||
<usePrivateRepository>false</usePrivateRepository>
|
||||
<settings class="jenkins.mvn.DefaultSettingsProvider"/>
|
||||
<globalSettings class="jenkins.mvn.DefaultGlobalSettingsProvider"/>
|
||||
</hudson.tasks.Maven>
|
||||
<org.jenkinsci.plugins.conditionalbuildstep.singlestep.SingleConditionalBuilder plugin="conditional-buildstep@1.3.3">
|
||||
<condition class="org.jenkins_ci.plugins.run_condition.core.BooleanCondition" plugin="run-condition@1.0">
|
||||
<token>${isDeploy}</token>
|
||||
</condition>
|
||||
<buildStep class="hudson.plugins.parameterizedtrigger.TriggerBuilder" plugin="parameterized-trigger@2.21">
|
||||
<configs>
|
||||
<hudson.plugins.parameterizedtrigger.BlockableBuildTriggerConfig>
|
||||
<configs>
|
||||
<hudson.plugins.parameterizedtrigger.PredefinedBuildParameters>
|
||||
<properties>contextRoot=monitoring
|
||||
groupID=ua/rudolf/monitor
|
||||
artifactID=server
|
||||
version=1.0
|
||||
type=war</properties>
|
||||
</hudson.plugins.parameterizedtrigger.PredefinedBuildParameters>
|
||||
</configs>
|
||||
<projects>Deploy_tomcat</projects>
|
||||
<condition>ALWAYS</condition>
|
||||
<triggerWithNoParameters>false</triggerWithNoParameters>
|
||||
<block>
|
||||
<buildStepFailureThreshold>
|
||||
<name>FAILURE</name>
|
||||
<ordinal>2</ordinal>
|
||||
<color>RED</color>
|
||||
<completeBuild>true</completeBuild>
|
||||
</buildStepFailureThreshold>
|
||||
<unstableThreshold>
|
||||
<name>UNSTABLE</name>
|
||||
<ordinal>1</ordinal>
|
||||
<color>YELLOW</color>
|
||||
<completeBuild>true</completeBuild>
|
||||
</unstableThreshold>
|
||||
<failureThreshold>
|
||||
<name>FAILURE</name>
|
||||
<ordinal>2</ordinal>
|
||||
<color>RED</color>
|
||||
<completeBuild>true</completeBuild>
|
||||
</failureThreshold>
|
||||
</block>
|
||||
<buildAllNodesWithLabel>false</buildAllNodesWithLabel>
|
||||
</hudson.plugins.parameterizedtrigger.BlockableBuildTriggerConfig>
|
||||
</configs>
|
||||
</buildStep>
|
||||
<runner class="org.jenkins_ci.plugins.run_condition.BuildStepRunner$Fail" plugin="run-condition@1.0"/>
|
||||
</org.jenkinsci.plugins.conditionalbuildstep.singlestep.SingleConditionalBuilder>
|
||||
</builders>
|
||||
<publishers/>
|
||||
<buildWrappers/>
|
||||
</project>
|
||||
@@ -0,0 +1,45 @@
|
||||
<?xml version='1.0' encoding='UTF-8'?>
|
||||
<project>
|
||||
<actions/>
|
||||
<description></description>
|
||||
<logRotator class="hudson.tasks.LogRotator">
|
||||
<daysToKeep>-1</daysToKeep>
|
||||
<numToKeep>10</numToKeep>
|
||||
<artifactDaysToKeep>-1</artifactDaysToKeep>
|
||||
<artifactNumToKeep>-1</artifactNumToKeep>
|
||||
</logRotator>
|
||||
<keepDependencies>false</keepDependencies>
|
||||
<properties/>
|
||||
<scm class="hudson.scm.NullSCM"/>
|
||||
<canRoam>true</canRoam>
|
||||
<disabled>false</disabled>
|
||||
<blockBuildWhenDownstreamBuilding>false</blockBuildWhenDownstreamBuilding>
|
||||
<blockBuildWhenUpstreamBuilding>false</blockBuildWhenUpstreamBuilding>
|
||||
<triggers>
|
||||
<hudson.triggers.TimerTrigger>
|
||||
<spec>0 3 * * *
|
||||
</spec>
|
||||
</hudson.triggers.TimerTrigger>
|
||||
</triggers>
|
||||
<concurrentBuild>false</concurrentBuild>
|
||||
<builders>
|
||||
<hudson.tasks.Shell>
|
||||
<command>/home/cfg/svn_backup/backup_dir.sh /var/lib/mysql /media/DATA/backups/mysql/ mysql</command>
|
||||
</hudson.tasks.Shell>
|
||||
</builders>
|
||||
<publishers>
|
||||
<hudson.plugins.emailext.ExtendedEmailPublisher plugin="email-ext@2.36">
|
||||
<recipientList>$DEFAULT_RECIPIENTS</recipientList>
|
||||
<contentType>default</contentType>
|
||||
<defaultSubject>$DEFAULT_SUBJECT</defaultSubject>
|
||||
<defaultContent>$DEFAULT_CONTENT</defaultContent>
|
||||
<attachmentsPattern></attachmentsPattern>
|
||||
<presendScript>$DEFAULT_PRESEND_SCRIPT</presendScript>
|
||||
<attachBuildLog>false</attachBuildLog>
|
||||
<compressBuildLog>false</compressBuildLog>
|
||||
<replyTo>$DEFAULT_REPLYTO</replyTo>
|
||||
<saveOutput>false</saveOutput>
|
||||
</hudson.plugins.emailext.ExtendedEmailPublisher>
|
||||
</publishers>
|
||||
<buildWrappers/>
|
||||
</project>
|
||||
@@ -0,0 +1,31 @@
|
||||
<?xml version='1.0' encoding='UTF-8'?>
|
||||
<project>
|
||||
<actions/>
|
||||
<description></description>
|
||||
<logRotator class="hudson.tasks.LogRotator">
|
||||
<daysToKeep>-1</daysToKeep>
|
||||
<numToKeep>10</numToKeep>
|
||||
<artifactDaysToKeep>-1</artifactDaysToKeep>
|
||||
<artifactNumToKeep>-1</artifactNumToKeep>
|
||||
</logRotator>
|
||||
<keepDependencies>false</keepDependencies>
|
||||
<properties/>
|
||||
<scm class="hudson.scm.NullSCM"/>
|
||||
<canRoam>true</canRoam>
|
||||
<disabled>false</disabled>
|
||||
<blockBuildWhenDownstreamBuilding>false</blockBuildWhenDownstreamBuilding>
|
||||
<blockBuildWhenUpstreamBuilding>false</blockBuildWhenUpstreamBuilding>
|
||||
<triggers>
|
||||
<hudson.triggers.TimerTrigger>
|
||||
<spec>H/30 * * * *</spec>
|
||||
</hudson.triggers.TimerTrigger>
|
||||
</triggers>
|
||||
<concurrentBuild>false</concurrentBuild>
|
||||
<builders>
|
||||
<hudson.tasks.Shell>
|
||||
<command>/home/cfg/svn_backup/backup_dir.sh /home/svn/svn /media/DATA/backups/svn/ svn</command>
|
||||
</hudson.tasks.Shell>
|
||||
</builders>
|
||||
<publishers/>
|
||||
<buildWrappers/>
|
||||
</project>
|
||||
@@ -0,0 +1,127 @@
|
||||
<?xml version='1.0' encoding='UTF-8'?>
|
||||
<project>
|
||||
<actions/>
|
||||
<description></description>
|
||||
<keepDependencies>false</keepDependencies>
|
||||
<properties>
|
||||
<jenkins.model.BuildDiscarderProperty>
|
||||
<strategy class="hudson.tasks.LogRotator">
|
||||
<daysToKeep>-1</daysToKeep>
|
||||
<numToKeep>15</numToKeep>
|
||||
<artifactDaysToKeep>-1</artifactDaysToKeep>
|
||||
<artifactNumToKeep>-1</artifactNumToKeep>
|
||||
</strategy>
|
||||
</jenkins.model.BuildDiscarderProperty>
|
||||
<hudson.model.ParametersDefinitionProperty>
|
||||
<parameterDefinitions>
|
||||
<net.uaznia.lukanus.hudson.plugins.gitparameter.GitParameterDefinition plugin="git-parameter@0.4.0">
|
||||
<name>git_revision</name>
|
||||
<description></description>
|
||||
<uuid>2beb1658-77d1-44da-b592-0bd49ef05ba0</uuid>
|
||||
<type>PT_BRANCH_TAG</type>
|
||||
<branch></branch>
|
||||
<tagFilter>*</tagFilter>
|
||||
<sortMode>NONE</sortMode>
|
||||
<defaultValue></defaultValue>
|
||||
</net.uaznia.lukanus.hudson.plugins.gitparameter.GitParameterDefinition>
|
||||
<hudson.model.BooleanParameterDefinition>
|
||||
<name>skipTests</name>
|
||||
<description></description>
|
||||
<defaultValue>true</defaultValue>
|
||||
</hudson.model.BooleanParameterDefinition>
|
||||
<hudson.model.BooleanParameterDefinition>
|
||||
<name>isDeploy</name>
|
||||
<description></description>
|
||||
<defaultValue>false</defaultValue>
|
||||
</hudson.model.BooleanParameterDefinition>
|
||||
</parameterDefinitions>
|
||||
</hudson.model.ParametersDefinitionProperty>
|
||||
</properties>
|
||||
<scm class="hudson.plugins.git.GitSCM" plugin="git@2.4.0">
|
||||
<configVersion>2</configVersion>
|
||||
<userRemoteConfigs>
|
||||
<hudson.plugins.git.UserRemoteConfig>
|
||||
<name>origin</name>
|
||||
<url>git@rudolf.com.ua:avr.git</url>
|
||||
<credentialsId>057bac74-b42d-46d3-9c6f-bb1c81491d93</credentialsId>
|
||||
</hudson.plugins.git.UserRemoteConfig>
|
||||
</userRemoteConfigs>
|
||||
<branches>
|
||||
<hudson.plugins.git.BranchSpec>
|
||||
<name>${git_revision}</name>
|
||||
</hudson.plugins.git.BranchSpec>
|
||||
</branches>
|
||||
<doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations>
|
||||
<submoduleCfg class="list"/>
|
||||
<extensions>
|
||||
<hudson.plugins.git.extensions.impl.WipeWorkspace/>
|
||||
<hudson.plugins.git.extensions.impl.PerBuildTag/>
|
||||
</extensions>
|
||||
</scm>
|
||||
<canRoam>true</canRoam>
|
||||
<disabled>false</disabled>
|
||||
<blockBuildWhenDownstreamBuilding>false</blockBuildWhenDownstreamBuilding>
|
||||
<blockBuildWhenUpstreamBuilding>false</blockBuildWhenUpstreamBuilding>
|
||||
<triggers/>
|
||||
<concurrentBuild>false</concurrentBuild>
|
||||
<builders>
|
||||
<hudson.tasks.Maven>
|
||||
<targets>clean
|
||||
install</targets>
|
||||
<mavenName>maven 3.3.9</mavenName>
|
||||
<pom>web_ui/pom.xml</pom>
|
||||
<usePrivateRepository>false</usePrivateRepository>
|
||||
<settings class="jenkins.mvn.DefaultSettingsProvider"/>
|
||||
<globalSettings class="jenkins.mvn.DefaultGlobalSettingsProvider"/>
|
||||
</hudson.tasks.Maven>
|
||||
<org.jenkinsci.plugins.conditionalbuildstep.singlestep.SingleConditionalBuilder plugin="conditional-buildstep@1.3.3">
|
||||
<condition class="org.jenkins_ci.plugins.run_condition.core.BooleanCondition" plugin="run-condition@1.0">
|
||||
<token>${isDeploy}</token>
|
||||
</condition>
|
||||
<buildStep class="hudson.plugins.parameterizedtrigger.TriggerBuilder" plugin="parameterized-trigger@2.30">
|
||||
<configs>
|
||||
<hudson.plugins.parameterizedtrigger.BlockableBuildTriggerConfig>
|
||||
<configs>
|
||||
<hudson.plugins.parameterizedtrigger.NodeParameters/>
|
||||
<hudson.plugins.parameterizedtrigger.PredefinedBuildParameters>
|
||||
<properties>contextRoot=smarthome
|
||||
groupID=ua/rudolf/smarthome
|
||||
artifactID=web-ui
|
||||
version=1.0
|
||||
type=war
|
||||
</properties>
|
||||
</hudson.plugins.parameterizedtrigger.PredefinedBuildParameters>
|
||||
</configs>
|
||||
<projects>Deploy_tomcat</projects>
|
||||
<condition>ALWAYS</condition>
|
||||
<triggerWithNoParameters>false</triggerWithNoParameters>
|
||||
<block>
|
||||
<buildStepFailureThreshold>
|
||||
<name>FAILURE</name>
|
||||
<ordinal>2</ordinal>
|
||||
<color>RED</color>
|
||||
<completeBuild>true</completeBuild>
|
||||
</buildStepFailureThreshold>
|
||||
<unstableThreshold>
|
||||
<name>UNSTABLE</name>
|
||||
<ordinal>1</ordinal>
|
||||
<color>YELLOW</color>
|
||||
<completeBuild>true</completeBuild>
|
||||
</unstableThreshold>
|
||||
<failureThreshold>
|
||||
<name>FAILURE</name>
|
||||
<ordinal>2</ordinal>
|
||||
<color>RED</color>
|
||||
<completeBuild>true</completeBuild>
|
||||
</failureThreshold>
|
||||
</block>
|
||||
<buildAllNodesWithLabel>false</buildAllNodesWithLabel>
|
||||
</hudson.plugins.parameterizedtrigger.BlockableBuildTriggerConfig>
|
||||
</configs>
|
||||
</buildStep>
|
||||
<runner class="org.jenkins_ci.plugins.run_condition.BuildStepRunner$Fail" plugin="run-condition@1.0"/>
|
||||
</org.jenkinsci.plugins.conditionalbuildstep.singlestep.SingleConditionalBuilder>
|
||||
</builders>
|
||||
<publishers/>
|
||||
<buildWrappers/>
|
||||
</project>
|
||||
@@ -0,0 +1,55 @@
|
||||
<?xml version='1.0' encoding='UTF-8'?>
|
||||
<project>
|
||||
<actions/>
|
||||
<description></description>
|
||||
<keepDependencies>false</keepDependencies>
|
||||
<properties/>
|
||||
<scm class="hudson.plugins.git.GitSCM" plugin="git@2.4.0">
|
||||
<configVersion>2</configVersion>
|
||||
<userRemoteConfigs>
|
||||
<hudson.plugins.git.UserRemoteConfig>
|
||||
<url>git@rudolf.com.ua:avr.git</url>
|
||||
<credentialsId>057bac74-b42d-46d3-9c6f-bb1c81491d93</credentialsId>
|
||||
</hudson.plugins.git.UserRemoteConfig>
|
||||
</userRemoteConfigs>
|
||||
<branches>
|
||||
<hudson.plugins.git.BranchSpec>
|
||||
<name>*/master</name>
|
||||
</hudson.plugins.git.BranchSpec>
|
||||
</branches>
|
||||
<doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations>
|
||||
<submoduleCfg class="list"/>
|
||||
<extensions/>
|
||||
</scm>
|
||||
<canRoam>true</canRoam>
|
||||
<disabled>false</disabled>
|
||||
<blockBuildWhenDownstreamBuilding>false</blockBuildWhenDownstreamBuilding>
|
||||
<blockBuildWhenUpstreamBuilding>false</blockBuildWhenUpstreamBuilding>
|
||||
<triggers>
|
||||
<hudson.triggers.SCMTrigger>
|
||||
<spec>H/5 * * * *</spec>
|
||||
<ignorePostCommitHooks>false</ignorePostCommitHooks>
|
||||
</hudson.triggers.SCMTrigger>
|
||||
</triggers>
|
||||
<concurrentBuild>false</concurrentBuild>
|
||||
<builders>
|
||||
<hudson.plugins.parameterizedtrigger.TriggerBuilder plugin="parameterized-trigger@2.30">
|
||||
<configs>
|
||||
<hudson.plugins.parameterizedtrigger.BlockableBuildTriggerConfig>
|
||||
<configs>
|
||||
<hudson.plugins.parameterizedtrigger.PredefinedBuildParameters>
|
||||
<properties>git_revision=origin/master
|
||||
isDeploy=true</properties>
|
||||
</hudson.plugins.parameterizedtrigger.PredefinedBuildParameters>
|
||||
</configs>
|
||||
<projects>smarthome</projects>
|
||||
<condition>ALWAYS</condition>
|
||||
<triggerWithNoParameters>false</triggerWithNoParameters>
|
||||
<buildAllNodesWithLabel>false</buildAllNodesWithLabel>
|
||||
</hudson.plugins.parameterizedtrigger.BlockableBuildTriggerConfig>
|
||||
</configs>
|
||||
</hudson.plugins.parameterizedtrigger.TriggerBuilder>
|
||||
</builders>
|
||||
<publishers/>
|
||||
<buildWrappers/>
|
||||
</project>
|
||||
@@ -0,0 +1,277 @@
|
||||
#ServerRoot "/etc/apache2"
|
||||
|
||||
LockFile ${APACHE_LOCK_DIR}/accept.lock
|
||||
PidFile ${APACHE_PID_FILE}
|
||||
Timeout 300
|
||||
KeepAlive On
|
||||
MaxKeepAliveRequests 100
|
||||
KeepAliveTimeout 5
|
||||
|
||||
<IfModule mpm_prefork_module>
|
||||
StartServers 5
|
||||
MinSpareServers 5
|
||||
MaxSpareServers 10
|
||||
MaxClients 150
|
||||
MaxRequestsPerChild 0
|
||||
</IfModule>
|
||||
|
||||
<IfModule mpm_worker_module>
|
||||
StartServers 2
|
||||
MinSpareThreads 25
|
||||
MaxSpareThreads 75
|
||||
ThreadLimit 64
|
||||
ThreadsPerChild 25
|
||||
MaxClients 150
|
||||
MaxRequestsPerChild 0
|
||||
</IfModule>
|
||||
|
||||
<IfModule mpm_event_module>
|
||||
StartServers 2
|
||||
MinSpareThreads 25
|
||||
MaxSpareThreads 75
|
||||
ThreadLimit 64
|
||||
ThreadsPerChild 25
|
||||
MaxClients 150
|
||||
MaxRequestsPerChild 0
|
||||
</IfModule>
|
||||
|
||||
# These need to be set in /etc/apache2/envvars
|
||||
User ${APACHE_RUN_USER}
|
||||
Group ${APACHE_RUN_GROUP}
|
||||
|
||||
AccessFileName .htaccess
|
||||
|
||||
<Files ~ "^\.ht">
|
||||
Order allow,deny
|
||||
Deny from all
|
||||
Satisfy all
|
||||
</Files>
|
||||
|
||||
DefaultType None
|
||||
|
||||
|
||||
|
||||
HostnameLookups Off
|
||||
|
||||
ErrorLog ${APACHE_LOG_DIR}/error.log
|
||||
|
||||
LogLevel warn
|
||||
|
||||
# Include module configuration:
|
||||
Include mods-enabled/*.load
|
||||
Include mods-enabled/*.conf
|
||||
|
||||
ServerName rudolf.com.ua
|
||||
|
||||
<FilesMatch "\.(cgi|shtml|phtml|php)$">
|
||||
SSLOptions +StdEnvVars
|
||||
</FilesMatch>
|
||||
|
||||
<Directory /usr/lib/cgi-bin>
|
||||
SSLOptions +StdEnvVars
|
||||
</Directory>
|
||||
|
||||
BrowserMatch "MSIE [2-6]" \
|
||||
nokeepalive ssl-unclean-shutdown \
|
||||
downgrade-1.0 force-response-1.0
|
||||
|
||||
# MSIE 7 and newer should be able to use keepalive
|
||||
BrowserMatch "MSIE [17-9]" ssl-unclean-shutdown
|
||||
|
||||
# Include ports listing
|
||||
Include ports.conf
|
||||
|
||||
LogFormat "%v:%p %h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" vhost_combined
|
||||
LogFormat "%h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" combined
|
||||
LogFormat "%h %l %u %t \"%r\" %>s %O" common
|
||||
LogFormat "%{Referer}i -> %U" referer
|
||||
LogFormat "%{User-agent}i" agent
|
||||
|
||||
|
||||
Include conf.d/
|
||||
|
||||
Include macro.conf
|
||||
|
||||
<IfModule mod_ssl.c>
|
||||
<VirtualHost *:443>
|
||||
ServerAdmin rudolfss13@gmail.com
|
||||
ServerName *.rudolf.com.ua
|
||||
|
||||
Redirect 404 /
|
||||
ErrorDocument 404 "Page Not Found"
|
||||
|
||||
SSLEngine on
|
||||
|
||||
SSLCertificateFile /etc/letsencrypt/live/rudolf.com.ua/cert.pem
|
||||
SSLCertificateKeyFile /etc/letsencrypt/live/rudolf.com.ua/privkey.pem
|
||||
SSLCertificateChainFile /etc/letsencrypt/live/rudolf.com.ua/chain.pem
|
||||
</VirtualHost>
|
||||
</IfModule>
|
||||
<VirtualHost *:80>
|
||||
ServerAdmin rudolfss13@gmail.com
|
||||
ServerName *.rudolf.com.ua
|
||||
|
||||
RewriteEngine On
|
||||
RewriteCond %{HTTPS} off
|
||||
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
|
||||
|
||||
</VirtualHost>
|
||||
|
||||
|
||||
## Virtual hosts
|
||||
Use DocRootVHost "rudolf" "/home/www/root"
|
||||
Use DocRootVHost "static.rudolf" "/home/www/static"
|
||||
Use ProxySSLVHost "torrent.rudolf" "/transmission" "http://localhost:9091/transmission" "torrent.rudolf"
|
||||
Use ProxySSLVHost "syncthing.rudolf" "/" "http://localhost:8384/" "syncthing.rudolf"
|
||||
Use ProxySSLVHost "jenkins.rudolf" "/" "http://localhost:8081/" "jenkins.rudolf"
|
||||
# TODO Header edit Location ^http://jenkins.rudolf.com.ua https://jenkins.rudolf.com.ua
|
||||
Use ProxySSLVHost "webmin.rudolf" "/" "http://localhost:10000/" "webmin.rudolf"
|
||||
Use ProxySSLVHost "bitsync.rudolf" "/" "http://localhost:8888/" "bitsync.rudolf"
|
||||
|
||||
<IfModule mod_ssl.c>
|
||||
<VirtualHost *:443>
|
||||
ServerAdmin rudolfss13@gmail.com
|
||||
ServerName wa.rudolf.com.ua
|
||||
|
||||
ProxyPass / https://web.whatsapp.com/
|
||||
ProxyPassReverse / https://web.whatsapp.com/
|
||||
|
||||
# ProxyPass wss://w1.wa.rudolf.com.ua/ws wss://w1.web.whatsapp.com/ws
|
||||
# #ProxyPassReverse wss://w1.wa.rudolf.com.ua/ws wss://w1.web.whatsapp.com/ws
|
||||
# ProxyPass wss://w2.wa.rudolf.com.ua/ws wss://w2.web.whatsapp.com/ws
|
||||
# #ProxyPassReverse wss://w2.wa.rudolf.com.ua/ws wss://w2.web.whatsapp.com/ws
|
||||
# ProxyPass wss://w3.wa.rudolf.com.ua/ws wss://w3.web.whatsapp.com/ws
|
||||
# #ProxyPassReverse wss://w3.wa.rudolf.com.ua/ws wss://w3.web.whatsapp.com/ws
|
||||
# ProxyPass wss://w4.wa.rudolf.com.ua/ws wss://w4.web.whatsapp.com/ws
|
||||
# #ProxyPassReverse wss://w4.wa.rudolf.com.ua/ws wss://w4.web.whatsapp.com/ws
|
||||
# ProxyPass wss://w5.wa.rudolf.com.ua/ws wss://w5.web.whatsapp.com/ws
|
||||
# #ProxyPassReverse wss://w5.wa.rudolf.com.ua/ws wss://w5.web.whatsapp.com/ws
|
||||
# ProxyPass wss://w6.wa.rudolf.com.ua/ws wss://w6.web.whatsapp.com/ws
|
||||
# #ProxyPassReverse wss://w6.wa.rudolf.com.ua/ws wss://w6.web.whatsapp.com/ws
|
||||
# ProxyPass wss://w7.wa.rudolf.com.ua/ws wss://w7.web.whatsapp.com/ws
|
||||
# #ProxyPassReverse wss://w7.wa.rudolf.com.ua/ws wss://w7.web.whatsapp.com/ws
|
||||
# ProxyPass wss://w8.wa.rudolf.com.ua/ws wss://w8.web.whatsapp.com/ws
|
||||
# #ProxyPassReverse wss://w8.wa.rudolf.com.ua/ws wss://w8.web.whatsapp.com/ws
|
||||
|
||||
SSLProxyEngine on
|
||||
|
||||
SetOutputFilter INFLATE;SUBSTITUTE
|
||||
|
||||
Substitute "s|web.whatsapp.com|wa.rudolf.com.ua|ni"
|
||||
|
||||
Header edit* Content-Security-Policy web.whatsapp.com wa.rudolf.com.ua
|
||||
|
||||
SSLEngine on
|
||||
|
||||
SSLCertificateFile /etc/letsencrypt/live/wa.rudolf.com.ua/cert.pem
|
||||
SSLCertificateKeyFile /etc/letsencrypt/live/wa.rudolf.com.ua/privkey.pem
|
||||
SSLCertificateChainFile /etc/letsencrypt/live/wa.rudolf.com.ua/chain.pem
|
||||
|
||||
|
||||
</VirtualHost>
|
||||
</IfModule>
|
||||
|
||||
# TODO smarthome.rudolf.com.ua
|
||||
<IfModule mod_ssl.c>
|
||||
<VirtualHost *:443>
|
||||
|
||||
ServerAdmin rudolfss13@gmail.com
|
||||
ServerName smarthome.rudolf.com.ua
|
||||
|
||||
SSLEngine on
|
||||
|
||||
SSLCertificateFile /etc/letsencrypt/live/smarthome.rudolf.com.ua/cert.pem
|
||||
SSLCertificateKeyFile /etc/letsencrypt/live/smarthome.rudolf.com.ua/privkey.pem
|
||||
SSLCertificateChainFile /etc/letsencrypt/live/smarthome.rudolf.com.ua/chain.pem
|
||||
|
||||
Use GoogleAuth https://smarthome.rudolf.com.ua/oauth2callback /
|
||||
|
||||
<Location />
|
||||
Require claim email:rudolfss13@gmail.com
|
||||
Require claim email:malta4ka@gmail.com
|
||||
</Location>
|
||||
|
||||
# ProxyPass / http://192.168.17.2:8080/smarthome/
|
||||
# ProxyPassReverse / http://192.168.17.2:8080/smarthome/
|
||||
|
||||
ProxyPass / http://192.168.17.3:8080/smarthome/
|
||||
ProxyPassReverse / http://192.168.17.3:8080/smarthome/
|
||||
|
||||
</VirtualHost>
|
||||
</IfModule>
|
||||
<VirtualHost *:80>
|
||||
|
||||
ServerAdmin rudolfss13@gmail.com
|
||||
ServerName smarthome.rudolf.com.ua
|
||||
|
||||
<Location />
|
||||
Order deny,allow
|
||||
Deny from all
|
||||
Allow from 192.168.17.
|
||||
Allow from 5.19.137.112
|
||||
</Location>
|
||||
|
||||
|
||||
SSLEngine off
|
||||
|
||||
# ProxyPass / http://192.168.17.2:8080/smarthome/
|
||||
# ProxyPassReverse / http://192.168.17.2:8080/smarthome/
|
||||
|
||||
ProxyPass / http://192.168.17.3:8080/smarthome/
|
||||
ProxyPassReverse / http://192.168.17.3:8080/smarthome/
|
||||
</VirtualHost>
|
||||
|
||||
|
||||
<IfModule mod_ssl.c>
|
||||
<VirtualHost *:444>
|
||||
|
||||
ServerAdmin rudolfss13@gmail.com
|
||||
ServerName smarthome.rudolf.com.ua
|
||||
|
||||
SSLEngine on
|
||||
|
||||
SSLCertificateFile /etc/letsencrypt/live/smarthome.rudolf.com.ua/cert.pem
|
||||
SSLCertificateKeyFile /etc/letsencrypt/live/smarthome.rudolf.com.ua/privkey.pem
|
||||
SSLCertificateChainFile /etc/letsencrypt/live/smarthome.rudolf.com.ua/chain.pem
|
||||
|
||||
|
||||
<Location ~ ".*manifest.json">
|
||||
AuthType None
|
||||
Require all granted
|
||||
</Location>
|
||||
|
||||
|
||||
Use GoogleAuth https://smarthome.rudolf.com.ua:444/oauth2callback /
|
||||
|
||||
|
||||
# <Location />
|
||||
# Require claim email:rudolfss13@gmail.com
|
||||
# Require claim email:malta4ka@gmail.com
|
||||
# </Location>
|
||||
|
||||
|
||||
ProxyPass / http://192.168.17.106:9999/
|
||||
ProxyPassReverse / http://192.168.17.106:9999/
|
||||
|
||||
</VirtualHost>
|
||||
</IfModule>
|
||||
|
||||
|
||||
# ./letsencrypt-auto renew --standalone
|
||||
# ./letsencrypt-auto certonly --standalone -d rudolf.com.ua
|
||||
|
||||
|
||||
# rudolf.com.ua
|
||||
# jenkins.rudolf.com.ua
|
||||
# torrent.rudolf.com.ua
|
||||
# syncthing.rudolf.com.ua
|
||||
# dev.rudolf.com.ua
|
||||
# ejudge.rudolf.com.ua
|
||||
# webmin.rudolf.com.ua
|
||||
# smarthome.rudolf.com.ua
|
||||
# bitsync.rudolf.com.ua
|
||||
# wa.rudolf.com.ua
|
||||
# static.rudolf.com.ua
|
||||
|
||||
|
||||
#Include sites-enabled/
|
||||
@@ -0,0 +1,54 @@
|
||||
|
||||
|
||||
Use DocRootVHost "static.rudolf" "/home/www/static"
|
||||
Use ProxySSLVHost "torrent.rudolf" "/transmission" "http://localhost:9091/transmission" "torrent.rudolf"
|
||||
Use ProxySSLVHost "syncthing.rudolf" "/" "http://localhost:8384/" "syncthing.rudolf"
|
||||
Use ProxySSLVHost "jenkins.rudolf" "/" "http://localhost:8081/" "jenkins.rudolf"
|
||||
# TODO Header edit Location ^http://jenkins.rudolf.com.ua https://jenkins.rudolf.com.ua
|
||||
Use ProxySSLVHost "webmin.rudolf" "/" "http://localhost:10000/" "webmin.rudolf"
|
||||
Use ProxySSLVHost "bitsync.rudolf" "/" "http://localhost:8888/" "bitsync.rudolf"
|
||||
|
||||
<IfModule mod_ssl.c>
|
||||
<VirtualHost *:443>
|
||||
ServerAdmin rudolfss13@gmail.com
|
||||
ServerName wa.rudolf.com.ua
|
||||
|
||||
ProxyPass / https://web.whatsapp.com/
|
||||
ProxyPassReverse / https://web.whatsapp.com/
|
||||
|
||||
# ProxyPass wss://w1.wa.rudolf.com.ua/ws wss://w1.web.whatsapp.com/ws
|
||||
# #ProxyPassReverse wss://w1.wa.rudolf.com.ua/ws wss://w1.web.whatsapp.com/ws
|
||||
# ProxyPass wss://w2.wa.rudolf.com.ua/ws wss://w2.web.whatsapp.com/ws
|
||||
# #ProxyPassReverse wss://w2.wa.rudolf.com.ua/ws wss://w2.web.whatsapp.com/ws
|
||||
# ProxyPass wss://w3.wa.rudolf.com.ua/ws wss://w3.web.whatsapp.com/ws
|
||||
# #ProxyPassReverse wss://w3.wa.rudolf.com.ua/ws wss://w3.web.whatsapp.com/ws
|
||||
# ProxyPass wss://w4.wa.rudolf.com.ua/ws wss://w4.web.whatsapp.com/ws
|
||||
# #ProxyPassReverse wss://w4.wa.rudolf.com.ua/ws wss://w4.web.whatsapp.com/ws
|
||||
# ProxyPass wss://w5.wa.rudolf.com.ua/ws wss://w5.web.whatsapp.com/ws
|
||||
# #ProxyPassReverse wss://w5.wa.rudolf.com.ua/ws wss://w5.web.whatsapp.com/ws
|
||||
# ProxyPass wss://w6.wa.rudolf.com.ua/ws wss://w6.web.whatsapp.com/ws
|
||||
# #ProxyPassReverse wss://w6.wa.rudolf.com.ua/ws wss://w6.web.whatsapp.com/ws
|
||||
# ProxyPass wss://w7.wa.rudolf.com.ua/ws wss://w7.web.whatsapp.com/ws
|
||||
# #ProxyPassReverse wss://w7.wa.rudolf.com.ua/ws wss://w7.web.whatsapp.com/ws
|
||||
# ProxyPass wss://w8.wa.rudolf.com.ua/ws wss://w8.web.whatsapp.com/ws
|
||||
# #ProxyPassReverse wss://w8.wa.rudolf.com.ua/ws wss://w8.web.whatsapp.com/ws
|
||||
|
||||
SSLProxyEngine on
|
||||
|
||||
SetOutputFilter INFLATE;SUBSTITUTE
|
||||
|
||||
Substitute "s|web.whatsapp.com|wa.rudolf.com.ua|ni"
|
||||
|
||||
Header edit* Content-Security-Policy web.whatsapp.com wa.rudolf.com.ua
|
||||
|
||||
SSLEngine on
|
||||
|
||||
SSLCertificateFile /etc/letsencrypt/live/wa.rudolf.com.ua/cert.pem
|
||||
SSLCertificateKeyFile /etc/letsencrypt/live/wa.rudolf.com.ua/privkey.pem
|
||||
SSLCertificateChainFile /etc/letsencrypt/live/wa.rudolf.com.ua/chain.pem
|
||||
|
||||
|
||||
</VirtualHost>
|
||||
</IfModule>
|
||||
|
||||
|
||||
@@ -0,0 +1,52 @@
|
||||
analysis-core
|
||||
ant
|
||||
antisamy-markup-formatter
|
||||
build-env-propagator
|
||||
build-pipeline-plugin
|
||||
cobertura
|
||||
conditional-buildstep
|
||||
credentials+
|
||||
cvs
|
||||
dependencyanalyzer
|
||||
deploy
|
||||
display-url-api+
|
||||
email-ext
|
||||
envinject
|
||||
external-monitor-job
|
||||
gcal
|
||||
git+
|
||||
git-client+
|
||||
git-parameter
|
||||
javadoc
|
||||
jquery
|
||||
jshint-checkstyle
|
||||
jslint-checkstyle
|
||||
junit+
|
||||
junit-realtime-test-reporter
|
||||
ldap
|
||||
m2release
|
||||
mailer+
|
||||
mapdb-api
|
||||
matrix-auth
|
||||
matrix-project+
|
||||
maven-metadata-plugin
|
||||
maven-plugin
|
||||
pam-auth
|
||||
parameterized-trigger
|
||||
performance
|
||||
run-condition
|
||||
scm-api+
|
||||
script-security+
|
||||
seleniumhtmlreport
|
||||
ssh-agent
|
||||
ssh-credentials+
|
||||
ssh-slaves
|
||||
structs+
|
||||
subversion
|
||||
testInProgress
|
||||
token-macro
|
||||
translation
|
||||
windows-slaves
|
||||
workflow-scm-step+
|
||||
workflow-step-api+
|
||||
xunit
|
||||
@@ -0,0 +1,43 @@
|
||||
<VirtualHost *:80>
|
||||
|
||||
ServerAdmin rudolfss13@gmail.com
|
||||
ServerName smarthome.rudolf.com.ua
|
||||
|
||||
<Location />
|
||||
Order deny,allow
|
||||
Deny from all
|
||||
Allow from 192.168.17.
|
||||
Allow from 5.19.137.112
|
||||
</Location>
|
||||
|
||||
|
||||
# SSLEngine off
|
||||
|
||||
# ProxyPass / http://192.168.17.2:8080/smarthome/
|
||||
# ProxyPassReverse / http://192.168.17.2:8080/smarthome/
|
||||
|
||||
ProxyPass / http://192.168.17.3:8080/smarthome/
|
||||
ProxyPassReverse / http://192.168.17.3:8080/smarthome/
|
||||
</VirtualHost>
|
||||
|
||||
<VirtualHost *:80>
|
||||
|
||||
ServerAdmin rudolfss13@gmail.com
|
||||
ServerName rudolf.com.ua
|
||||
|
||||
<Location />
|
||||
Order deny,allow
|
||||
Deny from all
|
||||
Allow from 192.168.17.
|
||||
Allow from 5.19.137.112
|
||||
</Location>
|
||||
|
||||
|
||||
# SSLEngine off
|
||||
|
||||
ProxyPass / http://192.168.17.2/
|
||||
ProxyPassReverse / http://192.168.17.2/
|
||||
|
||||
# ProxyPass / http://192.168.17.3:8080/smarthome/
|
||||
# ProxyPassReverse / http://192.168.17.3:8080/smarthome/
|
||||
</VirtualHost>
|
||||
@@ -0,0 +1,28 @@
|
||||
# If you just change the port or add more ports here, you will likely also
|
||||
# have to change the VirtualHost statement in
|
||||
# /etc/apache2/sites-enabled/000-default
|
||||
# This is also true if you have upgraded from before 2.2.9-3 (i.e. from
|
||||
# Debian etch). See /usr/share/doc/apache2.2-common/NEWS.Debian.gz and
|
||||
# README.Debian.gz
|
||||
|
||||
NameVirtualHost *:80
|
||||
Listen 80
|
||||
|
||||
<IfModule mod_ssl.c>
|
||||
# If you add NameVirtualHost *:443 here, you will also have to change
|
||||
# the VirtualHost statement in /etc/apache2/sites-available/default-ssl
|
||||
# to <VirtualHost *:443>
|
||||
# Server Name Indication for SSL named virtual hosts is currently not
|
||||
# supported by MSIE on Windows XP.
|
||||
NameVirtualHost *:443
|
||||
NameVirtualHost *:444
|
||||
Listen 443
|
||||
Listen 444
|
||||
|
||||
</IfModule>
|
||||
|
||||
<IfModule mod_gnutls.c>
|
||||
Listen 443
|
||||
Listen 444
|
||||
</IfModule>
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
<?xml version='1.0' encoding='utf-8'?>
|
||||
<tomcat-users>
|
||||
<role rolename="manager-gui"/>
|
||||
<role rolename="admin-gui" />
|
||||
<role rolename="" />
|
||||
<user username="tomcat" password="fzR8kJ1io6FF3sSM" roles="manager-gui,admin-gui"/>
|
||||
<user username="deployer" password="deployer" roles="manager-script"/>
|
||||
</tomcat-users>
|
||||
@@ -1,37 +0,0 @@
|
||||
---
|
||||
|
||||
- hosts: apache
|
||||
become: yes
|
||||
|
||||
vars:
|
||||
http_port: 80
|
||||
https_port: 443
|
||||
domain: rudolf.com.ua
|
||||
|
||||
tasks:
|
||||
|
||||
- name: install apache2
|
||||
apt: name=apache2 update_cache=yes state=latest
|
||||
|
||||
- name: apache2 listen on port {{ http_port }} and {{ https_port }}
|
||||
lineinfile:
|
||||
dest: /etc/apache2/ports.conf
|
||||
regexp: "{{ item.regexp }}"
|
||||
line: "{{ item.line }}"
|
||||
state: present
|
||||
with_items:
|
||||
- { regexp: "^.*Listen {{ http_port }}", line: "Listen {{ http_port }}" }
|
||||
- { regexp: "^.*Listen {{ https_port }}", line: "Listen {{ https_port }}" }
|
||||
|
||||
notify:
|
||||
- restart apache2
|
||||
|
||||
|
||||
- name: enabled mod_proxy_http
|
||||
apache2_module: name=proxy_http state=present
|
||||
notify:
|
||||
- restart apache2
|
||||
|
||||
handlers:
|
||||
- name: restart apache2
|
||||
service: name=apache2 state=restarted
|
||||
+2
-2
@@ -22,7 +22,7 @@
|
||||
|
||||
- name: create service file
|
||||
copy:
|
||||
src: syncthing.service
|
||||
src: syncthing/syncthing.service
|
||||
dest: /etc/systemd/system/syncthing.service
|
||||
mode: 755
|
||||
register: systemd_conf
|
||||
@@ -35,7 +35,7 @@
|
||||
|
||||
- name: create config file
|
||||
copy:
|
||||
src: config.xml
|
||||
src: syncthing/config.xml
|
||||
dest: ~/.config/syncthing/config.xml
|
||||
become_user: "{{ user }}"
|
||||
|
||||
|
||||
+32
@@ -0,0 +1,32 @@
|
||||
---
|
||||
- hosts: serva4og
|
||||
vars:
|
||||
user: rudolf
|
||||
become: yes
|
||||
|
||||
tasks:
|
||||
|
||||
- name: install packages
|
||||
apt: name={{ item }} update_cache=yes state=latest
|
||||
with_items:
|
||||
- docker.io
|
||||
- python-docker
|
||||
|
||||
- name: user {{ user }}
|
||||
user:
|
||||
name: "{{ user }}"
|
||||
groups: docker
|
||||
append: yes
|
||||
|
||||
- name: run tomcat docker
|
||||
docker:
|
||||
name: tomcat
|
||||
image: tomcat:jre8
|
||||
detach: True
|
||||
net: default
|
||||
ports:
|
||||
- "0.0.0.0:{{ tomcat_port }}:8080"
|
||||
volumes:
|
||||
- "/var/tomcat:/usr/local/tomcat/webapps"
|
||||
|
||||
state: reloaded
|
||||
Reference in New Issue
Block a user