Hello Reno,

"require" is a metaparameter -- see:

http://reductivelabs.com/trac/puppet/wiki/MetaparameterReference#require

I believe the string proceeding the brackets is a "capitalized type" from:

http://reductivelabs.com/trac/puppet/wiki/TypeReference

and the string inside the brackets is the "name" of another resource in 
the class.

Regards,
-Roy

Reno wrote:
> hello,
>
> what is the meaning of that:
>
>
> require => Exec[subscribe-echo]
>
>
> On Oct 21, 4:21 pm, Roy Nielsen <r...@lanl.gov> wrote:
>   
>> Hello Reno,
>>
>> Try this:
>>
>>     exec { touch-file:
>>         command => "touch /home/test",
>>         require => Exec[subscribe-echo]
>>     }
>>
>>  - or -
>>
>>     file { touch-file:
>>         contents => " ",
>>         path  => "/home/test",
>>         require => Exec[subscribe-echo]
>>      }
>>
>> Regards,
>> -Roy
>>
>> Reno wrote:
>>     
>>> I have this:
>>>       
>>> class aptsetup {
>>>       
>>>       file { "/etc/apt/sources.list":
>>>              owner  => root,
>>>              group  => root,
>>>              mode => 644,
>>>              source => "puppet://asus-vista-box.lokku.net/files/etc/
>>> apt/sources.list"
>>>       }
>>>       
>>>  }
>>>       
>>>   exec { subscribe-echo:
>>>                command     => "/usr/bin/apt-get -q -q update",
>>>                logoutput   => false,
>>>                refreshonly => true,
>>>                subscribe   => file["/etc/apt/sources.list"]
>>>        }
>>>       
>>> I'd like to execute enother command after "/usr/bin/apt-get -q -q
>>> update" for example "touch /home/test"
>>>       
>>> In wich way you suggest to do that?
>>>       
> >
>   


--~--~---------~--~----~------------~-------~--~----~
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+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to