EOX GitLab Instance

init.pp 845 Bytes
Newer Older
1
class buildtools {
2
3
4
5
	class { 'repos':
		# add to the repositories stage
		stage	=> repositories
	}
6

7
8
9
10
11
12
13
14
15
16
17
18
	$home = '/home/vagrant'

	File {
		owner => 'vagrant',
		group => 'vagrant',
		mode  => '0644',
	}

	package { 'rpm-build': ensure => 'latest' }
	package { 'redhat-rpm-config': ensure => 'latest' }
	package { 'make': ensure => 'latest' }
	package { 'gcc': ensure => 'latest' }
19
	package { 'gcc-c++': ensure => 'latest' }
20
21
22

	file { $home: ensure => directory }
	file { "${home}/.rpmmacros":
23
24
		ensure	=> file,
		content	=> "%_topdir ${home}/rpmbuild\n",
25
26
	}
	file { "${home}/rpmbuild":
27
		ensure	=> directory,
28
	}
29
30
31
32
33
34
	file {[ "${home}/rpmbuild/BUILD",
			"${home}/rpmbuild/BUILDROOT",
			"${home}/rpmbuild/RPMS",
			"${home}/rpmbuild/SOURCES",
			"${home}/rpmbuild/SPECS",
			"${home}/rpmbuild/SRPMS" ]:
35
36
    	ensure	=> directory,
    	mode	=> '0775'
37
  }}