RE: [Puppet Users] Re: How to call one manifset from another

2013-02-14 Thread GRANIER Bernard (MORPHO)
Yes but is it ok to have in directory  …/puppet/manifest let’s say three files :
file1.pp defining some nodes
file2.pp defining some nodes

and site.pp with :
include file1
include file2

?

Sincerly,

Bernard Granier
CE Plateforme Système
bernard.gran...@morpho.commailto:bernard.gran...@morpho.com
01 58 11 32 51

From: puppet-users@googlegroups.com [mailto:puppet-users@googlegroups.com] On 
Behalf Of ??? ?
Sent: Thursday, February 14, 2013 6:57 AM
To: puppet-users@googlegroups.com
Subject: [Puppet Users] Re: How to call one manifset from another

import 'some.pp'

среда, 13 февраля 2013 г., 13:03:15 UTC+4 пользователь yarlagadda ramya написал:
Hi all,

I have 3 different manifests. How can i call one manifest from another manifest?

Please do help me with this.
--
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.commailto:puppet-users+unsubscr...@googlegroups.com.
To post to this group, send email to 
puppet-users@googlegroups.commailto:puppet-users@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


#
 This e-mail and any attached documents may contain confidential or 
proprietary information. If you are not the intended recipient, you are 
notified that any dissemination, copying of this e-mail and any attachments 
thereto or use of their contents by any means whatsoever is strictly 
prohibited. If you have received this e-mail in error, please advise the sender 
immediately and delete this e-mail and all attached documents from your 
computer system.
#

-- 
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 post to this group, send email to puppet-users@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [Puppet Users] Re: How to call one manifset from another

2013-02-14 Thread Евгений Верещагин
You can put it into subdirs.

четверг, 14 февраля 2013 г., 12:22:39 UTC+4 пользователь 
bernard...@morpho.com написал:

 Yes but is it ok to have in directory  …/puppet/manifest let’s say three 
 files :

 file1.pp defining some nodes

 file2.pp defining some nodes

  

 and site.pp with :

 include file1

 include file2 

  

 ?

  

 Sincerly,

  

 Bernard Granier

 CE Plateforme Système

 bernard...@morpho.com javascript:

 01 58 11 32 51

  

 *From:* puppet...@googlegroups.com javascript: [mailto:
 puppet...@googlegroups.com javascript:] *On Behalf Of *??? ?
 *Sent:* Thursday, February 14, 2013 6:57 AM
 *To:* puppet...@googlegroups.com javascript:
 *Subject:* [Puppet Users] Re: How to call one manifset from another

  

 import 'some.pp'

 среда, 13 февраля 2013 г., 13:03:15 UTC+4 пользователь yarlagadda ramya 
 написал:

 Hi all,

 I have 3 different manifests. How can i call one manifest from another 
 manifest?

 Please do help me with this.

 -- 
 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...@googlegroups.com javascript:.
 To post to this group, send email to puppet...@googlegroups.comjavascript:
 .
 Visit this group at http://groups.google.com/group/puppet-users?hl=en.
 For more options, visit https://groups.google.com/groups/opt_out.
  
  

 #
  This e-mail and any attached documents may contain confidential or 
 proprietary information. If you are not the intended recipient, you are 
 notified that any dissemination, copying of this e-mail and any attachments 
 thereto or use of their contents by any means whatsoever is strictly 
 prohibited. If you have received this e-mail in error, please advise the 
 sender immediately and delete this e-mail and all attached documents from 
 your computer system.
 #


-- 
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 post to this group, send email to puppet-users@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




RE: [Puppet Users] Re: How to call one manifset from another

2013-02-14 Thread GRANIER Bernard (MORPHO)
Subdirs ? which one ?

Cordialement,

Bernard Granier
CE Plateforme Système
bernard.gran...@morpho.commailto:bernard.gran...@morpho.com
01 58 11 32 51

