summaryrefslogtreecommitdiff
path: root/modules/openstack_project/manifests/jenkins_params.pp
blob: 48a10f892f3b499177e930df4eb40415ad847379 (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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
# Class: openstack_project::jenkins_params
#
# This class holds parameters that need to be
# accessed by other classes.
class openstack_project::jenkins_params {
  case $::osfamily {
    'RedHat': {
      #yum groupinstall "Development Tools"
      # packages needed by slaves
      $ant_package = 'ant'
      $awk_package = 'gawk'
      $asciidoc_package = 'asciidoc'
      $curl_package = 'curl'
      $docbook_xml_package = 'docbook-style-xsl'
      $docbook5_xml_package = 'docbook5-schemas'
      $docbook5_xsl_package = 'docbook5-style-xsl'
      $firefox_package = 'firefox'
      $graphviz_package = 'graphviz'
      $libcurl_dev_package = 'libcurl-devel'
      $ldap_dev_package = 'openldap-devel'
      $librrd_dev_package = 'rrdtool-devel'
      # packages needed by document translation
      $gnome_doc_package = 'gnome-doc-utils'
      $libtidy_package = 'libtidy'
      $gettext_package = 'gettext'
      $language_fonts_packages = []
      # for keystone ldap auth integration
      $libsasl_dev = 'cyrus-sasl-devel'
      $nspr_dev_package = 'nspr-devel'
      $sqlite_dev_package = 'sqlite-devel'
      $libvirt_dev_package = 'libvirt-devel'
      $libxml2_package = 'libxml2'
      $libxml2_dev_package = 'libxml2-devel'
      $libxslt_dev_package = 'libxslt-devel'
      $libffi_dev_package = 'libffi-devel'
      # FIXME: No Maven packages on RHEL
      #$maven_package = 'maven'
      # For tooz unit tests
      $memcached_package = 'memcached'
      # For Ceilometer unit tests
      $mongodb_package = 'mongodb-server'
      $pandoc_package = 'pandoc'
      $pkgconfig_package = 'pkgconfig'
      $python_libvirt_package = 'libvirt-python'
      $python_lxml_package = 'python-lxml'
      $python_magic_package = 'python-magic'
      $python_requests_package = 'python-requests'
      $python_zmq_package = 'python-zmq'
      $rubygems_package = 'rubygems'
      # Common Lisp interpreter, used for cl-openstack-client
      $sbcl_package = 'sbcl'
      $sqlite_package = 'sqlite'
      $unzip_package = 'unzip'
      $zip_package = 'zip'
      $xslt_package = 'libxslt'
      $xvfb_package = 'xorg-x11-server-Xvfb'
      # PHP package, used for community portal
      $php5_cli_package = 'php-cli'
      # FIXME: No zookeeper packages on RHEL
      #$zookeeper_package = 'zookeeper-server'
      $cgroups_package = 'libcgroup'
      if ($::operatingsystem == 'Fedora') and ($::operatingsystemrelease >= 19) {
        # From Fedora 19 and onwards there's no longer
        # support to mysql-devel.
        # Only community-mysql-devel. If you try to
        # install mysql-devel you get a conflict with
        # mariadb packages.
        $mysql_dev_package = 'community-mysql-devel'
        $mysql_package = 'community-mysql'
        $zookeeper_package = 'zookeeper'
        $cgroups_tools_package = 'libcgroup-tools'
        $cgconfig_require = [
          Package['cgroups'],
          Package['cgroups-tools'],
        ]
        $cgred_require = [
          Package['cgroups'],
          Package['cgroups-tools'],
        ]
        $dvipng_package = 'texlive-dvipng'
      } else {
        $mysql_dev_package = 'mysql-devel'
        $cgroups_tools_package = ''
        $cgconfig_require = Package['cgroups']
        $cgred_require = Package['cgroups']
        $dvipng_package = 'dvipng'
      }
    }
    'Debian': {
      # packages needed by slaves
      $ant_package = 'ant'
      $awk_package = 'gawk'
      $asciidoc_package = 'asciidoc'
      $curl_package = 'curl'
      $docbook_xml_package = 'docbook-xml'
      $docbook5_xml_package = 'docbook5-xml'
      $docbook5_xsl_package = 'docbook-xsl'
      $dvipng_package = 'dvipng'
      $firefox_package = 'firefox'
      $graphviz_package = 'graphviz'
      $libcurl_dev_package = 'libcurl4-gnutls-dev'
      $ldap_dev_package = 'libldap2-dev'
      $librrd_dev_package = 'librrd-dev'
      # packages needed by document translation
      $gnome_doc_package = 'gnome-doc-utils'
      $libtidy_package = 'libtidy-0.99-0'
      $gettext_package = 'gettext'
      $language_fonts_packages = ['fonts-takao', 'fonts-nanum']
      # for keystone ldap auth integration
      $libsasl_dev = 'libsasl2-dev'
      $mysql_dev_package = 'libmysqlclient-dev'
      $nspr_dev_package = 'libnspr4-dev'
      $sqlite_dev_package = 'libsqlite3-dev'
      $libvirt_dev_package = 'libvirt-dev'
      $libxml2_package = 'libxml2-utils'
      $libxml2_dev_package = 'libxml2-dev'
      $libxslt_dev_package = 'libxslt1-dev'
      $libffi_dev_package = 'libffi-dev'
      $maven_package = 'maven2'
      # For tooz unit tests
      $memcached_package = 'memcached'
      # For Ceilometer unit tests
      $mongodb_package = 'mongodb'
      $pandoc_package = 'pandoc'
      $pkgconfig_package = 'pkg-config'
      $python_libvirt_package = 'python-libvirt'
      $python_lxml_package = 'python-lxml'
      $python_magic_package = 'python-magic'
      $python_requests_package = 'python-requests'
      $python_zmq_package = 'python-zmq'
      if $::lsbdistcodename == 'precise' {
        $rubygems_package = 'rubygems'
      } else {
        $rubygems_package = 'ruby'
      }
      $ruby1_9_1_package = 'ruby1.9.1'
      $ruby1_9_1_dev_package = 'ruby1.9.1-dev'
      # Common Lisp interpreter, used for cl-openstack-client
      $sbcl_package = 'sbcl'
      $sqlite_package = 'sqlite3'
      $unzip_package = 'unzip'
      $zip_package = 'zip'
      $xslt_package = 'xsltproc'
      $xvfb_package = 'xvfb'
      # PHP package, used for community portal
      $php5_cli_package = 'php5-cli'
      $php5_mcrypt_package = 'php5-mcrypt'
      # For [tooz, taskflow, nova] using zookeeper in unit tests
      $zookeeper_package = 'zookeeperd'
      $cgroups_package = 'cgroup-bin'
      $cgroups_tools_package = ''
      $cgconfig_require = [
        Package['cgroups'],
        File['/etc/init/cgconfig.conf'],
      ]
      $cgred_require = [
        Package['cgroups'],
        File['/etc/init/cgred.conf'],
      ]
    }
    default: {
      fail("Unsupported osfamily: ${::osfamily} The 'jenkins' module only supports osfamily Debian or RedHat (slaves only).")
    }
  }
}