Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
mirror
yum
Commits
382f5b6b
Commit
382f5b6b
authored
Jun 04, 2015
by
Sean OMeara
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #120 from matt-thomson/repo_gpgcheck
Add repo_gpgcheck parameter to repositories
parents
bc196eed
71893381
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
0 deletions
+6
-0
resources/repository.rb
resources/repository.rb
+1
-0
spec/unit/test_repository_two_spec.rb
spec/unit/test_repository_two_spec.rb
+1
-0
templates/default/repo.erb
templates/default/repo.erb
+3
-0
test/fixtures/cookbooks/yum_test/recipes/test_repository_two.rb
...ixtures/cookbooks/yum_test/recipes/test_repository_two.rb
+1
-0
No files found.
resources/repository.rb
View file @
382f5b6b
...
...
@@ -51,6 +51,7 @@ attribute :proxy_username, :kind_of => String, :regex => /.*/, :default => nil
attribute
:proxy_password
,
:kind_of
=>
String
,
:regex
=>
/.*/
,
:default
=>
nil
attribute
:username
,
:kind_of
=>
String
,
:regex
=>
/.*/
,
:default
=>
nil
attribute
:password
,
:kind_of
=>
String
,
:regex
=>
/.*/
,
:default
=>
nil
attribute
:repo_gpgcheck
,
:kind_of
=>
[
TrueClass
,
FalseClass
],
:default
=>
nil
attribute
:report_instanceid
,
:kind_of
=>
[
TrueClass
,
FalseClass
],
:default
=>
nil
attribute
:repositoryid
,
:kind_of
=>
String
,
:regex
=>
/.*/
,
:name_attribute
=>
true
attribute
:skip_if_unavailable
,
:kind_of
=>
[
TrueClass
,
FalseClass
],
:default
=>
nil
...
...
spec/unit/test_repository_two_spec.rb
View file @
382f5b6b
...
...
@@ -38,6 +38,7 @@ priority=10
proxy=http://hellothereiamproxystring.biz
proxy_username=kermit
proxy_password=dafrog
repo_gpgcheck=1
retries=10
skip_if_unavailable=1
sslcacert=/path/to/directory
...
...
templates/default/repo.erb
View file @
382f5b6b
...
...
@@ -81,6 +81,9 @@ username=<%= @config.username %>
<%
if
@config
.
password
%>
password=
<%=
@config
.
password
%>
<%
end
%>
<%
if
@config
.
repo_gpgcheck
%>
repo_gpgcheck=1
<%
end
%>
<%
if
@config
.
max_retries
%>
retries=
<%=
@config
.
max_retries
%>
<%
end
%>
...
...
test/fixtures/cookbooks/yum_test/recipes/test_repository_two.rb
View file @
382f5b6b
...
...
@@ -24,6 +24,7 @@ yum_repository 'test2' do
proxy
'http://hellothereiamproxystring.biz'
proxy_username
'kermit'
proxy_password
'dafrog'
repo_gpgcheck
true
report_instanceid
false
repositoryid
'unit-test-2'
skip_if_unavailable
true
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment