diff --git a/inventory/group_vars/newhosted b/inventory/group_vars/newhosted new file mode 100644 index 0000000000..6a1b0bb2f2 --- /dev/null +++ b/inventory/group_vars/newhosted @@ -0,0 +1,36 @@ +--- +# Define resources for this group of hosts here. +lvm_size: 250000 +mem_size: 8192 +num_cpus: 4 + +# for systems that do not match the above - specify the same parameter in +# the host_vars/$hostname file + +tcp_ports: [ 22, 25, 80, 443 ] + +fas_client_groups: sysadmin-noc,sysadmin-web,fi-apprentice + +freezes: false +postfix_group: vpn + +# Configuration for the git-daemon/server +git_group: git +git_port: 9418 +git_server: /usr/libexec/git-core/git-daemon +git_server_args: --export-all --syslog --inetd --verbose +git_basepath: /srv/git/ +git_daemon_user: git + +# For the MOTD +csi_security_category: Low +csi_primary_contact: Fedora admins - admin@fedoraproject.org +csi_purpose: Run the fedorahosted.org instances +csi_relationship: | + There are a few things running here: + + - Apache to service cgit and other content + + - Git repos + + - This host is not yet in service. diff --git a/inventory/host_vars/hosted01.fedoraproject.org b/inventory/host_vars/hosted01.fedoraproject.org new file mode 100644 index 0000000000..b8975bcca3 --- /dev/null +++ b/inventory/host_vars/hosted01.fedoraproject.org @@ -0,0 +1,14 @@ +--- +nm: 255.255.255.128 +gw: 140.211.169.193 +dns: 8.8.8.8 + +ks_url: http://infrastructure.fedoraproject.org/repo/rhel/ks/kvm-rhel-7-ext +ks_repo: http://infrastructure.fedoraproject.org/repo/rhel/RHEL7-x86_64/ + +volgroup: /dev/vg_guests + +eth0_ip: 140.211.169.207 + +vmhost: osuosl03.fedoraproject.org +datacenter: osuosl diff --git a/inventory/inventory b/inventory/inventory index 33f75cfceb..96843b673c 100644 --- a/inventory/inventory +++ b/inventory/inventory @@ -313,6 +313,9 @@ fas03.phx2.fedoraproject.org [fas-stg] fas01.stg.phx2.fedoraproject.org +[newhosted] +hosted01.fedoraproject.org + [hosted] hosted03.fedoraproject.org hosted-lists01.fedoraproject.org diff --git a/playbooks/groups/hosted.yml b/playbooks/groups/hosted.yml new file mode 100644 index 0000000000..7cedf5ddbe --- /dev/null +++ b/playbooks/groups/hosted.yml @@ -0,0 +1,29 @@ +- include: "/srv/web/infra/ansible/playbooks/include/virt-create.yml myhosts=newhosted" + +- name: make the boxen be real for real + hosts: newhosted + 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 + + roles: + - base + - rkhunter + - nagios_client + - hosts + - fas_client + - sudo + - collectd/base + - openvpn/client + + tasks: + - include: "{{ tasks }}/yumrepos.yml" + - include: "{{ tasks }}/2fa_client.yml" + - include: "{{ tasks }}/motd.yml" + + handlers: + - include: "{{ handlers }}/restart_services.yml"