From: puppet-users@googlegroups.com [mailto:puppet-users@googlegroups.com] On 
Behalf Of ??? ?
Sent: Thursday, February 14, 2013 9:44 AM
To: puppet-users@googlegroups.com
Subject: Re: [Puppet Users] Re: How to call one manifset from another

You can put it into subdirs.

четверг, 14 февраля 2013 г., 12:22:39 UTC+4 пользователь 
bernard...@morpho.commailto:bernard...@morpho.com написал:
Yes but is it ok to have in directory  …/puppet/manifest let’s say three files :
file1.pp defining some nodes
file2.pp defining some nodes

and site.pp with :
include file1
include file2

?

Sincerly,

Bernard Granier
CE Plateforme Système
bernard...@morpho.comjavascript:
01 58 11 32 51

From: puppet...@googlegroups.comjavascript: 
[mailto:puppet...@googlegroups.comjavascript:] On Behalf Of ??? ?
Sent: Thursday, February 14, 2013 6:57 AM
To: puppet...@googlegroups.comjavascript:
Subject: [Puppet Users] Re: How to call one manifset from another

import 'some.pp'

среда, 13 февраля 2013 г., 13:03:15 UTC+4 пользователь yarlagadda ramya написал:
Hi all,

I have 3 different manifests. How can i call one manifest from another manifest?

Please do help me with this.
--
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...@googlegroups.comjavascript:.
To post to this group, send email to puppet...@googlegroups.comjavascript:.
Visit this group at http://groups.google.com/group/puppet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.



#
 This e-mail and any attached documents may contain confidential or 
proprietary information. If you are not the intended recipient, you are 
notified that any dissemination, copying of this e-mail and any attachments 
thereto or use of their contents by any means whatsoever is strictly 
prohibited. If you have received this e-mail in error, please advise the sender 
immediately and delete this e-mail and all attached documents from your 
computer system.
#
--
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.commailto:puppet-users+unsubscr...@googlegroups.com.
To post to this group, send email to 
puppet-users@googlegroups.commailto:puppet-users@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


#
 This e-mail and any attached documents may contain confidential or 
proprietary information. If you are not the intended recipient, you are 
notified that any dissemination, copying of this e-mail and any attachments 
thereto or use of their contents by any means whatsoever is strictly 
prohibited. If you have received this e-mail in error, please advise the sender 
immediately and delete this e-mail and all attached documents from your 
computer system.
#

-- 
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 post to this group, send email to puppet-users@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [Puppet Users] Re: How to call one manifset from another

2013-02-14 Thread Евгений Верещагин
/etc/puppet/manifests/site.pp
/etc/puppet/manifests/os/win.pp
/etc/puppet/manifests/os/lin.pp

site.pp:

import 'os/win.pp'
import 'os/lin.pp'

