~smoser/cloud-init/lp-1077700

« back to all changes in this revision

Viewing changes to doc/examples/cloud-config-yum-repo.txt

  • Committer: Scott Moser
  • Date: 2012-11-11 03:32:31 UTC
  • mfrom: (687.2.10 yum-repo-conf-write)
  • Revision ID: smoser@ubuntu.com-20121111033231-7qz1g2jlhm9kt1ub
add yum_add_repo configuration module

Add in a configuration module that can write out the yum.repo format for
those that want to hook into different repos for installing.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#cloud-config
 
2
# vim: syntax=yaml
 
3
#
 
4
# Add yum repository configuration to the system
 
5
#
 
6
# The following example adds the file /etc/yum.repos.d/epel_testing.repo
 
7
# which can then subsequently be used by yum for later operations.
 
8
yum_repos:
 
9
    # The name of the repository
 
10
    epel-testing:
 
11
        # Any repository configuration options
 
12
        # See: man yum.conf
 
13
        #
 
14
        # This one is required!
 
15
        baseurl: http://download.fedoraproject.org/pub/epel/testing/5/$basearch
 
16
        enabled: false
 
17
        failovermethod: priority
 
18
        gpgcheck: true
 
19
        gpgkey: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL
 
20
        name: Extra Packages for Enterprise Linux 5 - Testing