update comment in the template
[heat-templates.git] / cookbooks / yum / templates / default / repo.erb
blobf9a4c86e745cd2582fc0bc683ebe1679b1d2f428
1 # This file was generated by Chef
2 # Do NOT modify this file by hand.
4 [<%= @config.repositoryid %>]
5 name=<%= @config.description %>
6 <% if @config.baseurl %>
7 baseurl=<%= @config.baseurl %>
8 <% end %>
9 <% if @config.cost %>
10 cost=<%= @config.cost %>
11 <% end %>
12 <% if @config.enabled %>
13 enabled=1
14 <% else %>
15 enabled=0
16 <% end %>
17 <% if @config.enablegroups %>
18 enablegroups=1
19 <% end %>
20 <% if @config.exclude %>
21 exclude=<%= @config.exclude %>
22 <% end %>
23 <% if @config.failovermethod %>
24 failovermethod=<%= @config.failovermethod %>
25 <% end %>
26 <% if @config.fastestmirror_enabled %>
27 fastestmirror_enabled=<%= @config.fastestmirror_enabled %>
28 <% end %>
29 <% if @config.gpgcheck %>
30 gpgcheck=1
31 <% else %>
32 gpgcheck=0
33 <% end %>
34 <% if @config.gpgkey %>
35 gpgkey=<%= case @config.gpgkey
36      when Array
37        @config.gpgkey.join("\n       ")
38      else
39        @config.gpgkey
40      end %>
41 <% end -%>
42 <% if @config.http_caching %>
43 http_caching=<%= @config.http_caching %>
44 <% end %>
45 <% if @config.include_config %>
46 include=<%= @config.include_config %>
47 <% end %>
48 <% if @config.includepkgs %>
49 includepkgs=<%= @config.includepkgs %>
50 <% end %>
51 <% if @config.keepalive %>
52 keepalive=1
53 <% end %>
54 <% if @config.metadata_expire %>
55 metadata_expire=<%= @config.metadata_expire %>
56 <% end %>
57 <% if @config.mirrorlist %>
58 mirrorlist=<%= @config.mirrorlist %>
59 <% end %>
60 <% if @config.mirror_expire %>
61 mirror_expire=<%= @config.mirror_expire %>
62 <% end %>
63 <% if @config.mirrorlist_expire %>
64 mirrorlist_expire=<%= @config.mirrorlist_expire %>
65 <% end %>
66 <% if @config.priority %>
67 priority=<%= @config.priority %>
68 <% end %>
69 <% if @config.proxy %>
70 proxy=<%= @config.proxy %>
71 <% end %>
72 <% if @config.proxy_username %>
73 proxy_username=<%= @config.proxy_username %>
74 <% end %>
75 <% if @config.proxy_password %>
76 proxy_password=<%= @config.proxy_password %>
77 <% end %>
78 <% if @config.username %>
79 username=<%= @config.username %>
80 <% end %>
81 <% if @config.password %>
82 password=<%= @config.password %>
83 <% end %>
84 <% if @config.max_retries %>
85 retries=<%= @config.max_retries %>
86 <% end %>
87 <% if @config.report_instanceid %>
88 report_instanceid=<%= @config.report_instanceid %>
89 <% end %>
90 <% if @config.skip_if_unavailable %>
91 skip_if_unavailable=1
92 <% end %>
93 <% if @config.sslcacert %>
94 sslcacert=<%= @config.sslcacert %>
95 <% end %>
96 <% if @config.sslclientcert %>
97 sslclientcert=<%= @config.sslclientcert %>
98 <% end %>
99 <% if @config.sslclientkey %>
100 sslclientkey=<%= @config.sslclientkey %>
101 <% end %>
102 <% if @config.sslverify %>
103 sslverify=1
104 <% else %>
105 sslverify=0
106 <% end %>
107 <% if @config.timeout %>
108 timeout=<%= @config.timeout %>
109 <% end %>