Skip to content

Instantly share code, notes, and snippets.

@cwebberOps
Created May 14, 2014 21:03
Show Gist options
  • Save cwebberOps/54f1d07869a7afab15c0 to your computer and use it in GitHub Desktop.
Save cwebberOps/54f1d07869a7afab15c0 to your computer and use it in GitHub Desktop.
if node[:platform] == 'ubuntu'
an_provider = Chef:Something:Upstart
else
an_provider = nil
end
service 'sshd' do
provider an_provider
action [:enable, :start]
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment