Douglas Garstang | 1 Sep 2011 02:40
Picon

[Puppet Users] Module Plugin Documentation

Anyone,


I've read this doc several times:


As a whole, it really doesn't make sense. It seems pretty obvious it was written by someone with deep knowledge of the subject, but there is little context for someone like me. Is there better documentation somewhere?

Doug

--
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 <at> googlegroups.com.
To unsubscribe from this group, send email to puppet-users+unsubscribe <at> googlegroups.com.
For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
treydock | 1 Sep 2011 03:09
Picon
Gravatar

[Puppet Users] File resource "owner" not found, only during automatic puppet runs

I have a file resource defined to be owned by a group that is
accessible via samba/winbind (AD based group), but every time Puppet
runs automatically (every 30 min) the run fails with this error ,
(sensitive information removed)

(/Stage[main]//Node[node1.tld]/Apache::Vhost[vhost1]/File[/var/www/
vhost1/html]) Could not evaluate: Could not find group org-www at /etc/
puppet/modules/apache/manifests/definitions/vhost.pp:52

When I manually run "puppetd --test --debug -v" there is no failure.
Also the group is visible on the system and all works just fine.  It
only fails during the automatic Puppet runs.  I also have another
host, with an almost identical setup , assigning AD based groups to
file resources, and it doesn't have this problem.  Using Puppet 2.6.9,
on CentOS 6.

Thanks
- Trey

--

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

col yte | 1 Sep 2011 04:32
Picon

[Puppet Users] Organizational best practices / examples

Hi folks,


I was curious if anyone would be willing to share how they organize their puppet implementation. Perhaps something similar to what you'll find at https://fedoraproject.org/wiki/Infrastructure/Puppet

People should have this sort of stuff documented, appreciate anything anyone would be willing to share. 

// colyte

--
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 <at> googlegroups.com.
To unsubscribe from this group, send email to puppet-users+unsubscribe <at> googlegroups.com.
For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Sam Morrison | 1 Sep 2011 07:48
Picon
Gravatar

[Puppet Users] Multiple template fallbacks

Hi,

In a file resource I want to be able to specify multiple template contents. If the 1st template doesn't exist use the 2nd listed and so on. Much like how the source attribute works.
Basically this:

  file { "/tmp/somefile.txt":
    ensure  => present,
    content => [
                       template("somefile-$fqdn.erb"),
                       template("somefile.erb"),
                       ]
    mode    => 644,
    owner   => root,
    group   => root,
}

Which doesn't work. Is there a way to do this in puppet?

Thanks,
Sam

--
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/mVbZoOdhVp8J.
To post to this group, send email to puppet-users <at> googlegroups.com.
To unsubscribe from this group, send email to puppet-users+unsubscribe <at> googlegroups.com.
For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Ohad Levy | 1 Sep 2011 09:43
Picon
Gravatar

[Puppet Users] Deploy an application on multiple hosts as one unit

Hi,

I wanted to see if I could deploy an application, which runs on
multiple hosts, as a proof of concept, I've created Stacker [1]

Screencast [2]* showing it in a high level.

Any feedback is appreciated :)

thanks,
Ohad

[1] - https://github.com/ohadlevy/stacker
[2] - http://ohadlevy.fedorapeople.org/stacker.ogv

* stupid youtube wont understand the video format, (ffmpeg/meconder
and friends didn't work either that well) vlc/mplayer seems to play it
nicely.... me is looking for better screencast software on linux.

--

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

Daniel Maher | 1 Sep 2011 11:47

Re: [Puppet Users] Organizational best practices / examples

On 09/01/2011 04:32 AM, col yte wrote:
> Hi folks,
>
> I was curious if anyone would be willing to share how they organize
> their puppet implementation. Perhaps something similar to what you'll
> find at https://fedoraproject.org/wiki/Infrastructure/Puppet.
>
> People should have this sort of stuff documented, appreciate anything
> anyone would be willing to share.

Hello,

In our environment we've made a concious decision to maintain modules/ 
in as generic a fashion as possible.  Basically, the way it works is 
that before we commit to modules/ we ask, "would we be comfortable 
sharing this on Github?"  It's a surprisingly good strategy. :)

I realise this is only a small element of what you're asking for, but I 
am also curious to know if anybody else out there has any sort of 
"simple rules" that can applied in order to preserve sanity.

-- 
Daniel Maher
« makin' plans now to live on Mars 'cuz I got Earth on lock. »

--

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

jcbollinger | 1 Sep 2011 15:03

[Puppet Users] Re: File resource "owner" not found, only during automatic puppet runs


On Aug 31, 8:09 pm, treydock <treyd... <at> gmail.com> wrote:
> I have a file resource defined to be owned by a group that is
> accessible via samba/winbind (AD based group), but every time Puppet
> runs automatically (every 30 min) the run fails with this error ,
> (sensitive information removed)
>
> (/Stage[main]//Node[node1.tld]/Apache::Vhost[vhost1]/File[/var/www/
> vhost1/html]) Could not evaluate: Could not find group org-www at /etc/
> puppet/modules/apache/manifests/definitions/vhost.pp:52
>
> When I manually run "puppetd --test --debug -v" there is no failure.
> Also the group is visible on the system and all works just fine.  It
> only fails during the automatic Puppet runs.  I also have another
> host, with an almost identical setup , assigning AD based groups to
> file resources, and it doesn't have this problem.  Using Puppet 2.6.9,
> on CentOS 6.

