I've gone over the documentation several times now and I can't figure out how
to 'apply' a manifest to a client.
The client does have a signed certificate but the only thing in the /etc/puppet
folder on the client is an ssl directory.
I have a manifest that works fine on the puppet 'master'
I have added the client into /etc/puppet/manifests/nodes.pp
I see a page on the website that talks about 'puppet device' but i don't seem
to have that option:
# puppet
Usage: puppet command <space separated arguments>
Available commands are: agent, apply, cert, describe, doc, filebucket, inspect,
kick, master, queue, resource
How do I get the puppet client to run the manifest?
# cat /etc/puppet/manifests/nodes.pp
node ubuntu.ttinet {
include ntp
}
node ubuntu2.ttinet {
include ntp
}
# cat /etc/puppet/modules/ntp/manifests/ntp.pp
# ntp.pp
class ntp {
case $operatingsystem {
centos, redhat: {
$service_name = 'ntpd'
$conf_file = 'ntp.conf.el'
}
debian, ubuntu: {
$service_name = 'ntp'
$conf_file = 'ntp.conf.debian'
}
}
package { 'ntp':
ensure => installed,
}
service { 'ntp':
name => $service_name,
ensure => running,
enable => true,
subscribe => File['ntp.conf'],
}
file { 'ntp.conf':
path => '/etc/ntp.conf',
ensure => file,
require => Package['ntp'],
source => "puppet:///files/ntp/${conf_file}",
}
}
# class {'ntp': }
--
Craig White ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [email protected]
1.800.869.6908 ~~~~~~~~~~~~~~~~~~~~~~~~~~~ www.ttiassessments.com
Need help communicating between generations at work to achieve your desired
success? Let us help!
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/puppet-users?hl=en.