четверг, 14 февраля 2013 г., 14:17:47 UTC+4 пользователь 
bernard...@morpho.com написал:

 Subdirs ? which one ?

  

 Cordialement,

  

 Bernard Granier

 CE Plateforme Système

 bernard...@morpho.com javascript:

 01 58 11 32 51

  

 *From:* puppet...@googlegroups.com javascript: [mailto:
 puppet...@googlegroups.com javascript:] *On Behalf Of *??? ?
 *Sent:* Thursday, February 14, 2013 9:44 AM
 *To:* puppet...@googlegroups.com javascript:
 *Subject:* Re: [Puppet Users] Re: How to call one manifset from another

  

 You can put it into subdirs.

 четверг, 14 февраля 2013 г., 12:22:39 UTC+4 пользователь 
 bernard...@morpho.com написал:

 Yes but is it ok to have in directory  …/puppet/manifest let’s say three 
 files :

 file1.pp defining some nodes

 file2.pp defining some nodes

  

 and site.pp with :

 include file1

 include file2 

  

 ?

  

 Sincerly,

  

 Bernard Granier

 CE Plateforme Système

 bernard...@morpho.com

 01 58 11 32 51

  

 *From:* puppet...@googlegroups.com [mailto:puppet...@googlegroups.com] *On 
 Behalf Of *??? ?
 *Sent:* Thursday, February 14, 2013 6:57 AM
 *To:* puppet...@googlegroups.com
 *Subject:* [Puppet Users] Re: How to call one manifset from another

  

 import 'some.pp'

 среда, 13 февраля 2013 г., 13:03:15 UTC+4 пользователь yarlagadda ramya 
 написал:

 Hi all,

 I have 3 different manifests. How can i call one manifest from another 
 manifest?

 Please do help me with this.

 -- 
 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...@googlegroups.com.
 To post to this group, send email to puppet...@googlegroups.com.
 Visit this group at http://groups.google.com/group/puppet-users?hl=en.
 For more options, visit https://groups.google.com/groups/opt_out.
  
  

 #
  This e-mail and any attached documents may contain confidential or 
 proprietary information. If you are not the intended recipient, you are 
 notified that any dissemination, copying of this e-mail and any attachments 
 thereto or use of their contents by any means whatsoever is strictly 
 prohibited. If you have received this e-mail in error, please advise the 
 sender immediately and delete this e-mail and all attached documents from 
 your computer system.
 #

 -- 
 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...@googlegroups.com javascript:.
 To post to this group, send email to puppet...@googlegroups.comjavascript:
 .
 Visit this group at http://groups.google.com/group/puppet-users?hl=en.
 For more options, visit https://groups.google.com/groups/opt_out.
  
  

 #
  This e-mail and any attached documents may contain confidential or 
 proprietary information. If you are not the intended recipient, you are 
 notified that any dissemination, copying of this e-mail and any attachments 
 thereto or use of their contents by any means whatsoever is strictly 
 prohibited. If you have received this e-mail in error, please advise the 
 sender immediately and delete this e-mail and all attached documents from 
 your computer system.
 #


-- 
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 post to this group, send email to puppet-users@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




RE: [Puppet Users] Re: How to call one manifset from another

2013-02-14 Thread GRANIER Bernard (MORPHO)
Ah ok, you use an import and not an include.

As I understood, this is not exactly the same things.

Cordialement,

Bernard Granier
CE Plateforme Système
bernard.gran...@morpho.commailto:bernard.gran...@morpho.com
01 58 11 32 51

From: puppet-users@googlegroups.com [mailto:puppet-users@googlegroups.com] On 
Behalf Of ??? ?
Sent: Thursday, February 14, 2013 11:23 AM
To: puppet-users@googlegroups.com
Subject: Re: [Puppet Users] Re: How to call one manifset from another

/etc/puppet/manifests/site.pp
/etc/puppet/manifests/os/win.pp
/etc/puppet/manifests/os/lin.pp

site.pp:

import 'os/win.pp'
import 'os/lin.pp'

четверг, 14 февраля 2013 г., 14:17:47 UTC+4 пользователь 
bernard...@morpho.commailto:bernard...@morpho.com написал:
Subdirs ? which one ?

Cordialement,

Bernard Granier
CE Plateforme Système
bernard...@morpho.comjavascript:
01 58 11 32 51

From: puppet...@googlegroups.comjavascript: 
[mailto:puppet...@googlegroups.comjavascript:] On Behalf Of ??? ?
Sent: Thursday, February 14, 2013 9:44 AM
To: puppet...@googlegroups.comjavascript:
Subject: Re: [Puppet Users] Re: How to call one manifset from another

You can put it into subdirs.

четверг, 14 февраля 2013 г., 12:22:39 UTC+4 пользователь 
bernard...@morpho.commailto:bernard...@morpho.com написал:
Yes but is it ok to have in directory  …/puppet/manifest let’s say three files :
file1.pp defining some nodes
file2.pp defining some nodes