It looks like the Puppet agent is unable to connect to the domain to
retrieve group information.  In all likelihood this is an issue with
the environment in which the agent runs or the user (root) as whom it
runs, perhaps in conjunction with winbind configuration specifics.
You could try to duplicate it from the command line by doing something
like 'env -i PATH="/bin:/sbin:/usr/bin:/usr/sbin" puppetd --test --
debug -v' to ensure that it runs with a minimal environment.

Not being familiar with the details of using samba/winbind as a user
and group resolution service, I'm not sure what specifically to
recommend you check in that area.  Duplicating the problem from the
command line should give you a leg up, though.

John

--

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

jcbollinger | 1 Sep 2011 15:21

[Puppet Users] Re: Module Plugin Documentation


On Aug 31, 7:40 pm, Douglas Garstang <doug.garst... <at> gmail.com> wrote:
> Anyone,
>
> I've read this doc several times:
>
> http://docs.puppetlabs.com/guides/plugins_in_modules.html
>
> As a whole, it really doesn't make sense. It seems pretty obvious it was
> written by someone with deep knowledge of the subject, but there is little
> context for someone like me. Is there better documentation somewhere?

I am not aware of better documentation of the topics covered by that
guide, but I don't personally see a need for any, either.  Perhaps you
are looking for information outside its rather limited scope?  In
particular, that document is not about *writing* custom types /
providers / facts / functions (there are different docs for that); it
is only about how to deploy their Ruby code once it is written.

If you have specific questions that the doc doesn't answer for you,
then this is a fine place to pose them.  You could also consider
filing a ticket against the documentation.  It is unlikely, however,
that such a general complaint as the one above will elicit much help.

John

--

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

jcbollinger | 1 Sep 2011 15:29

[Puppet Users] Re: Composing a text file with Puppet


On Aug 31, 10:52 am, Brian Gallew <g... <at> gallew.org> wrote:

> Call me crazy, but isn't this just a matter of adding "replace => false" to the file resource?  If it
doesn't exist, Puppet will create it according to the manifest.  Once in place, Puppet will leave it
alone unless it vanishes, at which point it will be re-created.

Um.  Err.  Coffee.

I mean, yeah, but where's the fun in that?

John

--

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

Nigel Kersten | 1 Sep 2011 16:09
Gravatar

Re: [Puppet Users] Multiple template fallbacks



On Wed, Aug 31, 2011 at 10:48 PM, Sam Morrison <sorrison <at> gmail.com> wrote:
Hi,

In a file resource I want to be able to specify multiple template contents. If the 1st template doesn't exist use the 2nd listed and so on. Much like how the source attribute works.
Basically this:

  file { "/tmp/somefile.txt":
    ensure  => present,
    content => [
                       template("somefile-$fqdn.erb"),
                       template("somefile.erb"),
                       ]
    mode    => 644,
    owner   => root,
    group   => root,
}

Which doesn't work. Is there a way to do this in puppet?

Unfortunately the template and file functions treat multiple values differently. File uses them for fallbacks, Template concats the .erb files together.

This is something we'd quite like to fix, and the solution is probably going to involve a separate concatenation function, but changing how template works is somewhat problematic for backwards compatibility. Perhaps an 'erb' function that behaves like 'template' is a better solution...

 

Thanks,
Sam

--
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/mVbZoOdhVp8J.
To post to this group, send email to puppet-users <at> googlegroups.com.
To unsubscribe from this group, send email to puppet-users+unsubscribe <at> googlegroups.com.
For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.



--
Nigel Kersten
Product Manager, Puppet Labs

Join us for PuppetConf 
Sept 22/23 Portland, Oregon, USA.


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

Gmane