summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Crute <mcrute@gmail.com>2015-07-29 18:21:33 -0700
committerMike Crute <mcrute@gmail.com>2015-07-29 18:21:33 -0700
commit5b0d3afabf789e5633775ca76c7e697cad92333f (patch)
treee20d1886dc3253b7a62f2ae5e0029fef1da13da6
downloadyardmaster_config-5b0d3afabf789e5633775ca76c7e697cad92333f.tar.bz2
yardmaster_config-5b0d3afabf789e5633775ca76c7e697cad92333f.tar.xz
yardmaster_config-5b0d3afabf789e5633775ca76c7e697cad92333f.zip
Final commit before moving to git.HEADmaster
-rw-r--r--hosts.xml34
-rw-r--r--services.xml69
-rw-r--r--templates/core.xml31
-rw-r--r--templates/cweisel1.xml12
-rw-r--r--templates/site_hd24tools.xml3
-rw-r--r--templates/softgroup1.xml19
-rw-r--r--templates/web_core.xml26
7 files changed, 194 insertions, 0 deletions
diff --git a/hosts.xml b/hosts.xml
new file mode 100644
index 0000000..1a5e7b1
--- /dev/null
+++ b/hosts.xml
@@ -0,0 +1,34 @@
1<?xml version="1.0"?>
2<configuration>
3<host name="softgroup1" description="">
4 <ip address="72.14.181.137" name="softgroup1"
5 device="eth0">
6 <alias name="pompom" />
7 </ip>
8 <ip address="192.168.136.9" name="softgroup1-back"
9 device="eth0:0" />
10 <location name="dallas" />
11 <role name="softgroup1" />
12</host>
13
14<host name="mca1" description="">
15 <ip address="72.14.187.34" name="mca1" device="eth0">
16 <alias name="marzipan" />
17 </ip>
18 <ip address="192.168.146.85" name="mca1-back"
19 device="eth0:0" />
20 <location name="dallas" />
21 <role name="web_core" />
22</host>
23
24<host name="cweisel1" description="">
25 <ip address="69.164.193.177" name="cweisel1"
26 device="eth0">
27 <alias name="homestar" />
28 </ip>
29 <ip address="192.168.146.206" name="cweisel1-back"
30 device="eth0:0" />
31 <location name="dallas" />
32 <role name="cweisel1" />
33</host>
34</configuration>
diff --git a/services.xml b/services.xml
new file mode 100644
index 0000000..0f4f20d
--- /dev/null
+++ b/services.xml
@@ -0,0 +1,69 @@
1<?xml version="1.0"?>
2<configuration>
3<services>
4 <ssh no-root="true" key-only="true" />
5 <iptables policy="default" />
6 <account pass-file="passwd" group-file="groups" />
7 <ftp pass-file="passwd.vfstp" />
8
9 <mount>
10 <mount id="chapman" type="bind"
11 from="/srv/www/mycandc.com/www/htdocs"
12 to="/srv/ftp/mycandc" />
13 <mount id="mca" type="bind"
14 from="/srv/www/mcaschool.net"
15 to="/srv/ftp/mcaschool" />
16 </mount>
17
18 <deb>
19 <source url="http://us.archive.ubuntu.com/ubuntu/"
20 dist="jaunty"
21 repos="main restricted universe"
22 include-source="true" />
23
24 <source url="http://security.ubuntu.com/ubuntu/"
25 dist="jaunty-security"
26 repos="main restricted universe"
27 include-source="true" />
28 </deb>
29</services>
30
31<logical-service id="hd24tools" requires="web_core">
32 <distpkg name="subversion" />
33 <subversion name="hd24tools" />
34 <nginx-site name="hd24tools.com" />
35 <supervisor-job name="hd24tools-svn" />
36</logical-service>
37
38<logical-service id="crute_code" requires="web_core">
39 <supervisor-job name="hgserve" />
40 <nginx-site name="code.crute.org" />
41</logical-service>
42
43<logical-service id="crute_recipies" requires="web_core">
44 <supervisor-job name="greenbox" />
45 <nginx-site name="recipes.crute.org" />
46</logical-service>
47
48<logical-service id="chapman" requires="web_core">
49 <ftp users="mycandc" />
50 <mount name="chapman" />
51 <nginx-site name="mycandc.com" />
52</logical-service>
53
54<logical-service id="mca_sites" requires="web_core">
55 <ftp users="mcaschool" />
56 <mount name="mca" />
57 <distpkg name="postfix-dovecot" />
58
59 <nginx-site name="mcaschool.net" />
60 <nginx-site name="enroll.mcaschool.net" />
61 <nginx-site name="stage.mcaschool.net" />
62 <nginx-site name="maint.mcaschool.net" />
63</logical-service>
64
65<logical-service id="finelli" requires="web_core">
66 <distpkg name="postfix-dovecot" />
67 <nginx-site name="finelliironworks.com" />
68</logical-service>
69</configuration>
diff --git a/templates/core.xml b/templates/core.xml
new file mode 100644
index 0000000..7539548
--- /dev/null
+++ b/templates/core.xml
@@ -0,0 +1,31 @@
1<?xml version="1.0"?>
2<configuration>
3<template description="Base server template">
4 <distpkg name="build-essential" />
5 <distpkg name="conntrack" />
6 <distpkg name="curl" />
7 <distpkg name="htop" />
8 <distpkg name="iptables" />
9 <distpkg name="lsof" />
10 <distpkg name="netcat" />
11 <distpkg name="ntp" />
12 <distpkg name="python-dev" />
13 <distpkg name="python-setuptools" />
14 <distpkg name="screen" />
15 <distpkg name="unzip" />
16 <distpkg name="zip" />
17 <distpkg name="vim" />
18
19 <python-pkg name="mercurial" />
20 <python-pkg name="python-cjson" />
21 <python-pkg name="supervisor" />
22 <python-pkg name="virtualenv" />
23 <python-pkg name="yolk" />
24
25 <cron name="filterwall.all" />
26 <account users="mcrute" />
27 <iptables />
28 <ssh />
29 <deb />
30</template>
31</configuration>
diff --git a/templates/cweisel1.xml b/templates/cweisel1.xml
new file mode 100644
index 0000000..dd6ca43
--- /dev/null
+++ b/templates/cweisel1.xml
@@ -0,0 +1,12 @@
1<?xml version="1.0"?>
2<configuration>
3<template description="Chris Weisel server" inherits="web_core">
4 <account group="client_cweisel" users="+client_cweisel" />
5
6 <nginx-site name="advancedmobiletoys.net" />
7 <nginx-site name="chrisweisel.com" />
8 <nginx-site name="horvath-cowan.com" />
9 <nginx-site name="triad.chrisweisel.com" />
10 <nginx-site name="waybel.com" />
11</template>
12</configuration>
diff --git a/templates/site_hd24tools.xml b/templates/site_hd24tools.xml
new file mode 100644
index 0000000..a4ae2ed
--- /dev/null
+++ b/templates/site_hd24tools.xml
@@ -0,0 +1,3 @@
1<?xml version="1.0"?>
2<configuration>
3</configuration>
diff --git a/templates/softgroup1.xml b/templates/softgroup1.xml
new file mode 100644
index 0000000..713204e
--- /dev/null
+++ b/templates/softgroup1.xml
@@ -0,0 +1,19 @@
1<?xml version="1.0"?>
2<configuration>
3<template description="SoftGroup web server" inherits="web_core">
4 <account group="softgroup" users="+softgroup" />
5
6 <logical-service name="hd24tools" />
7 <logical-service name="crute_code" />
8 <logical-service name="crute_recipes" />
9 <logical-service name="mca_sites" />
10 <logical-service name="finelli" />
11 <logical-service name="chapman" />
12
13 <nginx-site name="mike.crute.org" />
14 <nginx-site name="christy.crute.org" />
15 <nginx-site name="crute.org" />
16 <nginx-site name="faldowski.com" />
17 <nginx-site name="frompythonimportpodcast.com" />
18</template>
19</configuration>
diff --git a/templates/web_core.xml b/templates/web_core.xml
new file mode 100644
index 0000000..32f0e9c
--- /dev/null
+++ b/templates/web_core.xml
@@ -0,0 +1,26 @@
1<?xml version="1.0"?>
2<configuration>
3<template description="Web server template"
4 inherits="core">
5 <distpkg name="mysql-server" />
6 <distpkg name="php-pear" />
7 <distpkg name="php5-cgi" />
8 <distpkg name="php5-cli" />
9 <distpkg name="php5-curl" />
10 <distpkg name="php5-gd" />
11 <distpkg name="php5-mysql" />
12 <distpkg name="php5-sqlite" />
13 <distpkg name="php5-suhosin" />
14 <distpkg name="python-mysqldb" />
15 <distpkg name="vsftpd" />
16 <distpkg name="varnish" />
17 <distpkg name="nginx" />
18
19 <python-pkg name="flup" />
20
21 <supervisor-job name="mysql" />
22 <supervisor-job name="php-fcgi" />
23
24 <iptables policy="web" />
25</template>
26</configuration>