So I was able to get some things up and running.
However, I created classes/base.pp :
class base {
file { "/etc/ldap.conf":
ensure => exists,
owner => root,
group => root,
mode => 440,
source =>
"puppet://192.168.1.222/dist/apps/base/ldap.conf",
}
file { "/etc/nsswitch.conf":
ensure => exists,
owner => root,
group => root,
mode => 440,
source =>
"puppet://192.168.1.222/dist/apps/base/nsswitch.conf",
}
file { "/etc/security/access.conf":
ensure => exists,
owner => root,
group => root,
mode => 440,
source =>
"puppet://192.168.1.222/dist/apps/base/access.conf",
}
file { "/etc/sudoers":
owner => root,
group => root,
mode => 440,
source =>
"puppet://192.168.1.222/dist/apps/sudo/sudoers",
}
}
I don''t see anything wrong with it and using the configs off the
different
sites I have found it looks OK.
My site.pp:
import "classes/*"
node ''servername.whatever.com'' {
include base
}
Puppetmasterd doesn''t complain.
info: mount[puppet]: allowing * access
info: mount[dist]: allowing * access
debug: Creating interpreter
debug: importing ''classes/base.pp''
info: Parsed manifest in 0.01 seconds
info: Listening on port 8140
notice: Starting Puppet server version 0.22.1
Now. When I run puppetd --verbose --debug on a client machine I get this..
debug: Creating default schedules
notice: Starting Puppet client version 0.22.1
debug: getting config
debug: Calling puppetmaster.getconfig
debug: Retrieved configuration in 0.27 seconds
info: Caching configuration at /var/lib/puppet/localconfig.yaml
debug: Finishing transaction -607594838 with 0 changes
err: Could not create /etc/ldap.conf: You cannot specify more than one of
content, source, target at /etc/puppet/manifests/classes/base.pp:8
err: You cannot specify more than one of content, source, target at
/etc/puppet/manifests/classes/base.pp:8
err: Could not create /etc/nsswitch.conf: You cannot specify more than one
of content, source, target at /etc/puppet/manifests/classes/base.pp:15
err: You cannot specify more than one of content, source, target at
/etc/puppet/manifests/classes/base.pp:15
err: Could not create /etc/security/access.conf: You cannot specify more
than one of content, source, target at
/etc/puppet/manifests/classes/base.pp:23
err: You cannot specify more than one of content, source, target at
/etc/puppet/manifests/classes/base.pp:23
notice: Starting configuration run
debug: //cservername.whatever.com/base/File[/etc/sudoers]/checksum:
Initializing checksum hash
debug: //servername.whatever.com/base/File[/etc/sudoers]: Creating checksum
{md5}81b359b2a7666bd36f866d894977233a
debug: Calling fileserver.describe
debug: Finishing transaction -607632148 with 0 changes
debug: Storing state
info: Creating state file /var/lib/puppet/state/state.yaml
debug: Stored state in 0.01 seconds
notice: Finished configuration run in 0.24 seconds
Any ideas?