Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
mirror
Dpkg Autostart
Commits
15bb4a67
Commit
15bb4a67
authored
Aug 11, 2013
by
Chris Roberts
Browse files
Remove LWRPs
parent
6d3fbc23
Changes
2
Hide whitespace changes
Inline
Side-by-side
providers/default.rb
deleted
100644 → 0
View file @
6d3fbc23
action
(
:set
){}
resources/default.rb
deleted
100644 → 0
View file @
6d3fbc23
actions
:set
default_action
:set
def
allow
(
val
)
node
.
run_state
[
:dpkg_autostart_disabled
]
||=
[]
node
.
run_state
[
:dpkg_autostart_disabled
].
push
(
name
)
unless
val
begin
node
.
run_context
.
resource_collection
.
lookup
(
'template[dpkg_autostart_file]'
)
rescue
Chef
::
Exceptions
::
ResourceNotFound
template
=
Chef
::
Resource
::
Template
.
new
(
'dpkg_autostart_file'
,
node
.
run_context
)
template
.
cookbook
'dpkg_autostart'
template
.
source
'policy-rc.d.erb'
template
.
path
'/usr/sbin/policy-rc.d'
template
.
mode
0755
template
.
action
:create
# Force this to the front of the line
node
.
run_context
.
resource_collection
.
all_resources
.
unshift
(
template
)
end
end
Write
Preview
Supports
Markdown
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