I have a similar problem I can't seem to solve...here's what I'm
trying to do.
I have two modules, backuppc_client and sudo. Right now I have a node
variable that I assign to each node that is used in the sudo module's
template to add the necessary entry. For example....
---manifests/node.pp
node 'client1' {
$backuppc_sudocmd = "backupuser ALL=NOPASSWD: /usr/bin/rsync"
include baseclass
include backuppc_client::base
}
---modules/sudo/templates/sudoers.erb has...
<% if has_variable?("backuppc_sudocmd") then %>
<%= backuppc_sudocmd %>
<% end %>
Is there a way for the sudo module to find out or be aware if a client
has the "include backuppc_client" in their definition? Basically I'd
like the backuppc_client module's to alter the contents of sudoers
file which I can't imagine how to do as sudoers is defined by the sudo
module which is part of baseclass and applied to all systems.
Thanks
- Trey
On May 23, 10:11 am, Nigel Kersten <[email protected]> wrote:
> On Sun, May 22, 2011 at 11:06 PM, Matthew Macdonald-Wallace <
>
> [email protected]> wrote:
> > Hi all,
>
> > I've got modules for NGINX and PHP-FPM which are working fine, the issue
> > I'm running into is that quite often NGinx will start before php-fpm is
> > even installed.
>
> > I'm wondering if there's a way in the nginx module to "Require" the
> > PHP-FPM service is started as a dependency of the nginx service,
> > something like the following:
>
> There's also the 'require' function which does an include and sets up Class
> <-> Class relationships.
>
>
>
>
>
>
>
>
>
>
>
> > class nginx {
>
> > service { 'nginx':
> > require => Service['php-fpm::php-fpm'],
> > running => true;
> > }
> > }
>
> > Is this possible in puppet 0.25 on CentOS?
>
> > Thanks in advance,
>
> > Matt
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Puppet Users" group.
> > To post to this group, send email to [email protected].
> > To unsubscribe from this group, send email to
> > [email protected].
> > For more options, visit this group at
> >http://groups.google.com/group/puppet-users?hl=en.
>
> --
> Nigel Kersten
> Product, Puppet Labs
> @nigelkersten
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/puppet-users?hl=en.