Permalink
Browse files

small addition

  • Loading branch information...
1 parent 83a1a06 commit 210d89ccae57c5933071a3ebb894e82a8b4acc1a @jettro committed Nov 6, 2009
Showing with 6 additions and 49 deletions.
  1. +3 −3 application.properties
  2. +3 −46 grails-app/conf/BootStrap.groovy
View
6 application.properties
@@ -1,8 +1,8 @@
#utf-8
-#Wed Nov 04 11:28:17 CET 2009
+#Fri Nov 06 14:31:30 CET 2009
app.version=0.1
app.servlet.version=2.4
app.grails.version=1.1.1
-plugins.db-util=0.4
plugins.hibernate=1.1.1
-app.name=myfirstserverpark
+plugins.db-util=0.4
+app.name=myserverpark
View
49 grails-app/conf/BootStrap.groovy
@@ -8,14 +8,14 @@ class BootStrap {
newStatus.save()
}
- def vlans = [['Middleware','877'],['Backend','878'],['Beheer','879'],['Backup','888']]
+ def vlans = [['Middleware','middle_dev'],['Backend','backend_dev'],['Beheer','maint_dev'],['Backup','backup_dev']]
vlans.each {
vlanFunction,vlanName ->
def newVlan = new Vlan(name:vlanName,function:vlanFunction)
newVlan.save()
}
- def environments = ['Ontwikkel','Test','Acceptatie','Production']
+ def environments = ['Development','Test','Acceptation','Production']
environments.each {
name ->
def environment = new Environment(name:name)
@@ -26,50 +26,7 @@ class BootStrap {
def warningStatus = Status.findByName("WARNING")
def errorStatus = Status.findByName("PROBLEM")
def coldStatus = Status.findByName("COLD")
-
- def vlan877 = Vlan.findByName("877")
- def vlan878 = Vlan.findByName("878")
- def vlan879 = Vlan.findByName("879")
- def vlan888 = Vlan.findByName("888")
-
- def s1729 = new Server(name:"s1729",function:"svn + wiki",status:okStatus, externalIp:"77.245.92.78")
- s1729.addToNetworks (new NetworkDefinition(ipAddress:"10.2.7.2", vlan:vlan878))
- s1729.addToNetworks (new NetworkDefinition(ipAddress:"10.2.8.6", vlan:vlan879))
- s1729.addToNetworks (new NetworkDefinition(ipAddress:"10.2.187.10", vlan:vlan888))
- s1729.save()
- def s1731 = new Server(name:"s1731",function:"site 1",status:okStatus, externalIp:"77.245.92.75")
- s1731.addToNetworks (new NetworkDefinition(ipAddress:"10.2.6.2", vlan:vlan877))
- s1731.addToNetworks (new NetworkDefinition(ipAddress:"10.2.8.3", vlan:vlan879))
- s1731.addToNetworks (new NetworkDefinition(ipAddress:"10.2.187.7", vlan:vlan888))
- s1731.save()
- def s1732 = new Server(name:"s1732",function:"site 2",status:errorStatus, externalIp:"77.245.92.76")
- s1732.addToNetworks (new NetworkDefinition(ipAddress:"10.2.6.4", vlan:vlan877))
- s1732.addToNetworks (new NetworkDefinition(ipAddress:"10.2.8.4", vlan:vlan879))
- s1732.addToNetworks (new NetworkDefinition(ipAddress:"10.2.187.8", vlan:vlan888))
- s1732.save()
- def s1733 = new Server(name:"s1733",function:"standby",status:coldStatus, externalIp:"77.245.92.78")
- s1733.addToNetworks (new NetworkDefinition(ipAddress:"10.2.6.6", vlan:vlan877))
- s1733.addToNetworks (new NetworkDefinition(ipAddress:"10.2.8.5", vlan:vlan879))
- s1733.addToNetworks (new NetworkDefinition(ipAddress:"10.2.187.9", vlan:vlan888))
- s1733.save()
- def s1734 = new Server(name:"s1734",function:"database",status:warningStatus, externalIp:"77.245.92.79")
- s1734.addToNetworks (new NetworkDefinition(ipAddress:"10.2.7.4", vlan:vlan878))
- s1734.addToNetworks (new NetworkDefinition(ipAddress:"10.2.8.7", vlan:vlan879))
- s1734.addToNetworks (new NetworkDefinition(ipAddress:"10.2.187.11", vlan:vlan888))
- s1734.save()
- def s1735 = new Server(name:"s1735",function:"cms + importer",status:okStatus, externalIp:"77.245.92.80")
- s1735.addToNetworks (new NetworkDefinition(ipAddress:"10.2.7.6", vlan:vlan878))
- s1735.addToNetworks (new NetworkDefinition(ipAddress:"10.2.8.8", vlan:vlan879))
- s1735.addToNetworks (new NetworkDefinition(ipAddress:"10.2.187.12", vlan:vlan888))
- s1735.save()
-
- def ontwikkel = Environment.findByName("Ontwikkel")
- ontwikkel.addToServers (s1729)
- ontwikkel.addToServers (s1731)
- ontwikkel.addToServers (s1732)
- ontwikkel.addToServers (s1733)
- ontwikkel.addToServers (s1734)
- ontwikkel.addToServers (s1735)
+
}
def destroy = {
}

0 comments on commit 210d89c

Please sign in to comment.