summaryrefslogtreecommitdiffstats
path: root/files/machine_types.rb
blob: 799ed81ea6a604ef069533b3372ed33e96829b5a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
# Copyright (C) 2008 Red Hat, Inc

# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.

# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.

# You should have received a copy of the GNU General Public License
# a long with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.

################################################################################
#Define new facts here. You can later map them to machine types in the         #
#following section.                                                            #
#                                                                              #
# One thing to note is the special syntax allowed when setting default values  #
# for facts.  In the default string you are allowed to use "%repo%" or         #
# "%machine_name%" which will get substituted appropriately whenever this data #
# is used (eg, genome-bootstrap uses this for setting context aware default    #
# values for facts).                                                           #
#                                                                              #
# If a fact needs to be on all machines types set ":on_all_nodes"              #
# appropriately.  Otherwise in the machine declaration section you need to     #
# specify what facts will be used for a particular machine.                    #
################################################################################

# newfact("puppetserver", :on_all_nodes => true) do
#   set_desc "The puppetmaster used for all configuration.  If you are " + 
#            "provisioning a Repo machine, this should be it's FQDN"
#   set_default "%repo%-repo.usersys.redhat.com"
# end

# newfact("logserver") do
#   set_desc "The machine to send syslog output to"
# end

##############################################################################
# Machines definitions go here. It is important that this happens after the  #
# fact declarations.  Aside from that, order does not matter.                #
##############################################################################

# This is used so that all custom machine types run the puppet service.  It is
# completely optional.  If you would like to define how the service is run on
# your machine type feel free to comment this line out and include your own
# class in your custom machine.
classes_on_all_machine_types "genomerepo::client"

# newmachine("jboss-dev") do
#   include_facts "logserver"
#   set_classes "jboss::dev", "java", "jboss::server::web",
#               "mysql::standalone", "jboss::ds::messaging", "jboss::ds::esb",
#               "apache::ssl", "apache::ajp_http","apache::ajp_devel", 
# end

newmachine("django-example") do
  set_classes "django::server"
end