Pedro Simões
2007-Aug-27 09:46 UTC
Re: Problem restarting client service ssh in client (Pedro Simoes)
Ok, the file definition was missing. Now i''ve put that:
## services/ssh.pp
class ssh {
file { sshd_config:
name => "/etc/ssh/sshd_config"
}
service { ssh:
name => $operatingsystem ? {
Debian => ssh,
default => sshd
},
ensure => running,
subscribe => File[sshd_config]
}
}
I''ve added another service (syslog.pp):
## services/syslog.pp
class syslog {
file { syslog_conf:
name => "/etc/syslog-ng/syslog-ng.conf"
}
service { syslog:
name => syslog-ng,
ensure => running,
subscribe => File[syslog_conf]
}
}
Now I''ve deleted the file, remove it from site.pp includes, restarted
the puppetmaster and even removed it from the classes.txt on the
client. Running the puppetd -v (on client), shows that it still reads
the syslog.pp configuration. Is this normal? It''s cache?
> >
>
> Please provide a bit more context for the files referenced when asking
> questions like this.
>
> In this case, show the lines/resources surrounding line 11 in
> /etc/puppet/manifests/services/ssh.p/etc/puppet/manifests/services/ssh.pp
> and any other resources you might think have an impact on the problem.
>
> In this case, puppet is looking for a file {
"/etc/ssh/sshd_config":
> definitions somewhere. Do you have that?
>
> --
> Thijs
>
Thijs Oppermann
2007-Aug-27 09:52 UTC
Re: Problem restarting client service ssh in client (Pedro Simoes)
On 27/08/07, Pedro Simões <pedro.a.simoes@gmail.com> wrote:> Ok, the file definition was missing. Now i''ve put that: > > ## services/ssh.pp > > class ssh { > file { sshd_config: > name => "/etc/ssh/sshd_config" > } > > service { ssh: > name => $operatingsystem ? { > Debian => ssh, > default => sshd > }, > ensure => running, > subscribe => File[sshd_config] > } > } > > I''ve added another service (syslog.pp): > > ## services/syslog.pp > > class syslog { > file { syslog_conf: > name => "/etc/syslog-ng/syslog-ng.conf" > } > > service { syslog: > name => syslog-ng, > ensure => running, > subscribe => File[syslog_conf] > } > } > > Now I''ve deleted the file, remove it from site.pp includes, restarted > the puppetmaster and even removed it from the classes.txt on the > client. Running the puppetd -v (on client), shows that it still reads > the syslog.pp configuration. Is this normal? It''s cache?What information does the puppetmaster give you when you run it with --verbose? At startup of puppetmaster itself, and when the client connects to it? Thijs