Skip to content
GitLab
Next
Projects
Groups
Snippets
Help
Loading...
Help
What's new
9
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
GitLab.org
B
Build
omnibus-mirror
runit-cookbook
Commits
32149b8f
Commit
32149b8f
authored
Feb 16, 2016
by
Tim Smith
Committed by
Cameron Johnston
Jun 02, 2016
Browse files
Install yum-epel when necessary
Otherwise this cookbook doesn't work on older RHEL systems
parent
c3085f98
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
9 additions
and
6 deletions
+9
-6
.kitchen.yml
.kitchen.yml
+0
-4
Berksfile
Berksfile
+0
-1
README.md
README.md
+1
-0
metadata.rb
metadata.rb
+1
-0
recipes/default.rb
recipes/default.rb
+7
-1
No files found.
.kitchen.yml
View file @
32149b8f
...
...
@@ -6,11 +6,7 @@ provisioner:
platforms
:
-
name
:
centos-5.11
run_list
:
-
recipe[yum-epel]
-
name
:
centos-6.7
run_list
:
-
recipe[yum-epel]
-
name
:
centos-7.2
-
name
:
debian-7.9
run_list
:
apt::default
...
...
Berksfile
View file @
32149b8f
...
...
@@ -5,7 +5,6 @@ metadata
group
:integration
do
cookbook
'apt'
cookbook
'yum'
cookbook
'yum-epel'
end
cookbook
'runit_test'
,
path:
'test/cookbooks/runit_test'
...
...
README.md
View file @
32149b8f
...
...
@@ -26,6 +26,7 @@ Requirements
#### Cookbooks
-
packagecloud (for RHEL)
-
yum-epel (for RHEL)
Attributes
----------
...
...
metadata.rb
View file @
32149b8f
...
...
@@ -13,6 +13,7 @@ recipe 'runit', 'Installs and configures runit'
end
depends
'packagecloud'
depends
'yum-epel'
source_url
'https://github.com/hw-cookbooks/runit'
if
respond_to?
(
:source_url
)
issues_url
'https://github.com/hw-cookbooks/runit/issues'
if
respond_to?
(
:issues_url
)
recipes/default.rb
View file @
32149b8f
...
...
@@ -39,7 +39,13 @@ end
case
node
[
'platform_family'
]
when
'rhel'
,
'fedora'
packagecloud_repo
'imeyer/runit'
unless
node
[
'runit'
][
'prefer_local_yum'
]
# add the necessary repos unless prefer_local_yum is set
unless
node
[
'runit'
][
'prefer_local_yum'
]
include_recipe
'yum-epel'
if
node
[
'platform_version'
].
to_i
<
7
packagecloud_repo
'imeyer/runit'
end
package
'runit'
service
'runsvdir-start'
do
...
...
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