EOX GitLab Instance

init.pp 703 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
class buildtools {
	$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' }

	file { $home: ensure => directory }
	file { "${home}/.rpmmacros":
		ensure  => file,
		content => "%_topdir ${home}/rpmbuild\n",
	}
	file { "${home}/rpmbuild":
		ensure => directory,
	}
23
24
25
26
27
28
29
30
	file {[ "${home}/rpmbuild/BUILD",
			"${home}/rpmbuild/BUILDROOT",
			"${home}/rpmbuild/RPMS",
			"${home}/rpmbuild/SOURCES",
			"${home}/rpmbuild/SPECS",
			"${home}/rpmbuild/SRPMS" ]:
    	ensure => directory,
  }}