data_reports: create a new data-reports vm
This vm is to allow the creation of reports about contibutor numbers from datanommer db. It should be short lived. Once the reports are developed, they can be moved to openshift or some other place. Signed-off-by: Kevin Fenzi <kevin@scrye.com>
This commit is contained in:
parent
13d8ffbe03
commit
ee244ae706
4 changed files with 65 additions and 0 deletions
22
inventory/group_vars/data_reports
Normal file
22
inventory/group_vars/data_reports
Normal file
|
@ -0,0 +1,22 @@
|
|||
---
|
||||
# Define resources for this group of hosts here.
|
||||
csi_primary_contact: "#fedora-admin"
|
||||
csi_purpose: for developing reports against datanommerdb
|
||||
csi_relationship: |
|
||||
- This vm is for creating reports whicl once automated will be moved elsewhere.
|
||||
csi_security_category: Low
|
||||
deployment_type: prod
|
||||
ipa_client_shell_groups:
|
||||
- fi-apprentice
|
||||
- sysadmin-noc
|
||||
- sysadmin-veteran
|
||||
- sysadmin-web
|
||||
ipa_client_sudo_groups:
|
||||
- sysadmin-web
|
||||
ipa_host_group: datareports
|
||||
ipa_host_group_desc: data reports
|
||||
lvm_size: 30000
|
||||
max_mem_size: 8192
|
||||
mem_size: 8192
|
||||
num_cpus: 2
|
||||
primary_auth_source: ipa
|
|
@ -0,0 +1,8 @@
|
|||
---
|
||||
datacenter: iad2
|
||||
eth0_ipv4_gw: 10.3.163.254
|
||||
eth0_ipv4_ip: 10.3.163.113
|
||||
ks_repo: http://10.3.163.35/pub/fedora/linux/releases/37/Server/x86_64/os/
|
||||
ks_url: http://10.3.163.35/repo/rhel/ks/kvm-fedora
|
||||
vmhost: vmhost-x86-05.iad2.fedoraproject.org
|
||||
volgroup: /dev/vg_guests
|
|
@ -69,6 +69,9 @@ bastion02.iad2.fedoraproject.org
|
|||
centos-ipa-client01.stg.iad2.fedoraproject.org
|
||||
centos-ipa-client02.stg.iad2.fedoraproject.org
|
||||
|
||||
[data_reports]
|
||||
data-reports01.iad2.fedoraproject.org
|
||||
|
||||
[bvirthost]
|
||||
# bvirthost01.stg.iad2.fedoraproject.org
|
||||
bvmhost-x86-01.iad2.fedoraproject.org
|
||||
|
|
32
playbooks/groups/data-reports.yml
Normal file
32
playbooks/groups/data-reports.yml
Normal file
|
@ -0,0 +1,32 @@
|
|||
# create a data-reports vm
|
||||
#
|
||||
|
||||
- import_playbook: "/srv/web/infra/ansible/playbooks/include/virt-create.yml myhosts=data_reports"
|
||||
|
||||
- name: make the box be real
|
||||
hosts: data_reports
|
||||
user: root
|
||||
gather_facts: True
|
||||
|
||||
vars_files:
|
||||
- /srv/web/infra/ansible/vars/global.yml
|
||||
- "/srv/private/ansible/vars.yml"
|
||||
- /srv/web/infra/ansible/vars/{{ ansible_distribution }}.yml
|
||||
|
||||
pre_tasks:
|
||||
- import_tasks: "{{ tasks_path }}/yumrepos.yml"
|
||||
|
||||
roles:
|
||||
- base
|
||||
- rkhunter
|
||||
- nagios_client
|
||||
- hosts
|
||||
- ipa/client
|
||||
- collectd/base
|
||||
- sudo
|
||||
|
||||
tasks:
|
||||
- import_tasks: "{{ tasks_path }}/motd.yml"
|
||||
|
||||
handlers:
|
||||
- import_tasks: "{{ handlers_path }}/restart_services.yml"
|
Loading…
Add table
Add a link
Reference in a new issue