and site.pp with :
include file1
include file2

?

Sincerly,

Bernard Granier
CE Plateforme Système
bernard...@morpho.commailto:bernard...@morpho.com
01 58 11 32 51

From: puppet...@googlegroups.commailto:puppet...@googlegroups.com 
[mailto:puppet...@googlegroups.com] On Behalf Of ??? ?
Sent: Thursday, February 14, 2013 6:57 AM
To: puppet...@googlegroups.commailto:puppet...@googlegroups.com
Subject: [Puppet Users] Re: How to call one manifset from another

import 'some.pp'

среда, 13 февраля 2013 г., 13:03:15 UTC+4 пользователь yarlagadda ramya написал:
Hi all,

I have 3 different manifests. How can i call one manifest from another manifest?

Please do help me with this.
--
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...@googlegroups.commailto:puppet-users...@googlegroups.com.
To post to this group, send email to 
puppet...@googlegroups.commailto:puppet...@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.



#
 This e-mail and any attached documents may contain confidential or 
proprietary information. If you are not the intended recipient, you are 
notified that any dissemination, copying of this e-mail and any attachments 
thereto or use of their contents by any means whatsoever is strictly 
prohibited. If you have received this e-mail in error, please advise the sender 
immediately and delete this e-mail and all attached documents from your 
computer system.
#
--
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...@googlegroups.comjavascript:.
To post to this group, send email to puppet...@googlegroups.comjavascript:.
Visit this group at http://groups.google.com/group/puppet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.



#
 This e-mail and any attached documents may contain confidential or 
proprietary information. If you are not the intended recipient, you are 
notified that any dissemination, copying of this e-mail and any attachments 
thereto or use of their contents by any means whatsoever is strictly 
prohibited. If you have received this e-mail in error, please advise the sender 
immediately and delete this e-mail and all attached documents from your 
computer system.
#
--
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.commailto:puppet-users+unsubscr...@googlegroups.com.
To post to this group, send email to 
puppet-users@googlegroups.commailto:puppet-users@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


#
 This e-mail and any attached documents may contain confidential or 
proprietary information. If you are not the intended recipient, you are 
notified that any dissemination, copying of this e-mail and any attachments 
thereto or use of their contents by any means whatsoever is strictly 
prohibited. If you have received this e-mail in error, please advise the sender 
immediately and delete this e-mail and all attached documents from your 
computer system.
#

-- 
You received

Re: [Puppet Users] Re: How to call one manifset from another

2013-02-14 Thread Евгений Верещагин
I think that include for classes, and import for pp-files. I learn 
puppet second day :-)

