Skip to content

Commit

Permalink
Remove the cron that updates the agent
Browse files Browse the repository at this point in the history
  • Loading branch information
KierranM authored and meringu committed Oct 19, 2016
1 parent 67619ab commit cce05ff
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
4 changes: 4 additions & 0 deletions providers/agent.rb
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,10 @@ def install_code_deploy_agent
execute install_command do
not_if { up_to_date }
end

file '/etc/cron.d/codedeploy-agent-update' do
action :delete
end
end

action :install do
Expand Down
4 changes: 4 additions & 0 deletions test/integration/install/inspec/code_deploy_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,8 @@
it { should_not be_enabled }
it { should_not be_running }
end

describe file('/etc/cron.d/codedeploy-agent-update') do
it { should_not exist }
end
end
4 changes: 4 additions & 0 deletions test/integration/install_and_start/inspec/code_deploy_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,8 @@
it { should be_enabled }
it { should be_running }
end

describe file('/etc/cron.d/codedeploy-agent-update') do
it { should_not exist }
end
end

0 comments on commit cce05ff

Please sign in to comment.