~0x44/nova/bug838466

« back to all changes in this revision

Viewing changes to contrib/puppet/manifests/site.pp

  • Committer: Cerberus
  • Date: 2011-02-28 17:39:23 UTC
  • mfrom: (749 nova)
  • mto: This revision was merged to the branch mainline in revision 762.
  • Revision ID: matt.dietz@rackspace.com-20110228173923-1e3upi2ddoc2j4xl
Merge from trunk and merge conflict resolution

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# site.pp
2
 
 
3
 
import "templates"
4
 
import "classes/*"
5
 
 
6
 
node novabase inherits default {
7
 
#  $puppet_server = "192.168.0.10"
8
 
  $cluster_name = "openstack001"
9
 
  $ganglia_udp_send_channel = "openstack001.example.com"
10
 
  $syslog = "192.168.0.10"
11
 
 
12
 
  # THIS STUFF ISN'T IN RELEASE YET
13
 
  #$sentry_url = "http://192.168.0.19/sentry/store/"
14
 
  #$sentry_key = "TODO:SENTRYPASS"
15
 
 
16
 
  $local_network = "192.168.0.0/16"
17
 
  $vpn_ip = "192.168.0.2"
18
 
  $public_interface = "eth0"
19
 
  include novanode
20
 
#  include nova-common
21
 
  include opsmetrics
22
 
 
23
 
# non-nova stuff such as nova-dash inherit from novanode
24
 
# novaspool needs a better home
25
 
#  include novaspool
26
 
}
27
 
 
28
 
# Builder
29
 
node "nova000.example.com" inherits novabase {
30
 
  $syslog = "server"
31
 
  include ntp
32
 
  include syslog-server
33
 
}
34
 
 
35
 
# Non-Nova nodes
36
 
 
37
 
node
38
 
     "blog.example.com",
39
 
     "wiki.example.com"
40
 
inherits novabase {
41
 
  include ganglia-python
42
 
  include ganglia-apache
43
 
  include ganglia-mysql
44
 
}
45
 
 
46
 
 
47
 
node "nova001.example.com"
48
 
inherits novabase {
49
 
  include novabase
50
 
 
51
 
  nova_iptables { nova:
52
 
      services => [
53
 
        "ganglia",
54
 
        "mysql",
55
 
        "rabbitmq",
56
 
        "ldap",
57
 
        "api",
58
 
        "objectstore",
59
 
        "nrpe",
60
 
      ],
61
 
      ip => "192.168.0.10",
62
 
   }
63
 
 
64
 
  nobjectstore { nova: version => "0.9.0" }
65
 
  nscheduler   { nova: version => "0.9.0" }
66
 
  napi { nova:
67
 
    version => "0.9.0",
68
 
    api_servers => 10,
69
 
    api_base_port => 8000
70
 
  }
71
 
}
72
 
 
73
 
node "nova002.example.com"
74
 
inherits novabase {
75
 
  include novaconf
76
 
 
77
 
  nova_iptables { nova:
78
 
      services => [
79
 
        "ganglia",
80
 
        "dnsmasq",
81
 
        "nrpe"
82
 
      ],
83
 
      ip => "192.168.4.2",
84
 
      private_range => "192.168.0.0/16",
85
 
   }
86
 
 
87
 
  nnetwork { nova: version => "0.9.0" }
88
 
}
89
 
 
90
 
node
91
 
     "nova003.example.com",
92
 
     "nova004.example.com",
93
 
     "nova005.example.com",
94
 
     "nova006.example.com",
95
 
     "nova007.example.com",
96
 
     "nova008.example.com",
97
 
     "nova009.example.com",
98
 
     "nova010.example.com",
99
 
     "nova011.example.com",
100
 
     "nova012.example.com",
101
 
     "nova013.example.com",
102
 
     "nova014.example.com",
103
 
     "nova015.example.com",
104
 
     "nova016.example.com",
105
 
     "nova017.example.com",
106
 
     "nova018.example.com",
107
 
     "nova019.example.com",
108
 
inherits novabase {
109
 
  include novaconf
110
 
  ncompute { nova: version => "0.9.0" }
111
 
  nvolume  { nova: version => "0.9.0" }
112
 
}
113
 
 
114
 
#node
115
 
#     "nova020.example.com"
116
 
#     "nova021.example.com"
117
 
#inherits novanode {
118
 
#  include novaconf
119
 
  #ncompute { nova: version => "0.9.0" }
120
 
#}