четверг, 14 февраля 2013 г., 14:27:46 UTC+4 пользователь 
bernard...@morpho.com написал:

 Ah ok, you use an import and not an include.

  

 As I understood, this is not exactly the same things.

  

 Cordialement,

  

 Bernard Granier

 CE Plateforme Système

 bernard...@morpho.com javascript:

 01 58 11 32 51

  

 *From:* puppet...@googlegroups.com javascript: [mailto:
 puppet...@googlegroups.com javascript:] *On Behalf Of *??? ?
 *Sent:* Thursday, February 14, 2013 11:23 AM
 *To:* puppet...@googlegroups.com javascript:
 *Subject:* Re: [Puppet Users] Re: How to call one manifset from another

  

 /etc/puppet/manifests/site.pp

 /etc/puppet/manifests/os/win.pp

 /etc/puppet/manifests/os/lin.pp

  

 site.pp:

  

 import 'os/win.pp'

 import 'os/lin.pp'

 четверг, 14 февраля 2013 г., 14:17:47 UTC+4 пользователь 
 bernard...@morpho.com написал:

 Subdirs ? which one ?

  

 Cordialement,

  

 Bernard Granier

 CE Plateforme Système

 bernard...@morpho.com

 01 58 11 32 51

  

 *From:* puppet...@googlegroups.com [mailto:puppet...@googlegroups.com] *On 
 Behalf Of *??? ?
 *Sent:* Thursday, February 14, 2013 9:44 AM
 *To:* puppet...@googlegroups.com
 *Subject:* Re: [Puppet Users] Re: How to call one manifset from another

  

 You can put it into subdirs.

 четверг, 14 февраля 2013 г., 12:22:39 UTC+4 пользователь 
 bernard...@morpho.com написал:

 Yes but is it ok to have in directory  …/puppet/manifest let’s say three 
 files :

 file1.pp defining some nodes

 file2.pp defining some nodes

  

 and site.pp with :

 include file1

 include file2 

  

 ?

  

 Sincerly,

  

 Bernard Granier

 CE Plateforme Système

 bernard...@morpho.com

 01 58 11 32 51

  

 *From:* puppet...@googlegroups.com [mailto:puppet...@googlegroups.com] *On 
 Behalf Of *??? ?
 *Sent:* Thursday, February 14, 2013 6:57 AM
 *To:* puppet...@googlegroups.com
 *Subject:* [Puppet Users] Re: How to call one manifset from another

  

 import 'some.pp'

 среда, 13 февраля 2013 г., 13:03:15 UTC+4 пользователь yarlagadda ramya 
 написал:

 Hi all,

 I have 3 different manifests. How can i call one manifest from another 
 manifest?

 Please do help me with this.

 -- 
 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...@googlegroups.com.
 To post to this group, send email to puppet...@googlegroups.com.
 Visit this group at http://groups.google.com/group/puppet-users?hl=en.
 For more options, visit https://groups.google.com/groups/opt_out.
  
  

 #
  This e-mail and any attached documents may contain confidential or 
 proprietary information. If you are not the intended recipient, you are 
 notified that any dissemination, copying of this e-mail and any attachments 
 thereto or use of their contents by any means whatsoever is strictly 
 prohibited. If you have received this e-mail in error, please advise the 
 sender immediately and delete this e-mail and all attached documents from 
 your computer system.
 #

 -- 
 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...@googlegroups.com.
 To post to this group, send email to puppet...@googlegroups.com.
 Visit this group at http://groups.google.com/group/puppet-users?hl=en.
 For more options, visit https://groups.google.com/groups/opt_out.
  
  

 #
  This e-mail and any attached documents may contain confidential or 
 proprietary information. If you are not the intended recipient, you are 
 notified that any dissemination, copying of this e-mail and any attachments 
 thereto or use of their contents by any means whatsoever is strictly 
 prohibited. If you have received this e-mail in error, please advise the 
 sender immediately and delete this e-mail and all attached documents from 
 your computer system.
 #

 -- 
 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...@googlegroups.com javascript:.
 To post to this group, send email to puppet...@googlegroups.comjavascript:
 .
 Visit this group at http://groups.google.com/group/puppet-users?hl=en.
 For more options, visit https://groups.google.com/groups/opt_out.
  
  

 #
  This e-mail and any attached documents may contain confidential or 
 proprietary information. If you are not the intended recipient, you are 
 notified that any dissemination, copying of this e-mail and any attachments 
 thereto or use of their contents by any means whatsoever is strictly 
 prohibited. If you have received this e-mail in error, please advise the 
 sender immediately and delete this e-mail and all

RE: [Puppet Users] Re: How to call one manifset from another

2013-02-14 Thread GRANIER Bernard (MORPHO)
Ok great, I will test, thanks for the “tip”

Cordialement,

Bernard Granier
CE Plateforme Système
bernard.gran...@morpho.commailto:bernard.gran...@morpho.com
01 58 11 32 51

From: puppet-users@googlegroups.com [mailto:puppet-users@googlegroups.com] On 
Behalf Of ??? ?
Sent: Thursday, February 14, 2013 11:33 AM
To: puppet-users@googlegroups.com
Subject: Re: [Puppet Users] Re: How to call one manifset from another

