This repository has been archived by the owner on Jun 5, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 15
/
pe-eos-mock-config.erb
62 lines (53 loc) · 1.89 KB
/
pe-eos-mock-config.erb
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
# **********************************
# Puppet Labs pe mock configuration
# <%=@name%>
# Managed by Puppet
# **********************************
config_opts['root'] = '<%=@name%>'
config_opts['target_arch'] = '<%=@arch%>'
config_opts['legal_host_arches'] = (<%= if @arch =~ /i\d86/ then "'i386', 'i586', 'i686', 'x86_64'" else "'x86_64'" end %>)
config_opts['chroot_setup_cmd'] = 'install bash bzip2 coreutils diffutils findutils gawk gcc gcc-c++ grep gzip info make patch redhat-rpm-config rpm-build sed shadow-utils tar unzip util-linux-ng which xz'
#config_opts['chroot_setup_cmd'] = 'groupinstall buildsys-build'
config_opts['dist'] = '<%=@dist%><%=@release%>' # only useful for --resultdir variable subst
config_opts['plugin_conf']['ccache_enable'] = False
config_opts['macros']['%vendor'] = 'Puppet Labs'
config_opts['macros']['%dist'] = '.<%=@dist%><%=@release%>'
config_opts['yum.conf'] = """
[main]
cachedir=/var/cache/yum
debuglevel=1
reposdir=/dev/null
logfile=/var/log/yum.log
retries=20
obsoletes=1
gpgcheck=0
assumeyes=1
syslog_ident=mock
syslog_device=
proxy=http://proxy.puppetlabs.lan:3128/
# repos
[base]
name=fedora-14-<%=@arch%>
enabled=1
baseurl=http://osmirror.delivery.puppetlabs.net/fedora14-<%=@arch%>/RPMS.os/
[updates]
name=fedora-14-<%=@arch%>-updates
enabled=1
baseurl=http://osmirror.delivery.puppetlabs.net/fedora14-<%=@arch%>/RPMS.updates/
[device-upstream]
name=<%=@dist%>-<%=@release%>-<%=@arch%>
enabled=1
baseurl=http://osmirror.delivery.puppetlabs.net/<%=@dist%>-<%=@release%>-<%=@arch%>/RPMS.all/
[pe]
name=pe
enabled=1
baseurl=http://enterprise.delivery.puppetlabs.net/<%=@pe_ver%>/repos/<%=@dist%>-<%=@release%>-<%=@arch%>/
skip_if_unavailable=1
proxy=_none_
[build-tools-<%=@dist%>-<%=@release%>]
name=build-tools-<%=@dist%>-<%=@release%>
enabled=1
baseurl=http://enterprise.delivery.puppetlabs.net/build-tools/<%=@dist%>/<%=@release%>/<%=@arch%>/
skip_if_unavailable=1
proxy=_none_
"""