Hi, is site.pp a file must to have? I have set up a puppet server, but my following manifest just cannot apply to my client, the server itself. # cat haitest.pp file { ''/etc/motd'' : source => "puppet:///files/motd" ,} Thanks. Hai T. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/PHMGaA52wR4J. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Hi, On Mon, 2 Jul 2012 16:00:28 -0700 (PDT) Hai <ehaitao@gmail.com> wrote:> Hi, > > is site.pp a file must to have?No, see https://docs.puppetlabs.com/references/stable/configuration.html#manifest> I have set up a puppet server, but my > following manifest just cannot apply to my client, the server itself.If you want help with that, show us the problem. Best regards Hendrik Jäger
You can also set the PUPPETMASTER_MANIFEST variable in /etc/sysconfig/puppetmaster, if you''re running puppet via an RPM build, to change the site manifest from the default /etc/puppet/manifests/site.pp to something else. On Tuesday, July 3, 2012 5:00:52 AM UTC-4, Hendrik Jäger wrote:> > Hi, > > On Mon, 2 Jul 2012 16:00:28 -0700 (PDT) > Hai <ehaitao@gmail.com> wrote: > > > Hi, > > > > is site.pp a file must to have? > > No, see > https://docs.puppetlabs.com/references/stable/configuration.html#manifest > > > I have set up a puppet server, but my > > following manifest just cannot apply to my client, the server itself. > > If you want help with that, show us the problem. > > Best regards > > Hendrik Jäger >-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/ckbTSg20-uUJ. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
I ran into this as well. I found that the puppetmaster will start without a site.pp but, it does not build the catalog and actually apply anything. So, I think that a site.pp file IS required. It can be simple like: import ''nodes.pp'' $puppetserver = ''somehost'' On Mon, Jul 2, 2012 at 7:00 PM, Hai <ehaitao@gmail.com> wrote:> Hi, > > is site.pp a file must to have? I have set up a puppet server, but my > following manifest just cannot apply to my client, the server itself. > > > # cat haitest.pp > file { ''/etc/motd'' : source => "puppet:///files/motd" ,} > > > Thanks. > > Hai T. > > -- > You received this message because you are subscribed to the Google Groups > "Puppet Users" group. > To view this discussion on the web visit > https://groups.google.com/d/msg/puppet-users/-/PHMGaA52wR4J. > To post to this group, send email to puppet-users@googlegroups.com. > To unsubscribe from this group, send email to > puppet-users+unsubscribe@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/puppet-users?hl=en. >-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Maybe Matching Threads
- can puppet-dashboard be installed on CentOS 5.4?
- Error: Could not retrieve catalog from remote server: Error 400 on SERVER: A JSON text must at least contain two octets! at /etc/puppet/manifests/site.pp:4 on node irnode
- problem using apache & passenger to run dashboard
- why enterprise puppet does not use stored config and puppetdb
- Best practise guide