Hello everybody!
How can i determinate from one class if another class applied to the
this node?
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To post to this group, send email to puppet-us...@googlegroups.com.
To unsubscribe from this group,
On 10/15/2010 09:40 AM, walexey wrote:
> Hello everybody!
> How can i determinate from one class if another class applied to the
> this node?
>
You can use the defined() function.
if defined(Class[my_class]) {
...
}
YOU SHOULD NOT DO THAT, though. There are problems, because puppet may
include
On Fri, Oct 15, 2010 at 12:40:57AM -0700, walexey wrote:
> Hello everybody!
> How can i determinate from one class if another class applied to the
> this node?
Use the defined() function.
--
Bruce
What would Edward Woodward do?
--
You received this message because you are subscribed to the Go
What you'll probably want is the tagged() function, not defined().
Someone correct me if I am wrong, but defined() is useful for checking
if types or classes exist ("are known about") but does not check
whether a class is DECLARED - there's a difference. Note the
documentation sentence "This is us
Hi,
I'm transitioning a large-ish manifest from plain files with lots of
import statements to modules.
I used to heavily rely on a pattern like the following
class feature {
...
class specialized inherits feature {
...
class more_special inherits specialized {
...
}
}
}
S
On Thursday 14 Oct 2010 23:49:11 Michal Ludvig wrote:
> On 10/15/2010 08:36 AM, Arnau Bria wrote:
> > On Thu, 14 Oct 2010 23:47:16 +1300
> > Michal Ludvig wrote
> >
> >> 1) kickstart installs the system, including puppet from our local repo
> >> 2) after reboot I have to login and set the hostna
On Fri, Oct 15, 2010 at 01:04:29AM -0700, luke.bigum wrote:
> Someone correct me if I am wrong, but defined() is useful for checking
> if types or classes exist ("are known about") but does not check
> whether a class is DECLARED - there's a difference. Note the
> documentation sentence "This is us
Hi all,
I'm really interested in new metaparameter "stage".
I've been "studying" Ryan's example:
http://www.personal.psu.edu/ryc108/blogs/puppetmaster/2010/10/automating-shibboleth-idp-builds-using-stages.html
and I was able to define and use stages in my catalogue.
But now I'd like to improve
On Fri, Oct 15, 2010 at 12:19:36PM +0200, Arnau Bria wrote:
> 1.-) Stage vs require Class. May we say that stages are groups of class
> requires? So a simple/basic example:
>
> class A {
> require class B
> }
>
> class B{
> require class C
> }
>
> Is like defining :
>
> Stage[pre] -> Stage[main
On 10/14/2010 05:06 AM, Nigel Kersten wrote:
> On Wed, Oct 13, 2010 at 10:56 AM, EAMiller wrote:
>> Hi all - new to puppet - and have gotten as far as configuring a
>> staging server with two of our web apps through puppet.
>>
>> Now we plan to have developer workstations get dev environments
>> t
On Fri, Oct 15, 2010 at 4:46 PM, Bruce Richardson wrote:
> On Fri, Oct 15, 2010 at 12:19:36PM +0200, Arnau Bria wrote:
> > 1.-) Stage vs require Class. May we say that stages are groups of class
> > requires? So a simple/basic example:
> >
> > class A {
> > require class B
> > }
> >
> > class B{
>
Am 15.10.2010 00:42, schrieb Jacob Helwig:
> <% nagios_conf_dirs.each do |dir| -%>
> cfg_dir=<%= dir %>
> <% end -%>
I would rather prefer the "for" notation in templates, since it is
easier to read when interspersed with other text:
| <% for dir in nagios_conf_dirs -%>
| cfg_dir=<%= dir %>
| <%
On Fri, 15 Oct 2010 17:54:17 +0530
Mohit Chawla wrote:
> On Fri, Oct 15, 2010 at 4:46 PM, Bruce Richardson
> wrote:
>
> > On Fri, Oct 15, 2010 at 12:19:36PM +0200, Arnau Bria wrote:
> > > 1.-) Stage vs require Class. May we say that stages are groups of
> > > class requires? So a simple/basic exa
Chuck wrote:
> I have migrated my EL5 servers from 0.25.5 to 2.6.2 and have no
> issues now. I did have some issues with 2.6.1 which are now fixed.
> I would like to see 2.6.2 in the official EPEL repository.
Thanks for the feedback Chuck! Were any changes to your config or
manifests required (a
Ben wrote:
> I did a server and all client upgrade to your 2.6.1 package from
> your 0.25.5 package without any problems w/ your packaging.
> Install, init scripts, etc all work fine.
>
> And now the upgrade to 2.6.2 looks good after 5 whole minutes.
>
> Server: CentOS 5.5
> Clients: CentOS 5.x, RH
I have following problem:
defined class ldap-client, which install and configure ldap on _all_
nodes. there is file[/etc/nsswitch.conf]. it add 'ldap' to
nsswitch.conf
defined class winbind, which install and configure winbind on _some_
nodes. and it need also to change nsswitch.conf, adding 'winbi
James Turnbull wrote:
> All too quickly we're back with a maintenance release: 2.6.3. This
> release addresses some issues in the 2.6.2 release.
For those using Fedora or RHEL/CentOS, I've updated the yum repos at:
http://tmz.fedorapeople.org/repo/puppet/
Packages for EL 4 - 6 and Fedora 12
Steven VanDevender wrote:
> I'm not our local Cobbler/Kickstart expert, but the guy who created
> our Cobbler installation even figured out how to script a new host's
> initial registration with the puppetmaster (I believe the key idea
> is that there is a command-locked ssh identity key that allow
On Fri, Oct 15, 2010 at 07:06:52AM -0700, walexey wrote:
> i can't imaging something better than add
>
>if tagged(winbind) {
> $winbind = 'winbind'
> } else {
> $winbind = ''
> }
> in ldap-client class
>
> and add
> passwd: files <%= win
On Fri, Oct 15, 2010 at 5:05 AM, Felix Frank
wrote:
> On 10/14/2010 05:06 AM, Nigel Kersten wrote:
>> On Wed, Oct 13, 2010 at 10:56 AM, EAMiller wrote:
>>> Hi all - new to puppet - and have gotten as far as configuring a
>>> staging server with two of our web apps through puppet.
>>>
>>> Now we p
Trying to setup a volume group with puppet lvm and this:-
volume_group { "my_vg":
ensure => present,
physical_volumes => "/dev/sdb /dev/sdc /dev/sdd",
require => [ Physical_volume["/dev/sdb"],
Physical_volume["/dev/sdc"],
Physical_volume["/dev/sdd"]
Hi,
If you nest classes like that then you probably do have to dump
everything in init.pp
If however you split the classes and define each in a separate file
with the name .pp in the manifests directory of the module, you
will be able to "include m_feature::specialized".
No problem with the inhe
On Oct 15, 2010, at 7:05 AM, Todd Zullinger wrote:
> Ben wrote:
>> I did a server and all client upgrade to your 2.6.1 package from
>> your 0.25.5 package without any problems w/ your packaging.
>> Install, init scripts, etc all work fine.
>>
>> And now the upgrade to 2.6.2 looks good after 5 wh
On Thu, Oct 14, 2010 at 10:23 PM, Don Jackson
wrote:
>
> I'd like to extend my use of puppet to manage my desktop/notebook macs.
>
> As others have noted, the hostname of the mobile machines tends to change
> frequently, so basing the node name (in my site.pp) and the corresponding
> cert and pr
On Fri, Oct 15, 2010 at 11:57 AM, Nigel Kersten wrote:
> On Thu, Oct 14, 2010 at 10:23 PM, Don Jackson
> wrote:
>>
>> I'd like to extend my use of puppet to manage my desktop/notebook macs.
>>
>> As others have noted, the hostname of the mobile machines tends to change
>> frequently, so basing t
I'm currently running a dashboard as a separate process and have a
proxy in apache with authentication to access as
http://puppet.ourhost.com/dashboard/
I have to start the dashboard with "-P /dashboard" option to make it
work.
I'm wondering how to achieve this with passenger. The config I found
Hi all
Puppet Labs is expanding again and we're hiring Professional Services
staff. We're looking for two senior Professional Services Engineers
with Puppet and configuration management experience highly desirable.
You can read about the roles at:
http://puppetlabs.jobscore.com/jobs/puppetlabs/
No changes were needed in my configurations. Other than the expected
deprecation warnings.
On Oct 15, 9:02 am, Todd Zullinger wrote:
> Chuck wrote:
> > I have migrated my EL5 servers from 0.25.5 to 2.6.2 and have no
> > issues now. I did have some issues with 2.6.1 which are now fixed.
> > I wou
28 matches
Mail list logo