I think that include for classes, and import for pp-files. I learn puppet 
second day :-)

четверг, 14 февраля 2013 г., 14:27:46 UTC+4 пользователь 
bernard...@morpho.commailto:bernard...@morpho.com написал:
Ah ok, you use an import and not an include.

As I understood, this is not exactly the same things.

Cordialement,

Bernard Granier
CE Plateforme Système
bernard...@morpho.comjavascript:
01 58 11 32 51

From: puppet...@googlegroups.comjavascript: 
[mailto:puppet...@googlegroups.comjavascript:] On Behalf Of ??? ?
Sent: Thursday, February 14, 2013 11:23 AM
To: puppet...@googlegroups.comjavascript:
Subject: Re: [Puppet Users] Re: How to call one manifset from another

/etc/puppet/manifests/site.pp
/etc/puppet/manifests/os/win.pp
/etc/puppet/manifests/os/lin.pp

site.pp:

import 'os/win.pp'
import 'os/lin.pp'

четверг, 14 февраля 2013 г., 14:17:47 UTC+4 пользователь 
bernard...@morpho.commailto:bernard...@morpho.com написал:
Subdirs ? which one ?

Cordialement,

Bernard Granier
CE Plateforme Système
bernard...@morpho.commailto:bernard...@morpho.com
01 58 11 32 51

From: puppet...@googlegroups.commailto:puppet...@googlegroups.com 
[mailto:puppet...@googlegroups.com] On Behalf Of ??? ?
Sent: Thursday, February 14, 2013 9:44 AM
To: puppet...@googlegroups.commailto:puppet...@googlegroups.com
Subject: Re: [Puppet Users] Re: How to call one manifset from another

You can put it into subdirs.

четверг, 14 февраля 2013 г., 12:22:39 UTC+4 пользователь 
bernard...@morpho.commailto:bernard...@morpho.com написал:
Yes but is it ok to have in directory  …/puppet/manifest let’s say three files :
file1.pp defining some nodes
file2.pp defining some nodes

and site.pp with :
include file1
include file2

?

Sincerly,

Bernard Granier
CE Plateforme Système
bernard...@morpho.commailto:bernard...@morpho.com
01 58 11 32 51

From: puppet...@googlegroups.commailto:puppet...@googlegroups.com 
[mailto:puppet...@googlegroups.com] On Behalf Of ??? ?
Sent: Thursday, February 14, 2013 6:57 AM
To: puppet...@googlegroups.commailto:puppet...@googlegroups.com
Subject: [Puppet Users] Re: How to call one manifset from another

import 'some.pp'

среда, 13 февраля 2013 г., 13:03:15 UTC+4 пользователь yarlagadda ramya написал:
Hi all,

I have 3 different manifests. How can i call one manifest from another manifest?

Please do help me with this.
--
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...@googlegroups.commailto:puppet-users...@googlegroups.com.
To post to this group, send email to 
puppet...@googlegroups.commailto:puppet...@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.



#
 This e-mail and any attached documents may contain confidential or 
proprietary information. If you are not the intended recipient, you are 
notified that any dissemination, copying of this e-mail and any attachments 
thereto or use of their contents by any means whatsoever is strictly 
prohibited. If you have received this e-mail in error, please advise the sender 
immediately and delete this e-mail and all attached documents from your 
computer system.
#
--
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...@googlegroups.commailto:puppet-users...@googlegroups.com.
To post to this group, send email to 
puppet...@googlegroups.commailto:puppet...@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.



#
 This e-mail and any attached documents may contain confidential or 
proprietary information. If you are not the intended recipient, you are 
notified that any dissemination, copying of this e-mail and any attachments 
thereto or use of their contents by any means whatsoever is strictly 
prohibited. If you have received this e-mail in error, please advise the sender 
immediately and delete this e-mail and all attached documents from your 
computer system.
#
--
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...@googlegroups.comjavascript:.
To post to this group, send email to puppet

