README.md 1.3 KB
Newer Older
1 2
## Yum repository management

3 4 5 6
Configure:
- yum-cron
- yum.conf

7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
### Example

File hiera.yaml:

```
:hierarchy:
  ...
  - yum     # yum::description
  ...
```

Restart puppetserver if needed

File yum.yaml:

```
Emmanuel Medernach's avatar
Emmanuel Medernach committed
23 24
# yum repositories description

25 26
 Note: descr is mandatory (yumrepo use descr to populate the repository name attribute)

27 28
yum::description:
  linuxtech-release: 
29
    descr: Linuxtech release
30 31 32 33 34 35 36 37 38 39
    baseurl: 
      http://linuxsoft.cern.ch/linuxtech/el6/release/
      http://pkgrepo.linuxtech.net/el6/release/
    mirrorlist: http://pkgrepo.linuxtech.net/el6/release/mirrorlist.txt
    gpgkey: http://pkgrepo.linuxtech.net/el6/release/RPM-GPG-KEY-LinuxTECH.NET
    enabled: 1
    gpgcheck: 1
    metadata_expire: 7d
    skip_if_unavailable: 0
  linuxtech-testing: 
40
    descr: Linuxtech testing
41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63
    baseurl:
      http://linuxsoft.cern.ch/linuxtech/el6/testing/
      http://pkgrepo.linuxtech.net/el6/testing/
    mirrorlist: http://pkgrepo.linuxtech.net/el6/testing/mirrorlist.txt
    gpgkey: http://pkgrepo.linuxtech.net/el6/release/RPM-GPG-KEY-LinuxTECH.NET
    enabled: 0
    gpgcheck: 1
    metadata_expire: 7d
    skip_if_unavailable: 0
    
yum::repositories:
  base:
    - linuxtech-release
    - linuxtech-testing
    
```

File <node>.yaml:

```

yum::profile: base

Emmanuel Medernach's avatar
Emmanuel Medernach committed
64 65
yum::exclude: cuda* libsmbios* smbios-utils*

66
```