Update cookbooks for Ubuntu 16.04 TLS
This commit is contained in:
276
cookbooks/yum/templates/default/main.erb
Normal file
276
cookbooks/yum/templates/default/main.erb
Normal file
@@ -0,0 +1,276 @@
|
||||
# This file was generated by Chef
|
||||
# Do NOT modify this file by hand.
|
||||
|
||||
[main]
|
||||
<% if @config.alwaysprompt %>
|
||||
alwaysprompt=<%= @config.alwaysprompt %>
|
||||
<% end %>
|
||||
<% if @config.assumeyes %>
|
||||
assumeyes=<%= @config.assumeyes %>
|
||||
<% end %>
|
||||
<% if @config.bandwidth %>
|
||||
bandwidth=<%= @config.bandwidth %>
|
||||
<% end %>
|
||||
<% if @config.bugtracker_url %>
|
||||
bugtracker_url=<%= @config.bugtracker_url %>
|
||||
<% end %>
|
||||
<% if @config.cachedir %>
|
||||
cachedir=<%= @config.cachedir %>
|
||||
<% end %>
|
||||
<% if @config.clean_requirements_on_remove %>
|
||||
clean_requirements_on_remove=<%= @config.clean_requirements_on_remove %>
|
||||
<% end %>
|
||||
<% if @config.color %>
|
||||
color=<%= @config.color %>
|
||||
<% end %>
|
||||
<% if @config.color_list_available_downgrade %>
|
||||
color_list_available_downgrade=<%= @config.color_list_available_downgrade %>
|
||||
<% end %>
|
||||
<% if @config.color_list_available_install %>
|
||||
color_list_available_install=<%= @config.color_list_available_install %>
|
||||
<% end %>
|
||||
<% if @config.color_list_available_reinstall %>
|
||||
color_list_available_reinstall=<%= @config.color_list_available_reinstall %>
|
||||
<% end %>
|
||||
<% if @config.color_list_available_upgrade %>
|
||||
color_list_available_upgrade=<%= @config.color_list_available_upgrade %>
|
||||
<% end %>
|
||||
<% if @config.color_list_installed_extra %>
|
||||
color_list_installed_extra=<%= @config.color_list_installed_extra %>
|
||||
<% end %>
|
||||
<% if @config.color_list_installed_newer %>
|
||||
color_list_installed_newer=<%= @config.color_list_installed_newer %>
|
||||
<% end %>
|
||||
<% if @config.color_list_installed_older %>
|
||||
color_list_installed_older=<%= @config.color_list_installed_older %>
|
||||
<% end %>
|
||||
<% if @config.color_list_installed_reinstall %>
|
||||
color_list_installed_reinstall=<%= @config.color_list_installed_reinstall %>
|
||||
<% end %>
|
||||
<% if @config.color_search_match %>
|
||||
color_search_match=<%= @config.color_search_match %>
|
||||
<% end %>
|
||||
<% if @config.color_update_installed %>
|
||||
color_update_installed=<%= @config.color_update_installed %>
|
||||
<% end %>
|
||||
<% if @config.color_update_local %>
|
||||
color_update_local=<%= @config.color_update_local %>
|
||||
<% end %>
|
||||
<% if @config.color_update_remote %>
|
||||
color_update_remote=<%= @config.color_update_remote %>
|
||||
<% end %>
|
||||
<% if @config.commands %>
|
||||
commands=<%= @config.commands %>
|
||||
<% end %>
|
||||
<% if @config.debuglevel %>
|
||||
debuglevel=<%= @config.debuglevel %>
|
||||
<% end %>
|
||||
<% if @config.deltarpm == true %>
|
||||
deltarpm=1
|
||||
<% elsif @config.deltarpm == false %>
|
||||
deltarpm=0
|
||||
<% end %>
|
||||
<% if @config.diskspacecheck %>
|
||||
diskspacecheck=<%= @config.diskspacecheck %>
|
||||
<% end %>
|
||||
<% if @config.distroverpkg %>
|
||||
distroverpkg=<%= @config.distroverpkg %>
|
||||
<% end %>
|
||||
<% if @config.enable_group_conditionals %>
|
||||
enable_group_conditionals=1
|
||||
<% end %>
|
||||
<% if @config.errorlevel %>
|
||||
errorlevel=<%= @config.errorlevel %>
|
||||
<% end %>
|
||||
<% if @config.exactarch %>
|
||||
exactarch=1
|
||||
<% else %>
|
||||
exactarch=0
|
||||
<% end %>
|
||||
<% if @config.exclude %>
|
||||
exclude=<%= @config.exclude %>
|
||||
<% end %>
|
||||
<% if @config.gpgcheck %>
|
||||
gpgcheck=1
|
||||
<% else %>
|
||||
gpgcheck=0
|
||||
<% end %>
|
||||
<% if @config.group_package_types %>
|
||||
group_package_types=<%= @config.group_package_types %>
|
||||
<% end %>
|
||||
<% if @config.groupremove_leaf_only %>
|
||||
groupremove_leaf_only=<%= @config.groupremove_leaf_only %>
|
||||
<% end %>
|
||||
<% if @config.history_list_view %>
|
||||
history_list_view=<%= @config.history_list_view %>
|
||||
<% end %>
|
||||
<% if @config.history_record %>
|
||||
history_record=<%= @config.history_record %>
|
||||
<% end %>
|
||||
<% if @config.history_record_packages %>
|
||||
history_record_packages=<%= @config.history_record_packages %>
|
||||
<% end %>
|
||||
<% if @config.http_caching %>
|
||||
http_caching=<%= @config.http_caching %>
|
||||
<% end %>
|
||||
<% if @config.installonly_limit %>
|
||||
installonly_limit=<%= @config.installonly_limit %>
|
||||
<% end %>
|
||||
<% if @config.installonlypkgs %>
|
||||
installonlypkgs=<%= @config.installonlypkgs %>
|
||||
<% end %>
|
||||
<% if @config.installroot %>
|
||||
installroot=<%= @config.installroot %>
|
||||
<% end %>
|
||||
<% if @config.keepalive %>
|
||||
keepalive=<%= @config.keepalive %>
|
||||
<% end %>
|
||||
<% if @config.keepcache %>
|
||||
keepcache=1
|
||||
<% else %>
|
||||
keepcache=0
|
||||
<% end %>
|
||||
<% if @config.kernelpkgnames %>
|
||||
kernelpkgnames=<%= @config.kernelpkgnames %>
|
||||
<% end %>
|
||||
<% if @config.localpkg_gpgcheck %>
|
||||
localpkg_gpgcheck=1
|
||||
<% else %>
|
||||
localpkg_gpgcheck=0
|
||||
<% end %>
|
||||
<% if @config.logfile %>
|
||||
logfile=<%= @config.logfile %>
|
||||
<% end %>
|
||||
<% if @config.max_retries %>
|
||||
max_retries=<%= @config.max_retries %>
|
||||
<% end %>
|
||||
<% if @config.mdpolicy %>
|
||||
mdpolicy=<%= @config.mdpolicy %>
|
||||
<% end %>
|
||||
<% if @config.metadata_expire %>
|
||||
metadata_expire=<%= @config.metadata_expire %>
|
||||
<% end %>
|
||||
<% if @config.mirrorlist_expire %>
|
||||
mirrorlist_expire=<%= @config.mirrorlist_expire %>
|
||||
<% end %>
|
||||
<% if @config.multilib_policy %>
|
||||
multilib_policy=<%= @config.multilib_policy %>
|
||||
<% end %>
|
||||
<% if @config.obsoletes == false %>
|
||||
obsoletes=0
|
||||
<% else %>
|
||||
obsoletes=1
|
||||
<% end %>
|
||||
<% if @config.overwrite_groups %>
|
||||
overwrite_groups=<%= @config.overwrite_groups %>
|
||||
<% end %>
|
||||
<% if @config.password %>
|
||||
password=<%= @config.password %>
|
||||
<% end %>
|
||||
<% if @config.persistdir %>
|
||||
persistdir=<%= @config.persistdir %>
|
||||
<% end %>
|
||||
<% if @config.pluginconfpath %>
|
||||
pluginconfpath=<%= @config.pluginconfpath %>
|
||||
<% end %>
|
||||
<% if @config.pluginpath %>
|
||||
pluginpath=<%= @config.pluginpath %>
|
||||
<% end %>
|
||||
<% if @config.plugins %>
|
||||
plugins=1
|
||||
<% else %>
|
||||
plugins=0
|
||||
<% end %>
|
||||
<% if @config.protected_multilib %>
|
||||
protected_multilib=<%= @config.protected_multilib %>
|
||||
<% end %>
|
||||
<% if @config.protected_packages %>
|
||||
protected_packages=<%= @config.protected_packages %>
|
||||
<% end %>
|
||||
<% if @config.proxy %>
|
||||
proxy=<%= @config.proxy %>
|
||||
<% end %>
|
||||
<% if @config.proxy_password %>
|
||||
proxy_password=<%= @config.proxy_password %>
|
||||
<% end %>
|
||||
<% if @config.proxy_username %>
|
||||
proxy_username=<%= @config.proxy_username %>
|
||||
<% end %>
|
||||
<% if @config.recent %>
|
||||
recent=<%= @config.recent %>
|
||||
<% end %>
|
||||
<% if @config.releasever %>
|
||||
releasever=<%= @config.releasever %>
|
||||
<% end %>
|
||||
<% if @config.repo_gpgcheck %>
|
||||
repo_gpgcheck=<%= @config.repo_gpgcheck %>
|
||||
<% end %>
|
||||
<% if @config.reposdir %>
|
||||
reposdir=<%= @config.reposdir %>
|
||||
<% end %>
|
||||
<% if @config.reset_nice %>
|
||||
reset_nice=<%= @config.reset_nice %>
|
||||
<% end %>
|
||||
<% if @config.rpmverbosity %>
|
||||
rpmverbosity=<%= @config.rpmverbosity %>
|
||||
<% end %>
|
||||
<% if @config.showdupesfromrepos %>
|
||||
showdupesfromrepos=<%= @config.showdupesfromrepos %>
|
||||
<% end %>
|
||||
<% if @config.skip_broken %>
|
||||
skip_broken=<%= @config.skip_broken %>
|
||||
<% end %>
|
||||
<% if @config.ssl_check_cert_permissions %>
|
||||
ssl_check_cert_permissions=<%= @config.ssl_check_cert_permissions %>
|
||||
<% end %>
|
||||
<% if @config.sslcacert %>
|
||||
sslcacert=<%= @config.sslcacert %>
|
||||
<% end %>
|
||||
<% if @config.sslclientcert %>
|
||||
sslclientcert=<%= @config.sslclientcert %>
|
||||
<% end %>
|
||||
<% if @config.sslclientkey %>
|
||||
sslclientkey=<%= @config.sslclientkey %>
|
||||
<% end %>
|
||||
<% unless @config.sslverify.nil? %>
|
||||
sslverify=<%= ( @config.sslverify ) ? 'true' : 'false' %>
|
||||
<% end %>
|
||||
<% if @config.syslog_device %>
|
||||
syslog_device=<%= @config.syslog_device %>
|
||||
<% end %>
|
||||
<% if @config.syslog_facility %>
|
||||
syslog_facility=<%= @config.syslog_facility %>
|
||||
<% end %>
|
||||
<% if @config.syslog_ident %>
|
||||
syslog_ident=<%= @config.syslog_ident %>
|
||||
<% end %>
|
||||
<% if @config.throttle %>
|
||||
throttle=<%= @config.throttle %>
|
||||
<% end %>
|
||||
<% if @config.timeout %>
|
||||
timeout=<%= @config.timeout %>
|
||||
<% end %>
|
||||
<% if @config.tolerant %>
|
||||
tolerant=<%= ( @config.tolerant ) ? '1' : '0' %>
|
||||
<% end %>
|
||||
<% if @config.tsflags %>
|
||||
tsflags=<%= @config.tsflags %>
|
||||
<% end %>
|
||||
<% if @config.username %>
|
||||
username=<%= @config.username %>
|
||||
<% end %>
|
||||
<% if @config.options -%>
|
||||
<% @config.options.each do |key, value| -%>
|
||||
<%= key %>=<%=
|
||||
case value
|
||||
when Array
|
||||
value.join("\n ")
|
||||
when TrueClass
|
||||
'1'
|
||||
when FalseClass
|
||||
'0'
|
||||
else
|
||||
value
|
||||
end %>
|
||||
<% end -%>
|
||||
<% end -%>
|
||||
130
cookbooks/yum/templates/default/repo.erb
Normal file
130
cookbooks/yum/templates/default/repo.erb
Normal file
@@ -0,0 +1,130 @@
|
||||
# This file was generated by Chef
|
||||
# Do NOT modify this file by hand.
|
||||
|
||||
[<%= @config.repositoryid %>]
|
||||
name=<%= @config.description %>
|
||||
<% if @config.baseurl %>
|
||||
baseurl=<%= case @config.baseurl
|
||||
when Array
|
||||
@config.baseurl.join("\n")
|
||||
else
|
||||
@config.baseurl
|
||||
end %>
|
||||
<% end -%>
|
||||
<% if @config.cost %>
|
||||
cost=<%= @config.cost %>
|
||||
<% end %>
|
||||
<% if @config.enabled %>
|
||||
enabled=1
|
||||
<% else %>
|
||||
enabled=0
|
||||
<% end %>
|
||||
<% if @config.enablegroups %>
|
||||
enablegroups=1
|
||||
<% end %>
|
||||
<% if @config.exclude %>
|
||||
exclude=<%= @config.exclude %>
|
||||
<% end %>
|
||||
<% if @config.failovermethod %>
|
||||
failovermethod=<%= @config.failovermethod %>
|
||||
<% end %>
|
||||
<% if @config.fastestmirror_enabled %>
|
||||
fastestmirror_enabled=<%= @config.fastestmirror_enabled %>
|
||||
<% end %>
|
||||
<% if @config.gpgcheck %>
|
||||
gpgcheck=1
|
||||
<% else %>
|
||||
gpgcheck=0
|
||||
<% end %>
|
||||
<% if @config.gpgkey %>
|
||||
gpgkey=<%= case @config.gpgkey
|
||||
when Array
|
||||
@config.gpgkey.join("\n ")
|
||||
else
|
||||
@config.gpgkey
|
||||
end %>
|
||||
<% end -%>
|
||||
<% if @config.http_caching %>
|
||||
http_caching=<%= @config.http_caching %>
|
||||
<% end %>
|
||||
<% if @config.include_config %>
|
||||
include=<%= @config.include_config %>
|
||||
<% end %>
|
||||
<% if @config.includepkgs %>
|
||||
includepkgs=<%= @config.includepkgs %>
|
||||
<% end %>
|
||||
<% if @config.keepalive %>
|
||||
keepalive=1
|
||||
<% end %>
|
||||
<% if @config.metadata_expire %>
|
||||
metadata_expire=<%= @config.metadata_expire %>
|
||||
<% end %>
|
||||
<% if @config.mirrorlist %>
|
||||
mirrorlist=<%= @config.mirrorlist %>
|
||||
<% end %>
|
||||
<% if @config.mirror_expire %>
|
||||
mirror_expire=<%= @config.mirror_expire %>
|
||||
<% end %>
|
||||
<% if @config.mirrorlist_expire %>
|
||||
mirrorlist_expire=<%= @config.mirrorlist_expire %>
|
||||
<% end %>
|
||||
<% if @config.priority %>
|
||||
priority=<%= @config.priority %>
|
||||
<% end %>
|
||||
<% if @config.proxy %>
|
||||
proxy=<%= @config.proxy %>
|
||||
<% end %>
|
||||
<% if @config.proxy_username %>
|
||||
proxy_username=<%= @config.proxy_username %>
|
||||
<% end %>
|
||||
<% if @config.proxy_password %>
|
||||
proxy_password=<%= @config.proxy_password %>
|
||||
<% end %>
|
||||
<% if @config.username %>
|
||||
username=<%= @config.username %>
|
||||
<% end %>
|
||||
<% if @config.password %>
|
||||
password=<%= @config.password %>
|
||||
<% end %>
|
||||
<% if @config.repo_gpgcheck %>
|
||||
repo_gpgcheck=1
|
||||
<% end %>
|
||||
<% if @config.max_retries %>
|
||||
retries=<%= @config.max_retries %>
|
||||
<% end %>
|
||||
<% if @config.report_instanceid %>
|
||||
report_instanceid=<%= @config.report_instanceid %>
|
||||
<% end %>
|
||||
<% if @config.skip_if_unavailable %>
|
||||
skip_if_unavailable=1
|
||||
<% end %>
|
||||
<% if @config.sslcacert %>
|
||||
sslcacert=<%= @config.sslcacert %>
|
||||
<% end %>
|
||||
<% if @config.sslclientcert %>
|
||||
sslclientcert=<%= @config.sslclientcert %>
|
||||
<% end %>
|
||||
<% if @config.sslclientkey %>
|
||||
sslclientkey=<%= @config.sslclientkey %>
|
||||
<% end %>
|
||||
<% unless @config.sslverify.nil? %>
|
||||
sslverify=<%= ( @config.sslverify ) ? 'true' : 'false' %>
|
||||
<% end %>
|
||||
<% if @config.timeout %>
|
||||
timeout=<%= @config.timeout %>
|
||||
<% end %>
|
||||
<% if @config.options -%>
|
||||
<% @config.options.each do |key, value| -%>
|
||||
<%= key %>=<%=
|
||||
case value
|
||||
when Array
|
||||
value.join("\n ")
|
||||
when TrueClass
|
||||
'1'
|
||||
when FalseClass
|
||||
'0'
|
||||
else
|
||||
value
|
||||
end %>
|
||||
<% end -%>
|
||||
<% end -%>
|
||||
Reference in New Issue
Block a user