Re: [Puppet Users] Re: How to call one manifset from another

2013-02-14 Thread Евгений Верещагин
Read Why IF-ELSE not work?, it's very it's important.

четверг, 14 февраля 2013 г., 14:42:34 UTC+4 пользователь 
bernard...@morpho.com написал:

 Ok great, I will test, thanks for the “tip”

  

 Cordialement,

  

 Bernard Granier

 CE Plateforme Système

 bernard...@morpho.com javascript:

 01 58 11 32 51

  

 *From:* puppet...@googlegroups.com javascript: [mailto:
 puppet...@googlegroups.com javascript:] *On Behalf Of *??? ?
 *Sent:* Thursday, February 14, 2013 11:33 AM
 *To:* puppet...@googlegroups.com javascript:
 *Subject:* Re: [Puppet Users] Re: How to call one manifset from another

  

 I think that include for classes, and import for pp-files. I learn 
 puppet second day :-)

 четверг, 14 февраля 2013 г., 14:27:46 UTC+4 пользователь 
 bernard...@morpho.com написал:

 Ah ok, you use an import and not an include.

  

 As I understood, this is not exactly the same things.

  

 Cordialement,

  

 Bernard Granier

 CE Plateforme Système

 bernard...@morpho.com

 01 58 11 32 51

  

 *From:* puppet...@googlegroups.com [mailto:puppet...@googlegroups.com] *On 
 Behalf Of *??? ?
 *Sent:* Thursday, February 14, 2013 11:23 AM
 *To:* puppet...@googlegroups.com
 *Subject:* Re: [Puppet Users] Re: How to call one manifset from another

  

 /etc/puppet/manifests/site.pp

 /etc/puppet/manifests/os/win.pp

 /etc/puppet/manifests/os/lin.pp

  

 site.pp:

  

 import 'os/win.pp'

 import 'os/lin.pp'

 четверг, 14 февраля 2013 г., 14:17:47 UTC+4 пользователь 
 bernard...@morpho.com написал:

 Subdirs ? which one ?

  

 Cordialement,

  

 Bernard Granier

 CE Plateforme Système

 bernard...@morpho.com

 01 58 11 32 51

  

 *From:* puppet...@googlegroups.com [mailto:puppet...@googlegroups.com] *On 
 Behalf Of *??? ?
 *Sent:* Thursday, February 14, 2013 9:44 AM
 *To:* puppet...@googlegroups.com
 *Subject:* Re: [Puppet Users] Re: How to call one manifset from another

  

 You can put it into subdirs.

 четверг, 14 февраля 2013 г., 12:22:39 UTC+4 пользователь 
 bernard...@morpho.com написал:

 Yes but is it ok to have in directory  …/puppet/manifest let’s say three 
 files :

 file1.pp defining some nodes

 file2.pp defining some nodes

  

 and site.pp with :

 include file1

 include file2 

  

 ?

  

 Sincerly,

  

 Bernard Granier

 CE Plateforme Système

 bernard...@morpho.com

 01 58 11 32 51

  

 *From:* puppet...@googlegroups.com [mailto:puppet...@googlegroups.com] *On 
 Behalf Of *??? ?
 *Sent:* Thursday, February 14, 2013 6:57 AM
 *To:* puppet...@googlegroups.com
 *Subject:* [Puppet Users] Re: How to call one manifset from another

  

 import 'some.pp'

 среда, 13 февраля 2013 г., 13:03:15 UTC+4 пользователь yarlagadda ramya 
 написал:

 Hi all,

 I have 3 different manifests. How can i call one manifest from another 
 manifest?

 Please do help me with this.

 -- 
 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...@googlegroups.com.
 To post to this group, send email to puppet...@googlegroups.com.
 Visit this group at http://groups.google.com/group/puppet-users?hl=en.
 For more options, visit https://groups.google.com/groups/opt_out.
  
  

 #
  This e-mail and any attached documents may contain confidential or 
 proprietary information. If you are not the intended recipient, you are 
 notified that any dissemination, copying of this e-mail and any attachments 
 thereto or use of their contents by any means whatsoever is strictly 
 prohibited. If you have received this e-mail in error, please advise the 
 sender immediately and delete this e-mail and all attached documents from 
 your computer system.
 #

 -- 
 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...@googlegroups.com.
 To post to this group, send email to puppet...@googlegroups.com.
 Visit this group at http://groups.google.com/group/puppet-users?hl=en.
 For more options, visit https://groups.google.com/groups/opt_out.
  
  

 #
  This e-mail and any attached documents may contain confidential or 
 proprietary information. If you are not the intended recipient, you are 
 notified that any dissemination, copying of this e-mail and any attachments 
 thereto or use of their contents by any means whatsoever is strictly 
 prohibited. If you have received this e-mail in error, please advise the 
 sender immediately and delete this e-mail and all attached documents from 
 your computer system.
 #

 -- 
 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...@googlegroups.com.
 To post to this group, send email to puppet...@googlegroups.com.
 Visit this group at http

