[Puppet Users] Newbie question

2011-12-09 Thread shaunington
Hi I would like to perform a simple host name lookup in a template: <% if dbname != "db1" %> master-host = %= scope.getip(["db1.maxown.com"]) %> <% end -%> so far I have written a function # getip.rb module Puppet::Parser::Functions newfunction(:getip, :type => :rvalue) do |args| Puppet

[Puppet Users] Does Puppet restart a failed service by default?

2014-10-29 Thread shaunington
Hi, Here is a V simple class: class ssh { package { 'openssh-server': ensure => installed, } service { 'sshd': enabled => true, ensure => running, } } My question is: If sshd dies will the puppet agent (v2.7.x) restart sshd the next time it runs on the client? TI