We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 654fe66 commit 8925432Copy full SHA for 8925432
recipes/default.rb
@@ -126,13 +126,12 @@
126
127
# Create the mongod.service file
128
case node['platform']
129
-when 'ubuntu'
130
- if node['platform_version'].to_f >= 15.04
+ when 'ubuntu'
131
template '/lib/systemd/system/mongod.service' do
132
source 'mongod.service.erb'
133
mode 0644
+ only_if { node['platform_version'].to_f >= 15.04 }
134
end
135
- end
136
137
138
# Start the mongod service
0 commit comments