Skip to content
GitLab
Next
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
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
cc5582db
Commit
cc5582db
authored
Oct 30, 2019
by
Tim Smith
Browse files
Cookstyle fixes
Signed-off-by:
Tim Smith
<
tsmith@chef.io
>
parent
37290be7
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
5 additions
and
10 deletions
+5
-10
.travis.yml
.travis.yml
+1
-4
Gemfile
Gemfile
+1
-1
kitchen.dokken.yml
kitchen.dokken.yml
+1
-0
kitchen.yml
kitchen.yml
+1
-0
libraries/resource_runit_service.rb
libraries/resource_runit_service.rb
+0
-1
metadata.rb
metadata.rb
+0
-3
recipes/default.rb
recipes/default.rb
+1
-1
No files found.
.travis.yml
View file @
cc5582db
...
...
@@ -5,7 +5,6 @@ addons:
packages
:
-
chef-workstation
# Don't `bundle install` which takes about 1.5 mins
install
:
echo "skip bundle install"
env
:
...
...
@@ -39,10 +38,8 @@ before_script:
-
sudo iptables -L DOCKER || ( echo "DOCKER iptables chain missing" ; sudo iptables -N DOCKER )
-
eval "$(chef shell-init bash)"
-
chef --version
-
cookstyle --version
-
foodcritic --version
script
:
KITCHEN_LOCAL_YAML=kitchen.dokken.yml kitchen verify ${INSTANCE}
script
:
KITCHEN_LOCAL_YAML=kitchen.dokken.yml
CHEF_VERSION=${CHEF_VERSION}
kitchen verify ${INSTANCE}
matrix
:
include
:
...
...
Gemfile
View file @
cc5582db
# This gemfile provides additional gems for testing and releasing this cookbook
# It is meant to be installed on top of ChefDK which provide
s
the majority
# It is meant to be installed on top of ChefDK
/ Chef Workstation
which provide the majority
# of the necessary gems for testing this cookbook
#
# Run 'chef exec bundle install' to install these dependencies
...
...
kitchen.dokken.yml
View file @
cc5582db
...
...
@@ -2,6 +2,7 @@ driver:
name
:
dokken
privileged
:
true
# because Docker and SystemD/Upstart
chef_version
:
<%= ENV['CHEF_VERSION'] || 'current' %>
chef_license
:
accept-no-persist
transport
:
name
:
dokken
...
...
kitchen.yml
View file @
cc5582db
...
...
@@ -13,6 +13,7 @@ platforms:
-
name
:
amazonlinux
driver_config
:
box
:
mvbcoding/awslinux
-
name
:
amazonlinux-2
-
name
:
centos-6
-
name
:
centos-7
-
name
:
debian-9
...
...
libraries/resource_runit_service.rb
View file @
cc5582db
...
...
@@ -28,7 +28,6 @@ class Chef
resource_name
:runit_service
default_action
:enable
allowed_actions
:nothing
,
:start
,
:stop
,
:enable
,
:disable
,
:restart
,
:reload
,
:status
,
:once
,
:hup
,
:cont
,
:term
,
:kill
,
:up
,
:down
,
:usr1
,
:usr2
,
:create
,
:reload_log
# For legacy reasons we allow setting these via attribute
property
:sv_bin
,
String
,
default:
lazy
{
node
[
'runit'
][
'sv_bin'
]
||
(
platform_family?
(
'debian'
)
?
'/usr/bin/sv'
:
'/sbin/sv'
)
}
...
...
metadata.rb
View file @
cc5582db
...
...
@@ -3,11 +3,8 @@ maintainer 'Chef Software, Inc.'
maintainer_email
'cookbooks@chef.io'
license
'Apache-2.0'
description
'Installs runit and provides runit_service resource'
long_description
IO
.
read
(
File
.
join
(
File
.
dirname
(
__FILE__
),
'README.md'
))
version
'5.1.2'
recipe
'runit'
,
'Installs and configures runit'
%w(ubuntu debian centos redhat amazon scientific oracle enterpriseenterprise zlinux)
.
each
do
|
os
|
supports
os
end
...
...
recipes/default.rb
View file @
cc5582db
...
...
@@ -45,7 +45,7 @@ when 'debian'
package
pkg_name
do
# ~FC009
action
:install
response_file
'runit.seed'
response_file
'runit.seed'
end
else
raise
'The cookbook only supports Debian/RHEL based Linux distributions. If you believe further platform support is possible please open a pull request.'
...
...
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