Freeze Break Request: Add test system to ansible

Stephen John Smoogen smooge at gmail.com
Wed Sep 3 00:40:13 UTC 2014


This is a box to work on repo work between CentOS and EPEL without touching
main hardware. Should not affect any running system.

diff --git a/inventory/host_vars/junk02.phx2.fedoraproject.org
b/inventory/host_vars/junk02.phx2.fedoraproject.org
new file mode 100644
index 0000000..9401810
--- /dev/null
+++ b/inventory/host_vars/junk02.phx2.fedoraproject.org
@@ -0,0 +1,8 @@
+---
+datacenter: phx2
+nm: 255.255.255.0
+gw: 10.5.126.254
+fas_client_groups: sysadmin-main
+dns: 10.5.126.21
+eth0_ip: 10.5.126.8
+freezes:false
diff --git a/inventory/inventory b/inventory/inventory
index 4733757..0ed3dd8 100644
--- a/inventory/inventory
+++ b/inventory/inventory
@@ -436,6 +436,8 @@ smtp-mm-ib01.fedoraproject.org
 smtp-mm-coloamer01.fedoraproject.org
 smtp-mm-tummy01.fedoraproject.org

+[spare]
+junk02.phx2.fedoraproject.org
 #
 # All staging hosts should be in this group too.
 #
diff --git a/playbooks/hosts/junk02.phx2.fedoraproject.org.yml
b/playbooks/hosts/junk02.phx2.fedoraproject.org.yml
new file mode 100644
index 0000000..5f492ef
--- /dev/null
+++ b/playbooks/hosts/junk02.phx2.fedoraproject.org.yml
@@ -0,0 +1,30 @@
+# This is a basic playbook
+
+- name: make basic box
+  hosts: junk02.phx2.fedoraproject.org
+  user: root
+  accelerate: "{{ accelerated }}"
+  gather_facts: True
+
+  vars_files:
+   - /srv/web/infra/ansible/vars/global.yml
+   - "{{ private }}/vars.yml"
+   - /srv/web/infra/ansible/vars/{{ ansible_distribution }}.yml
+
+  roles:
+  - base
+  - rkhunter
+  - nagios_client
+  - hosts
+  - fas_client
+  - collectd/base
+  - sudo
+
+  tasks:
+  - include: "{{ tasks }}/yumrepos.yml"
+  - include: "{{ tasks }}/2fa_client.yml"
+  - include: "{{ tasks }}/motd.yml"
+
+  handlers:
+  - include: "{{ handlers }}/restart_services.yml"
+  - include: "{{ handlers }}/semanage.yml"


-- 
Stephen J Smoogen.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.fedoraproject.org/pipermail/infrastructure/attachments/20140902/7a8d3a05/attachment.html>


More information about the infrastructure mailing list