added host_setup samples
authorAndrew Tridgell <tridge@samba.org>
Mon, 7 Jul 2008 07:31:59 +0000 (17:31 +1000)
committerAndrew Tridgell <tridge@samba.org>
Mon, 7 Jul 2008 07:31:59 +0000 (17:31 +1000)
host_setup/etc/bind/named.conf.local [new file with mode: 0644]
host_setup/etc/libvirt/qemu/networks/autostart/net1.xml [new symlink]
host_setup/etc/libvirt/qemu/networks/autostart/net2.xml [new symlink]
host_setup/etc/libvirt/qemu/networks/autostart/net3.xml [new symlink]
host_setup/etc/libvirt/qemu/networks/net1.xml [new file with mode: 0644]
host_setup/etc/libvirt/qemu/networks/net2.xml [new file with mode: 0644]
host_setup/etc/libvirt/qemu/networks/net3.xml [new file with mode: 0644]
host_setup/etc/squid/squid.conf [new file with mode: 0644]

diff --git a/host_setup/etc/bind/named.conf.local b/host_setup/etc/bind/named.conf.local
new file mode 100644 (file)
index 0000000..69c91a4
--- /dev/null
@@ -0,0 +1,23 @@
+//
+// Do any local configuration here
+//
+
+// Consider adding the 1918 zones here, if they are not used in your
+// organization
+//include "/etc/bind/zones.rfc1918";
+
+
+// point these to the windows domain controller for your virtual cluster
+zone "vsofs1.com" IN {
+        type forward;
+        forwarders {
+                   10.0.0.100;
+        };
+};
+
+zone "0.10.in-addr.arpa" {
+        type forward;
+        forwarders {
+                   10.0.0.100;
+        };
+};
diff --git a/host_setup/etc/libvirt/qemu/networks/autostart/net1.xml b/host_setup/etc/libvirt/qemu/networks/autostart/net1.xml
new file mode 120000 (symlink)
index 0000000..1073988
--- /dev/null
@@ -0,0 +1 @@
+/etc/libvirt/qemu/networks/net1.xml
\ No newline at end of file
diff --git a/host_setup/etc/libvirt/qemu/networks/autostart/net2.xml b/host_setup/etc/libvirt/qemu/networks/autostart/net2.xml
new file mode 120000 (symlink)
index 0000000..a81e218
--- /dev/null
@@ -0,0 +1 @@
+/etc/libvirt/qemu/networks/net2.xml
\ No newline at end of file
diff --git a/host_setup/etc/libvirt/qemu/networks/autostart/net3.xml b/host_setup/etc/libvirt/qemu/networks/autostart/net3.xml
new file mode 120000 (symlink)
index 0000000..5b3f1b0
--- /dev/null
@@ -0,0 +1 @@
+/etc/libvirt/qemu/networks/net3.xml
\ No newline at end of file
diff --git a/host_setup/etc/libvirt/qemu/networks/net1.xml b/host_setup/etc/libvirt/qemu/networks/net1.xml
new file mode 100644 (file)
index 0000000..a51d7fe
--- /dev/null
@@ -0,0 +1,11 @@
+<network>
+  <name>net1</name>
+  <uuid>d4e3a337-fd61-4410-b275-f6c0599fa74f</uuid>
+  <forward/>
+  <bridge name='virbr0' stp='on' forwardDelay='0' />
+  <ip address='10.0.0.1' netmask='255.255.255.0'>
+    <dhcp>
+      <range start='10.0.0.2' end='10.0.0.254' />
+    </dhcp>
+  </ip>
+</network>
diff --git a/host_setup/etc/libvirt/qemu/networks/net2.xml b/host_setup/etc/libvirt/qemu/networks/net2.xml
new file mode 100644 (file)
index 0000000..94edb47
--- /dev/null
@@ -0,0 +1,10 @@
+<network>
+  <name>net2</name>
+  <uuid>d4e3a338-fd61-4410-b275-f6c0599fa74f</uuid>
+  <bridge name='virbr1' stp='on' forwardDelay='0' />
+  <ip address='10.0.1.1' netmask='255.255.255.0'>
+    <dhcp>
+      <range start='10.0.1.2' end='10.0.1.254' />
+    </dhcp>
+  </ip>
+</network>
diff --git a/host_setup/etc/libvirt/qemu/networks/net3.xml b/host_setup/etc/libvirt/qemu/networks/net3.xml
new file mode 100644 (file)
index 0000000..022c6ff
--- /dev/null
@@ -0,0 +1,10 @@
+<network>
+  <name>net3</name>
+  <uuid>d4e3a337-ff61-4410-b275-f6c0599fa74f</uuid>
+  <bridge name='virbr2' stp='on' forwardDelay='0' />
+  <ip address='10.0.2.1' netmask='255.255.255.0'>
+    <dhcp>
+      <range start='10.0.2.2' end='10.0.2.254' />
+    </dhcp>
+  </ip>
+</network>
diff --git a/host_setup/etc/squid/squid.conf b/host_setup/etc/squid/squid.conf
new file mode 100644 (file)
index 0000000..f8260d7
--- /dev/null
@@ -0,0 +1,148 @@
+# this is a basic squid config to allow the virtual nodes
+# to connect to the mainz fscc-install server via a cache
+
+http_port 3128
+hierarchy_stoplist cgi-bin ?
+
+acl QUERY urlpath_regex cgi-bin \?
+cache deny QUERY
+acl apache rep_header Server ^Apache
+broken_vary_encoding allow apache
+
+# we need to allow caching of large objects (for ISOs, RPMs etc)
+maximum_object_size 4096 MB
+
+# a nice big cache - 50G in this case
+cache_dir ufs /var/spool/squid 50000 16 256
+
+access_log /var/log/squid/access.log squid
+hosts_file /etc/hosts
+refresh_pattern .              0       20%     4320
+acl all src 0.0.0.0/0.0.0.0
+acl manager proto cache_object
+acl localhost src 127.0.0.1/255.255.255.255
+
+acl our_networks src 10.0.0.0/8
+http_access allow our_networks
+http_access allow localhost
+
+http_access deny all
+icp_access allow all
+visible_hostname svart
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+append_domain .au.ibm.com
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+coredump_dir /var/spool/squid
+
+
+
+
+
+
+extension_methods REPORT MERGE MKACTIVITY CHECKOUT
+
+
+
+
+
+
+
+
+
+
+
+