Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

[COOK-1703] Add notification to reload if the template changes #6

Closed
wants to merge 1 commit into from

3 participants

John Nishinaga John Dewey Joshua Timberman
John Nishinaga

This causes sshd to be reloaded if the sshd_config is updated.

John Dewey

This is actually added to #5 if it gets brought it.

John Nishinaga

I agree.

Joshua Timberman
Owner

Fixed via PR #5 (COOK-1663).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Showing 1 unique commit by 1 author.

Sep 26, 2012
John Nishinaga jingoro [COOK-1703] Add notification to reload if the template changes 0f500ed
This page is out of date. Refresh to see the latest.

Showing 1 changed file with 8 additions and 8 deletions. Show diff stats Hide diff stats

  1. +8 8 recipes/default.rb
16 recipes/default.rb
@@ -38,14 +38,6 @@
38 38 variables(:settings => node['openssh']['client'])
39 39 end
40 40
41   -template "/etc/ssh/sshd_config" do
42   - source "sshd_config.erb"
43   - mode '0644'
44   - owner 'root'
45   - group 'root'
46   - variables(:settings => node['openssh']['server'])
47   -end
48   -
49 41 service "ssh" do
50 42 case node['platform']
51 43 when "centos","redhat","fedora","arch","scientific","amazon"
@@ -69,3 +61,11 @@
69 61 action [ :enable, :start ]
70 62 end
71 63
  64 +template "/etc/ssh/sshd_config" do
  65 + source "sshd_config.erb"
  66 + mode '0644'
  67 + owner 'root'
  68 + group 'root'
  69 + variables(:settings => node['openssh']['server'])
  70 + notifies :reload, resources(:service => "ssh"), :immediate
  71 +end

Tip: You can add notes to lines in a file. Hover to the left of a line to make a note

Something went wrong with that request. Please try again.