search for: ntp_client

Displaying 6 results from an estimated 6 matches for "ntp_client".

2006 Nov 03
1
Reusable definitions
...server that acts as a proxy for internal nodes, so those internal nodes share the same configuration except for the server they use to get the time. Attempting to describe this I''ve thought of several approaches, and would like to hear comments on them: 1. Use a component to describe an ntp_client. Kind of: define ntp_client( $ntp_server ) { package { ntp ... } file { "/etc/ntp.conf" : content => template( "ntp.conf" ) ... <= Template using <%= ntp_server %> } service { ntpd ... } } node node1 { ntp_client { ntp_server => "server&quot...
2007 Aug 24
4
Variable scope: Class inheritance vs Include statement.
...content => template("/etc/puppet/templates/apps/openntpd/ntpd.conf.erb") } } # This works. class ntp_server { $ntp_class = "ntp_server" include ntp } # Why does this NOT work? # class ntp_server inherits ntp { # $ntp_class = "ntp_server" # } class ntp_client { # Could also possibly read: $ntp_class = $name $ntp_class = "ntp_client" include ntp } /etc/puppet/templates/apps/openntpd/ntpd.conf.erb: <% if ntp_class == "ntp_server" -%> listen on * servers pool.ntp.org <% elsif ntp_class == "ntp_client" -%> s...
2007 Nov 18
9
Modules, namespaces and variables
...pe/Madrid" class ntp { ... some stuff using the ntp_localtime variable (a file resource with ensure => ntp_localtime) ... } $ntp_server = "es.pool.ntp.org" class ntp::ntp_server inherits ntp { ... some stuff including a template that uses ntp_server variable ... } class ntp::ntp_client inherits ntp { ... some stuff ... } Somewhere in manifests/site.pp and its included files: node ''someNode'' { include ntp::ntp_server } Now the questions (by the way, I''m using puppet 0.23.2 in both the puppet and the master): 1. I had to manually add ntp:: to the...
2007 May 21
3
defining client/server configs
...get the ntp class determine which file to use. Ideally I''d like to be able to just say "these boxes are the ntp servers" and then watch all the boxes get the correct config files :-) Some psuedocode like: if ($ntp_server in thisbox.aliases) { use ntp_server template else use ntp_client template fi This then leads onto where to store "details" for want of a better term. I see there has been some discussion about this: (http://mail.madstop.com/pipermail/puppet-users/2007-May/002649.html) Some of these details are per server (IP address for example - but I want to say...
2007 Aug 24
7
Problem restarting client service ssh in client
Hello, I want a simple operation in a puppet node like restarting the ssh service if it was stopped. My site.pp is simple as this: import "services/*" node default { include ssh } The services directory as a ssh.pp : class ssh { service { ssh: ensure => running, subscribe => File["/etc/ssh/sshd_config"] } } I''ve stopped the ssh service in the
2007 Jan 14
7
Delayed detection of updates
...ibe => File["/etc/munin/plugins"], # ... }}} When adding new snippets to the directory (usually via symlinks), the restart is delayed until the next run detects the changed checksum: david@services:~$ sudo puppetd --test notice: Starting configuration run notice: //services/dbp_etch/ntp_client/munin_plugin[ntp_chip_mariatreu_at]/file=/etc/munin/plugins/ntp_chip_mariatreu_at/ensure: created notice: Finished configuration run in 33.43 seconds david@services:~$ sudo puppetd --test notice: Starting configuration run notice: //services/dbp_etch/default_munin_node/munin_node[default_munin_nod...