Hey;

According to the puppet language resource guide 
at https://docs.puppet.com/puppet/latest/reference/lang_resources_advanced.html:

If a resource expression includes more than one resource body, the 
expression will declare multiple resources of that resource type. (A 
resource body is a title and a set of attributes; each body must be 
separated from the next one with a semicolon.)

With that, can someone take a peek and tell me what I'm messing up with 
this manifest?

file {
  default:
    ensure   => 'directory',
    owner    => 'root',
    group    => 'root',
  ;


  '/'        : mode  => '0755' ;
  '/home'    : mode  => '0755' ;
  '/opt'     : mode  => '0755' ;
  '/usr'     : mode  => '0755' ;
  '/var'     : mode  => '0755' ;
  '/tmp'     : mode  => '1777' ;
  '/var/tmp' : mode  => '1777' ;


  '/etc/passwd':
    ensure   => 'file',
    mode     => '0644',
  ;
  '/etc/group':
    ensure   => 'file',
    mode     => '0644',
  ;


  '/etc/shadow':
    ensure   => 'file',
    mode     => '0000',
  ;


  '/etc/rc.d/init.d':
    mode     => '0755',
    recurse  => true,
  ;
}


I'm not seeing the error; but, when I try to apply it, I get:

$ sudo puppet apply ./file.pp
Notice: Compiled catalog for node1.olearycomputers.com in environment 
production in 0.04 seconds
Error: Parameter path failed on File[/]: File paths must be fully 
qualified, not '' at 
/ignite/dkoleary/mpi_git/puppet/modules/mpicommon/manifests/file.pp:1

Any pointers, greatly appreciated.

Doug O'Leary

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/f284439e-d1d8-49f0-a77e-d0c07ce61239%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to