Re: [Puppet Users] Re: How to call one manifset from another

2013-02-14 Thread jcbollinger


On Thursday, February 14, 2013 4:33:01 AM UTC-6, Евгений Верещагин wrote:

 I think that include for classes, and import for pp-files. I learn 
 puppet second day :-)


That's about right, but it misses some important points.  For one, Puppet 
manifests are declarative, so the OP's request for a way to call one is 
nonsensical.  Probably one of 'include' or 'import' does what the OP wants, 
but the mindset is wrong, and that's likely to lead to difficulty.

For another, well-tested best practices dictate that pretty much all 
declarations other than node definitions should be in classes, in modules.  
As such, the 'import' function should be used only for a few very specific 
purposes -- mostly just to support node declarations being in their own 
files, outside site.pp.

For a third, 'import' doesn't necessarily do exactly what people expect.  
In particular, people sometimes expect it to function like the C 
preprocessor's '#include' directive, parsing the imported file in the 
context in which the 'import' function appears, but that's not how it 
works.  Instead, 'import' causes the specified file to be parsed as a 
stand-alone manifest.  It has its uses, but mostly it's a holdover from 
ancient days.

For a fourth, the main purpose of 'include' is different from that of 
'import': 'include' declares that the named class(es) should be applied to 
the target node.  It will cause the manifests containing named classes to 
be parsed if the class has not yet been defined (and its definition is 
where the autoloader expects to find it), but that's a side effect.  In 
contrast, causing manifests to be parsed is the whole purpose of 'import'.


John



John

-- 
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 post to this group, send email to puppet-users@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




[Puppet Users] Re: How to call one manifset from another

2013-02-13 Thread llowder


On Wednesday, February 13, 2013 3:03:15 AM UTC-6, yarlagadda ramya wrote:

 Hi all,

 I have 3 different manifests. How can i call one manifest from another 
 manifest?

 Please do help me with this.


It depends on what is in the manifests...  if you used modules and classes 
and have things on the file system in the layout the autoloader works with, 
it's as easy as just doing:

include myclass 

or

include myclass::otherclass

If you didn't follow the guidelines... can't answer your question without 
seeing code.

-- 
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 post to this group, send email to puppet-users@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




[Puppet Users] Re: How to call one manifset from another

2013-02-13 Thread Евгений Верещагин
import 'some.pp'

среда, 13 февраля 2013 г., 13:03:15 UTC+4 пользователь yarlagadda ramya 
написал:

 Hi all,

 I have 3 different manifests. How can i call one manifest from another 
 manifest?

 Please do help me with this.


-- 
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 post to this group, send email to puppet-users@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.