EOX GitLab Instance

init.pp 487 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
23
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,
	}
}