Skip to content

Commit cce05ff

Browse files
KierranMmeringu
authored andcommitted
Remove the cron that updates the agent
1 parent 67619ab commit cce05ff

File tree

3 files changed

+12
-0
lines changed

3 files changed

+12
-0
lines changed

providers/agent.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,10 @@ def install_code_deploy_agent
100100
execute install_command do
101101
not_if { up_to_date }
102102
end
103+
104+
file '/etc/cron.d/codedeploy-agent-update' do
105+
action :delete
106+
end
103107
end
104108

105109
action :install do

test/integration/install/inspec/code_deploy_spec.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,8 @@
1111
it { should_not be_enabled }
1212
it { should_not be_running }
1313
end
14+
15+
describe file('/etc/cron.d/codedeploy-agent-update') do
16+
it { should_not exist }
17+
end
1418
end

test/integration/install_and_start/inspec/code_deploy_spec.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,8 @@
1111
it { should be_enabled }
1212
it { should be_running }
1313
end
14+
15+
describe file('/etc/cron.d/codedeploy-agent-update') do
16+
it { should_not exist }
17+
end
1418
end

0 commit comments

Comments
 (0)