Add jenkins01.home.foo.sh
This commit is contained in:
parent
7258cb04fd
commit
1361dcd01c
4 changed files with 42 additions and 0 deletions
7
group_vars/jenkins.yml
Normal file
7
group_vars/jenkins.yml
Normal file
|
@ -0,0 +1,7 @@
|
|||
---
|
||||
datadisks:
|
||||
- 100
|
||||
|
||||
firewall_in:
|
||||
- {proto: tcp, port: 22, from: [172.20.20.0/22]}
|
||||
- {proto: tcp, port: 443, from: [172.20.20.0/22]}
|
6
host_vars/jenkins01.home.foo.sh.yml
Normal file
6
host_vars/jenkins01.home.foo.sh.yml
Normal file
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
vmhost: vmhost01.home.foo.sh
|
||||
network_interfaces:
|
||||
- device: eth0
|
||||
vlan: 20
|
||||
mac: "52:54:00:ac:dc:47"
|
4
hosts
4
hosts
|
@ -14,6 +14,9 @@ git02.home.foo.sh
|
|||
[gw]
|
||||
gw01.home.foo.sh
|
||||
|
||||
[jenkins]
|
||||
jenkins01.home.foo.sh
|
||||
|
||||
[ldap]
|
||||
ldap01.home.foo.sh
|
||||
ldap02.home.foo.sh
|
||||
|
@ -67,6 +70,7 @@ atl01.vultr.foo.sh
|
|||
[centos8:children]
|
||||
adm
|
||||
git
|
||||
jenkins
|
||||
mail
|
||||
mirror
|
||||
munin
|
||||
|
|
25
playbooks/jenkins.yml
Normal file
25
playbooks/jenkins.yml
Normal file
|
@ -0,0 +1,25 @@
|
|||
---
|
||||
- import_playbook: "include/deploy-kvm-guest.yml myhosts=jenkins"
|
||||
|
||||
- name: configure instance
|
||||
hosts: jenkins
|
||||
user: root
|
||||
gather_facts: true
|
||||
|
||||
pre_tasks:
|
||||
- name: mount /export
|
||||
mount:
|
||||
name: /export
|
||||
src: LABEL=/export
|
||||
fstype: xfs
|
||||
opts: noatime,noexec,nosuid,nodev
|
||||
passno: "0"
|
||||
dump: "0"
|
||||
state: mounted
|
||||
|
||||
vars_files:
|
||||
- "{{ ansible_private }}/vars.yml"
|
||||
|
||||
roles:
|
||||
- base
|
||||
- jenkins
|
Loading…
Add table
Reference in a new issue