Skip to content

Commit

Permalink
Merge pull request #298 from bflad/restart-deprecation
Browse files Browse the repository at this point in the history
Further deprecate daemon restart flag by default, which interferes with restart policies
  • Loading branch information
bflad committed Apr 14, 2015
2 parents 1ab77f0 + be9993b commit d2010d2
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ options | Additional options to pass to docker. These could be flags like "-api-
pidfile | Path to use for daemon PID file | String | nil (implicitly /var/run/docker.pid)
ramdisk | Set DOCKER_RAMDISK when using RAM disk | TrueClass or FalseClass | false
registry-mirror | List of docker registry mirrors | String, Array | nil
restart (*DEPRECATED*) | Restart containers on boot | TrueClass or FalseClass | auto-detected (see attributes/default.rb)
restart (*DEPRECATED*) | Restart containers on boot | TrueClass or FalseClass | nil
selinux_enabled | Enable SELinux | TrueClass or FalseClass | nil
storage_driver | Storage driver for docker | String | nil
storage_opt | Storage driver options | String, Array | nil
Expand Down
2 changes: 1 addition & 1 deletion attributes/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -199,4 +199,4 @@
# Other attributes

# DEPRECATED: will be removed in chef-docker 1.0
default['docker']['restart'] = false if node['docker']['container_init_type']
default['docker']['restart'] = nil
4 changes: 2 additions & 2 deletions spec/systemd_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -88,10 +88,10 @@
end

# DEPRECATED: will be removed in chef-docker 1.0
context 'when container_init_type is set' do
context 'when restart is set' do
let(:chef_run) do
runner = ChefSpec::SoloRunner.new
runner.node.set['docker']['container_init_type'] = 'upstart'
runner.node.set['docker']['restart'] = false
runner.converge(described_recipe)
end

Expand Down
4 changes: 2 additions & 2 deletions spec/sysv_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -99,10 +99,10 @@
end

# DEPRECATED: will be removed in chef-docker 1.0
context 'when container_init_type is set' do
context 'when restart is set' do
let(:chef_run) do
runner = ChefSpec::SoloRunner.new
runner.node.set['docker']['container_init_type'] = 'upstart'
runner.node.set['docker']['restart'] = false
runner.converge(described_recipe)
end

Expand Down
4 changes: 2 additions & 2 deletions spec/upstart_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -100,10 +100,10 @@
end

# DEPRECATED: will be removed in chef-docker 1.0
context 'when container_init_type is set' do
context 'when restart is set' do
let(:chef_run) do
runner = ChefSpec::SoloRunner.new
runner.node.set['docker']['container_init_type'] = 'upstart'
runner.node.set['docker']['restart'] = false
runner.converge(described_recipe)
end

Expand Down

0 comments on commit d2010d2

Please sign in to comment.