> Hi.I''m Running Puppetserver 24.1 and having problem getting puppetmanaged files from the puppet master.> In my fileserver.conf I have: > [common] > path /var/lib/puppet/common > allow * > > And the source files in in the directory. > [root@a07mmfl001 puppetshow]# ls /var/lib/puppet/common/ > backup-servers cron.allow_wasadm mrepo.repo > puppet.conf.dist smb.conf.waslogs sysctl.conf.default > bash_profile_twsadm hosts ntp_ntp.conf > puppet.conf.dist~ smb.conf.wpslogs up2date > bash_profile_wasadm hosts_was_pensjon ntp_sysconfig_clock > puppet_sysconfig sources-rhel4as-i386 > bash_profile_wasadm_q ITMAgents1_was ntp_sysconfig_ntpd > rhel-debuginfo.repo sources-rhel4es-i386 > bastille_config ITMAgents1_wps pam_system-auth-samba > rhnplugin.conf sources-rhel4es-x86_64 > bastille-tmpdir-defense.sh limits.conf puppet.conf > smbadduser sudoers > > Example from a class: > class ntp { > package { ntp: > ensure => present, > } > service { ntpd: > ensure => running, > hasstatus => true, > hasrestart => true, > subscribe => Package[ntp] > } > file { "/etc/ntp.conf": > mode => 644, > owner => root, > group => root, > source => "puppet://$server/common/ntp_ntp.conf", > notify => Service["ntpd"] > } > file { "/etc/sysconfig/ntpd": > mode => 644, > owner => root, > group => root, > source => > "puppet://$server/common/ntp_sysconfig_ntpd", > notify => Service["ntpd"] > } > file { "/etc/sysconfig/clock": > mode => 644, > owner => root, > group => root, > source => > "puppet://$server/common/ntp_sysconfig_clock", > notify => Service["ntpd"] > } > } > > In site.pp I have the following line: > $server = ''a07mmfl001.internsone.local'' > Which is the hostanme of the puppetmaster server. > > Debugmessages from Puppetmaster: > > debug: Overriding 155.55.172.45 with cert name > b08apfl005.preprod.internsone.local > debug: Allowing authenticated client > b08apfl005.preprod.internsone.local(155.55.172.45) access to > fileserver.describe > debug: mount[common]: Describing /common/ntp_sysconfig_ntpd for > b08apfl005.preprod.internsone.local > debug: mount[common]: File source ntp_sysconfig_ntpd does not exist > > This have been working perfectly until recently. I believe it was > after I enabled storeconfigs. I did try to set storeconfigs to false. > But the problem still exsists. So something strange has happend. > > Debug from a client: > > class ntp { > package { ntp: > ensure => present, > } > service { ntpd: > ensure => running, > hasstatus => true, > hasrestart => true, > subscribe => Package[ntp] > } > file { "/etc/ntp.conf": > mode => 644, > owner => root, > group => root, > source => "puppet://$server/common/ntp_ntp.conf", > notify => Service["ntpd"] > } > file { "/etc/sysconfig/ntpd": > mode => 644, > owner => root, > group => root, > source => > "puppet://$server/common/ntp_sysconfig_ntpd", > notify => Service["ntpd"] > } > file { "/etc/sysconfig/clock": > mode => 644, > owner => root, > group => root, > source => > "puppet://$server/common/ntp_sysconfig_clock", > notify => Service["ntpd"] > } > } > > > > How can I debug this problem to get my clients download files from the > [common] mountpoint on the puppetmaster? > > Magnar_______________________________________________ Puppet-users mailing list Puppet-users@madstop.com https://mail.madstop.com/mailman/listinfo/puppet-users
Hey,
This is one of the point I noted, you should have a " ; " (simicolon)
at end of each file conf or service conf under the class.
eg
class test {
file { "/junk/jun1/test":
mode => 644,
owner => root,
group => root,
source => "puppet://$se ...
notify => Service["ntpd"] ;
}
file { "/test1/test2" :
mode =>
owner = >
source => "test .." ;
}
}
This is not the only thing .. but this is also one of the thing I came across.
Thanks
-Rajeshwaran
On Feb 5, 2008 2:52 PM, Martinsen, Magnar <Magnar.Martinsen@nav.no>
wrote:>
>
>
>
>
>
>
> Hi.
> I''m Running Puppetserver 24.1 and having problem getting
puppetmanaged files
> from the puppet master.
>
> In my fileserver.conf I have:
> [common]
> path /var/lib/puppet/common
> allow *
>
> And the source files in in the directory.
> [root@a07mmfl001 puppetshow]# ls /var/lib/puppet/common/
> backup-servers cron.allow_wasadm mrepo.repo
> puppet.conf.dist smb.conf.waslogs sysctl.conf.default
>
> bash_profile_twsadm hosts ntp_ntp.conf
> puppet.conf.dist~ smb.conf.wpslogs up2date
>
> bash_profile_wasadm hosts_was_pensjon ntp_sysconfig_clock
> puppet_sysconfig sources-rhel4as-i386
> bash_profile_wasadm_q ITMAgents1_was ntp_sysconfig_ntpd
> rhel-debuginfo.repo sources-rhel4es-i386
> bastille_config ITMAgents1_wps pam_system-auth-samba
> rhnplugin.conf sources-rhel4es-x86_64
> bastille-tmpdir-defense.sh limits.conf puppet.conf
> smbadduser sudoers
>
> Example from a class:
> class ntp {
> package { ntp:
> ensure => present,
> }
> service { ntpd:
> ensure => running,
> hasstatus => true,
> hasrestart => true,
> subscribe => Package[ntp]
> }
> file { "/etc/ntp.conf":
> mode => 644,
> owner => root,
> group => root,
> source =>
"puppet://$server/common/ntp_ntp.conf",
> notify => Service["ntpd"]
> }
> file { "/etc/sysconfig/ntpd":
> mode => 644,
> owner => root,
> group => root,
> source =>
"puppet://$server/common/ntp_sysconfig_ntpd",
> notify => Service["ntpd"]
> }
> file { "/etc/sysconfig/clock":
> mode => 644,
> owner => root,
> group => root,
> source =>
"puppet://$server/common/ntp_sysconfig_clock",
> notify => Service["ntpd"]
> }
> }
>
> In site.pp I have the following line:
> $server = ''a07mmfl001.internsone.local''
> Which is the hostanme of the puppetmaster server.
>
> Debugmessages from Puppetmaster:
>
> debug: Overriding 155.55.172.45 with cert name
> b08apfl005.preprod.internsone.local
> debug: Allowing authenticated client
> b08apfl005.preprod.internsone.local(155.55.172.45) access to
> fileserver.describe
> debug: mount[common]: Describing /common/ntp_sysconfig_ntpd for
> b08apfl005.preprod.internsone.local
> debug: mount[common]: File source ntp_sysconfig_ntpd does not exist
>
> This have been working perfectly until recently. I believe it was after I
> enabled storeconfigs. I did try to set storeconfigs to false. But the
> problem still exsists. So something strange has happend.
>
> Debug from a client:
>
> class ntp {
> package { ntp:
> ensure => present,
> }
> service { ntpd:
> ensure => running,
> hasstatus => true,
> hasrestart => true,
> subscribe => Package[ntp]
> }
> file { "/etc/ntp.conf":
> mode => 644,
> owner => root,
> group => root,
> source =>
"puppet://$server/common/ntp_ntp.conf",
> notify => Service["ntpd"]
> }
> file { "/etc/sysconfig/ntpd":
> mode => 644,
> owner => root,
> group => root,
> source =>
"puppet://$server/common/ntp_sysconfig_ntpd",
> notify => Service["ntpd"]
> }
> file { "/etc/sysconfig/clock":
> mode => 644,
> owner => root,
> group => root,
> source =>
"puppet://$server/common/ntp_sysconfig_clock",
> notify => Service["ntpd"]
> }
> }
>
>
>
> How can I debug this problem to get my clients download files from the
> [common] mountpoint on the puppetmaster?
>
> Magnar
> _______________________________________________
> Puppet-users mailing list
> Puppet-users@madstop.com
> https://mail.madstop.com/mailman/listinfo/puppet-users
>
>
--
He also serves Who only stands and waits....
On 05/02/2008, Martinsen, Magnar <Magnar.Martinsen@nav.no> wrote:> > Hi. > I''m Running Puppetserver 24.1 and having problem getting puppetmanaged files > from the puppet master. > > In my fileserver.conf I have: > [common] > path /var/lib/puppet/common > allow * > > And the source files in in the directory. > [root@a07mmfl001 puppetshow]# ls /var/lib/puppet/common/<snip> What are the perms on /var/lib/puppet/common/ and the files in that directory? The reason I ask is I set up a script that auto populates the directory I serve out files and I have a "chown -R /var/lib/puppet/files/" line in the script. I must have put that in there for some reason at the time :) Kent
I figured it out. It was becuase I had a module installed called common, and I also had a [common] mount in the fileserver. After renaming the mountpoint and changing the source-path. Everything worked. Seemed like the names conflicted. Magnar -----Opprinnelig melding----- Fra: puppet-users-bounces@madstop.com [mailto:puppet-users-bounces@madstop.com] På vegne av Kenton Brede Sendt: 5. februar 2008 13:31 Til: Puppet User Discussion Emne: Re: [Puppet-users] No Specified Source exsists On 05/02/2008, Martinsen, Magnar <Magnar.Martinsen@nav.no> wrote:> > Hi. > I''m Running Puppetserver 24.1 and having problem getting puppetmanaged > files from the puppet master. > > In my fileserver.conf I have: > [common] > path /var/lib/puppet/common > allow * > > And the source files in in the directory. > [root@a07mmfl001 puppetshow]# ls /var/lib/puppet/common/<snip> What are the perms on /var/lib/puppet/common/ and the files in that directory? The reason I ask is I set up a script that auto populates the directory I serve out files and I have a "chown -R /var/lib/puppet/files/" line in the script. I must have put that in there for some reason at the time :) Kent _______________________________________________ Puppet-users mailing list Puppet-users@madstop.com https://mail.madstop.com/mailman/listinfo/puppet-users