el8_migration #8
6
Jenkinsfile
vendored
6
Jenkinsfile
vendored
@@ -8,9 +8,9 @@ pipeline {
|
|||||||
base64File(name: "rootca", description: "RootCA (only for 'Install Rproxy')")
|
base64File(name: "rootca", description: "RootCA (only for 'Install Rproxy')")
|
||||||
base64File(name: "rootca_key", description: "RootCA key (only for 'Install Rproxy')")
|
base64File(name: "rootca_key", description: "RootCA key (only for 'Install Rproxy')")
|
||||||
booleanParam(name: "config_add", defaultValue: true, description: "Add config")
|
booleanParam(name: "config_add", defaultValue: true, description: "Add config")
|
||||||
string(name: "rproxy_service_name", defaultValue: "", trim: true, description: "Service name (for 'Add config' job only)")
|
string(name: "rproxy_service_name", defaultValue: "", trim: true, description: "Service name, ex: jenkins (for 'Add config' job only)")
|
||||||
string(name: "rproxy_service_port", defaultValue: "", trim: true, description: "Service port (for 'Add config' job only)")
|
string(name: "rproxy_service_port", defaultValue: "", trim: true, description: "Service port, ex: 8080 (for 'Add config' job only)")
|
||||||
string(name: "rproxy_service_address", defaultValue: "", trim: true, description: "Service address (for 'Add config' job only)")
|
string(name: "rproxy_service_address", defaultValue: "", trim: true, description: "Service address, ex: 10.10.10.10 (for 'Add config' job only)")
|
||||||
|
|
||||||
}
|
}
|
||||||
stages {
|
stages {
|
||||||
|
|||||||
6
ansible.cfg
Normal file
6
ansible.cfg
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
[defaults]
|
||||||
|
hostfile = hosts.ini
|
||||||
|
log_path = ansible-log.log
|
||||||
|
host_key_checking = false
|
||||||
|
interpreter_python = /usr/bin/python3
|
||||||
|
forks = 30
|
||||||
@@ -7,28 +7,32 @@
|
|||||||
- install
|
- install
|
||||||
- add_config
|
- add_config
|
||||||
|
|
||||||
- name: Install dependencies (Debian)
|
- name: Install docker (Debian)
|
||||||
ansible.builtin.apt:
|
ansible.builtin.apt:
|
||||||
name:
|
name:
|
||||||
- docker.io
|
- docker.io
|
||||||
- docker-compose
|
- docker-compose
|
||||||
update_cache: yes
|
update_cache: yes
|
||||||
when: ansible_facts['os_family'] == "Debian"
|
when: ansible_facts['os_family'] == "Debian"
|
||||||
|
tags: install
|
||||||
|
|
||||||
- name: Install dependencies (RHEL)
|
- name: Install dependencies RHEL
|
||||||
ansible.builtin.pip:
|
block:
|
||||||
name:
|
- name: Install docker (RHEL)
|
||||||
- docker
|
ansible.builtin.pip:
|
||||||
- docker-compose
|
name:
|
||||||
when: ansible_facts['os_family'] == "RedHat"
|
- docker
|
||||||
|
- docker-compose
|
||||||
|
when: ansible_facts['os_family'] == "RedHat"
|
||||||
|
|
||||||
- name: Enable docker (RHEL)
|
- name: Enable docker (RHEL)
|
||||||
ansible.builtin.systemd:
|
ansible.builtin.systemd:
|
||||||
name: docker
|
name: docker
|
||||||
state: restarted
|
state: restarted
|
||||||
enabled: true
|
enabled: true
|
||||||
daemon_reload: true
|
daemon_reload: true
|
||||||
when: ansible_facts['os_family'] == "RedHat"
|
when: ansible_facts['os_family'] == "RedHat"
|
||||||
|
tags: install
|
||||||
|
|
||||||
- name: Install rproxy
|
- name: Install rproxy
|
||||||
block:
|
block:
|
||||||
|
|||||||
Reference in New Issue
Block a user