Report abuse

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
class base {

    # Disable RHN plugins because we dont have access to the tubes
    class disable_rhn {

        file { "/etc/yum/pluginconf.d/rhnplugin.conf":
            owner => root,
        group => root,
        mode => 644,
        source => "puppet://builder/files/etc/yum/pluginconf.d/rhnplugin.conf"
        }

        file { "/etc/yum/pluginconf.d/security.conf":
        owner => root,
        group => root,
        mode => 644,
        source => "puppet://builder/files/etc/yum/pluginconf.d/security.conf"
      }
    }

    # Create our local repos in /etc/yum.repos.d
    class local_repo {

        yumrepo { "in-house":
            name => "in-house",
            descr => "in-house",
            baseurl => "http://$server/kickstart/inhouse/",
            enabled => 1,
            gpgcheck => 0
        }

        yumrepo { "base":
            name => "rhel-5.2-x86_64",
            descr => "rhel-5.2-x86_64",
            baseurl => "http://$server/kickstart/RHEL/5.2/x86_64/Server/",
            enabled => 1,
            gpgcheck => 0
        }
    }
}